Received: by 10.213.65.68 with SMTP id h4csp1754706imn; Mon, 19 Mar 2018 12:21:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELvtP8xkenZgz4BUIZ2na2Sgc6BFWTuc6R8J0ALCWU/clVRMzJA0kSZrVRk3iGM/ekl1p6rh X-Received: by 10.98.15.137 with SMTP id 9mr11193244pfp.216.1521487262627; Mon, 19 Mar 2018 12:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521487262; cv=none; d=google.com; s=arc-20160816; b=jddacaGeNuNSWHgb9b49MhWkj6NKSrSezVlNDeX1zs/7OClbBlAjNJ//3+Y6id7VUd WsO+nXAbXo9lhwJcXgIQHViSrqCQBDYE+pXfw7Kjqhd9O2ZpFmMe8NeyMQWdsIgTkYFz nupuWgLMyEV7qeGqwIumCKJHiFkEUl2fwwrfh/9t2vaB8pawSKFjaEU7wGfuFL+vjv5O X5zeOVXCXwfjo1YEZyfGgGNXdqnUkuaiQOwgRpBPTVZqsGsiLhPmIkqKSi3/8PIM/uuz qJWxi7L90EEKjrUUTUbaNdE7wmukf3sqRiFWk3pNqugeUtv5y3VZ80dwM12zpmq2UATP 2L8Q== 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=xlUYFG/y/dEX4vQ8+l8BQrmIhiEBkVmQuJ3zbaSF4jk=; b=raLif9FjQvIroCj/ftaaXGAMHEZHcxXcNpI6Qr8daq5aFG6Pa8gHdDuUObh4fOu4uv 3mZ0PCp8/cq8RBm80WydpctDctY3pQRp+8Es+Lpli4/sZ+pFpV0a8UJmI5CkGoEy9+IZ c6L7fw8THRP1Utbc3IvPazTWCfp7qe345FDXrObwRZihtnCEHVZGptU47t9BXEtdB+5l 5k60DyX2AXI2+/wmRDJ85RoQQ19aEqyU7Wv9PpQ8kUQUx+84Uug1hUzCrjO2PIHoDZYg kmIE0R/gUg9tyt4l4SyZKrRb9//45aquQ9sLgosSFCIxlKR7jY3/oEERdrdaQTdJN8ES FqGg== 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 d16-v6si484098pli.557.2018.03.19.12.20.47; Mon, 19 Mar 2018 12:21:02 -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 S969823AbeCSSZ5 (ORCPT + 99 others); Mon, 19 Mar 2018 14:25:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50542 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969770AbeCSSZo (ORCPT ); Mon, 19 Mar 2018 14:25:44 -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 C8155F72; Mon, 19 Mar 2018 18:25:43 +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.9 173/241] net: ieee802154: adf7242: Fix bug if defined DEBUG Date: Mon, 19 Mar 2018 19:07:18 +0100 Message-Id: <20180319180758.317636013@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@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.9-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 struct ieee802154_ops adf7242_ops .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);