From patchwork Sat Apr 19 03:47:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zi Shen Lim X-Patchwork-Id: 28655 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B89CD2013D for ; Sat, 19 Apr 2014 03:48:07 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id i8sf9159723qcq.0 for ; Fri, 18 Apr 2014 20:48:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=SZzL0Jtr8mVQa/E6XCXhO/TBZnkbM5gp44IqqqNYyY0=; b=Y3zU6gnpofGHcWBsXgjXYUM/2iLLtaMWBnd4F9EkmgNdv/yeniknQF3cGLUoDctUYx 1mbQ6ZC1y1tJI/eEzcThTrZr2PMlJUzkteP7Po+u1FYEit76OHc47hhDgIpGQkURPtMJ DuY3UVVFevNDhcG1/X1t2xVRLAJac7ombMfsKzzNGyff3USe2FTLBx8EvhTqjutMmQrT wq+EaJb/ottjYVlA7R/ka7w4/XjjJH7wq462mNAoQOJg2TmmcTK7hAkAxfgF6dZxP+I4 Rs9KmXqNnvjU8hvpbdRqA+BmWaeKqHz3k+q4u5UrCWPgtZdtBJTmMR+5yCf55yeQsWGR hKSw== X-Gm-Message-State: ALoCoQkNoxZ9wa3LjEuD9/4L53gZ+ubre7S74h0WG3W8nkFOFPfn6sxh6wPSZO1og0+OXtFjlagE X-Received: by 10.236.181.229 with SMTP id l65mr11722341yhm.28.1397879287185; Fri, 18 Apr 2014 20:48:07 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.198 with SMTP id o64ls1674244qga.66.gmail; Fri, 18 Apr 2014 20:48:07 -0700 (PDT) X-Received: by 10.58.77.238 with SMTP id v14mr6466777vew.27.1397879287020; Fri, 18 Apr 2014 20:48:07 -0700 (PDT) Received: from mail-ve0-x22a.google.com (mail-ve0-x22a.google.com [2607:f8b0:400c:c01::22a]) by mx.google.com with ESMTPS id lz6si5273080vcb.31.2014.04.18.20.48.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Apr 2014 20:48:07 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22a; Received: by mail-ve0-f170.google.com with SMTP id pa12so4201906veb.15 for ; Fri, 18 Apr 2014 20:48:06 -0700 (PDT) X-Received: by 10.52.251.199 with SMTP id zm7mr14526411vdc.21.1397879286921; Fri, 18 Apr 2014 20:48:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp154403vcb; Fri, 18 Apr 2014 20:48:06 -0700 (PDT) X-Received: by 10.68.143.231 with SMTP id sh7mr25653377pbb.7.1397879286141; Fri, 18 Apr 2014 20:48:06 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yb4si13054445pab.390.2014.04.18.20.48.05; Fri, 18 Apr 2014 20:48:05 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754232AbaDSDro (ORCPT + 26 others); Fri, 18 Apr 2014 23:47:44 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:60851 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751550AbaDSDrm (ORCPT ); Fri, 18 Apr 2014 23:47:42 -0400 Received: by mail-pa0-f41.google.com with SMTP id fa1so2028798pad.28 for ; Fri, 18 Apr 2014 20:47:42 -0700 (PDT) X-Received: by 10.68.178.1 with SMTP id cu1mr25366082pbc.34.1397879262090; Fri, 18 Apr 2014 20:47:42 -0700 (PDT) Received: from gup76.hsd1.ca.comcast.net ([98.234.176.204]) by mx.google.com with ESMTPSA id oz7sm63043274pbc.41.2014.04.18.20.47.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Apr 2014 20:47:41 -0700 (PDT) From: Zi Shen Lim To: Nicolas Pitre Cc: Zi Shen Lim , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] smc91x: fix compile error when SMC_DEBUG >= 2 Date: Fri, 18 Apr 2014 20:47:30 -0700 Message-Id: <1397879250-32041-1-git-send-email-zlim.lnx@gmail.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: zlim.lnx@gmail.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@gmail.com; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When SMC_DEBUG >= 2, we hit the following compilation error: drivers/net/ethernet/smsc/smc91x.c:85:0: drivers/net/ethernet/smsc/smc91x.c: In function ‘smc_findirq’: drivers/net/ethernet/smsc/smc91x.c:1784:9: error: ‘dev’ undeclared (first use in this function) DBG(2, dev, "%s: %s\n", CARDNAME, __func__); ^ Fix it by passing in the appropriate netdev pointer. Signed-off-by: Zi Shen Lim --- drivers/net/ethernet/smsc/smc91x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index d1b4dca..597909f 100644 --- a/drivers/net/ethernet/smsc/smc91x.c +++ b/drivers/net/ethernet/smsc/smc91x.c @@ -1781,7 +1781,7 @@ static int smc_findirq(struct smc_local *lp) int timeout = 20; unsigned long cookie; - DBG(2, dev, "%s: %s\n", CARDNAME, __func__); + DBG(2, lp->dev, "%s: %s\n", CARDNAME, __func__); cookie = probe_irq_on();