Received: by 10.213.65.68 with SMTP id h4csp467585imn; Fri, 16 Mar 2018 08:38:45 -0700 (PDT) X-Google-Smtp-Source: AG47ELsCDfoWIO4VY3KsQUDQxhUpdFdvryUC/KxIa+ggoaa9sETWbh/Hlv9jhQG/RzVEKMrHWyR0 X-Received: by 10.99.107.1 with SMTP id g1mr1815941pgc.347.1521214725172; Fri, 16 Mar 2018 08:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521214725; cv=none; d=google.com; s=arc-20160816; b=B+7B6a8TQgKjcynOlJEqYcMIeWOpXB+Pvr7/pWcmem1jxsj0Y6gXmj8/1S0FtZlZPx npM+j6D46mSU0qJuEgR1TQytAsjWBF2zQVRWV1ig9npj0zvSZ8CgDs5rUzyG43UzGREN 4IvKbOBn2okrCgJfsnQP/K4TrR6dr/l+oajfeWY3t6v839qiYuZZ2o8RZtgIJAnrSCCE 59TIvNn9gNcPVVUUAbMCGCY0MsddIzwF/MuNTwERu6A1RySZiTD20hfmpwiH6uNdLonO SvrdSB1tIMDEpwuDc3i1BX4kSsJcGL9Ngf0QWu7JLiNlUj0D8QjfGZbM/ieh7JUe0RaJ nRYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=N1j3JR5U8aPHiQu4mYNDoFNSKJ6bJWLssAh1CvfgyC0=; b=Ag5nDGQ9ecbQ5HZNi0+8ZKR5LoJBGwNeTApRgqWR0ID3powpmcHAGza2b309PvhU/C hr9gQEKCdcc6E8zzBGS/qVCVfzfi+N18QVioJU20YOjIO9ceF5yCh95+4ozxciJirrQ4 QxHdWQ384401baoi1NP5m9GKnt1ncv39rtvfRpbFJeEqHQdIfNv4/fIhrkOtynMjzInW pfH1hnfeCAV7849+PvRpUiHQG/pXAjFpq2kDEgfW3/f8SpZvvSav2ieH21xNuSaMTk7c 38g6huQzfDc8cwaIPSqOnWDu9Ywum+AeOd+fxdVLw+Ly+nH+HfjA3qDQiAnhcDI5xGIg zdaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si2468364pgr.472.2018.03.16.08.38.30; Fri, 16 Mar 2018 08:38:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934202AbeCPPfr (ORCPT + 99 others); Fri, 16 Mar 2018 11:35:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39988 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933697AbeCPPfp (ORCPT ); Fri, 16 Mar 2018 11:35:45 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id AD6AB107D; Fri, 16 Mar 2018 15:35:44 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Hennerich , Stefan Schmidt , Sasha Levin Subject: [PATCH 4.14 045/109] net: ieee802154: adf7242: Fix bug if defined DEBUG Date: Fri, 16 Mar 2018 16:23:14 +0100 Message-Id: <20180316152332.425198988@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152329.844663293@linuxfoundation.org> References: <20180316152329.844663293@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michael Hennerich [ Upstream commit 388b3b2b03701f3b3c10975c272892d7f78080df ] This fixes undefined reference to struct adf7242_local *lp in case DEBUG is defined. Signed-off-by: Michael Hennerich Signed-off-by: Stefan Schmidt Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ieee802154/adf7242.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ieee802154/adf7242.c +++ b/drivers/net/ieee802154/adf7242.c @@ -888,7 +888,7 @@ static const struct ieee802154_ops adf72 .set_cca_ed_level = adf7242_set_cca_ed_level, }; -static void adf7242_debug(u8 irq1) +static void adf7242_debug(struct adf7242_local *lp, u8 irq1) { #ifdef DEBUG u8 stat; @@ -932,7 +932,7 @@ static irqreturn_t adf7242_isr(int irq, dev_err(&lp->spi->dev, "%s :ERROR IRQ1 = 0x%X\n", __func__, irq1); - adf7242_debug(irq1); + adf7242_debug(lp, irq1); xmit = test_bit(FLAG_XMIT, &lp->flags);