Received: by 10.213.65.68 with SMTP id h4csp469861imn; Fri, 16 Mar 2018 08:43:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELuppUofiEe3Oguu5QM5m9XF9GILB4/+Y12cw+vLAJ2+QqnKHLXfH5lQnzi+h/xa3oM7sqJW X-Received: by 2002:a17:902:60c4:: with SMTP id k4-v6mr2645812pln.44.1521214999674; Fri, 16 Mar 2018 08:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521214999; cv=none; d=google.com; s=arc-20160816; b=qTvlmblUbOyQ7WE0Q3Gq1zhjHmKxJ/PDaknPabCmUvH2dMfDOfxIEBJn0Eo75AoXUe gF9UG0ePw7+BVwVyKNkB6bVKllxFvYOixSptLuZJ8Pq86KhV3azC10FgD+HqGy06eXTn ILv9M4ySU34HBs6EnZo/kGG8uKY0LOrP7hjF8DmNuG0XJPYGUsDR7C/CBzdXTryl/uBp Y8u3P9r+THgOn5qewbCaJNo/hkZZEPlfe47grsXdIBiruFC87zqp/ijytStt7CTwKX5q u406M7t2JihsTQcJyxhHkTzy8RQHBYukmt1djo1Hwy2s16P8kYVkmMHFXN243bJIprJw ukfg== 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=O09WsFbrnjHonwTDNTViQgyOb69b5H10dF+cjrNh7gU=; b=eK6uBzLk+Id72/A62ktM1+lqiuuYFUZoWFMZWqCclvdY7s5EhPExvHWSM+8Nex8ll1 RFYtfiDvdcdk4MS6RB5H/zuEHpNjrGNWeplgDTx8Jj6i1cuSykcyIg8q2TSviHXkNYPo xcnC8zj+AkfIuAapIroCFbVm+6yoMLWX61pBnCaadc+idhLKl+N7m9qYLlDHYsvNTBdB Oo8gIV1Qa7Aq2QshCieDOvfVpjcghyhiGahRooKoPy0mgUdywXSlrCfbqrLKl/iCO9db hFM4IScea4yP+9Fy65cT3UGmkxomCzkPvgvxjliKKLfmd01J1WJvBoNygiWySfTV8MjW ApJQ== 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 s18si5113600pgd.65.2018.03.16.08.43.05; Fri, 16 Mar 2018 08:43:19 -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 S1754750AbeCPPld (ORCPT + 99 others); Fri, 16 Mar 2018 11:41:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43996 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754736AbeCPPl2 (ORCPT ); Fri, 16 Mar 2018 11:41:28 -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 BAD93F5C; Fri, 16 Mar 2018 15:41:27 +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.15 054/128] net: ieee802154: adf7242: Fix bug if defined DEBUG Date: Fri, 16 Mar 2018 16:23:15 +0100 Message-Id: <20180316152339.542391941@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152336.199007505@linuxfoundation.org> References: <20180316152336.199007505@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.15-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);