From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB19EC5DF60 for ; Tue, 5 Nov 2019 18:30:30 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A1330214D8 for ; Tue, 5 Nov 2019 18:30:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A1330214D8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 662E18A496; Tue, 5 Nov 2019 18:30:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id utGGlX33jbW9; Tue, 5 Nov 2019 18:30:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0B8AF8A441; Tue, 5 Nov 2019 18:30:28 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 299401BF31F for ; Tue, 5 Nov 2019 18:30:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 25794227FA for ; Tue, 5 Nov 2019 18:30:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UrNtzRZ9GChz for ; Tue, 5 Nov 2019 18:30:25 +0000 (UTC) X-Greylist: delayed 01:10:00 by SQLgrey-1.7.6 Received: from smtprelay.hostedemail.com (smtprelay0201.hostedemail.com [216.40.44.201]) by silver.osuosl.org (Postfix) with ESMTPS id C7E81227F7 for ; Tue, 5 Nov 2019 18:30:23 +0000 (UTC) Received: from smtprelay.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by smtpgrave06.hostedemail.com (Postfix) with ESMTP id D5568800CBCE for ; Tue, 5 Nov 2019 17:13:46 +0000 (UTC) Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id E6B174DA7; Tue, 5 Nov 2019 17:13:43 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: mist27_345d099eb123 X-Filterd-Recvd-Size: 2930 Received: from XPS-9350.home (unknown [47.151.135.224]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Tue, 5 Nov 2019 17:13:42 +0000 (UTC) Message-ID: <3a6d170b616eb52735dc6dbf985377b1c836b9e6.camel@perches.com> Subject: Re: [PATCH v2] hp100: remove set but not used variable val From: Joe Perches To: Greg KH , Chen Wandun Date: Tue, 05 Nov 2019 09:13:31 -0800 In-Reply-To: <20191105155024.GA2677365@kroah.com> References: <20191105133554.6C01F9A06CB85816F399@huawei.com> <1572964619-76671-1-git-send-email-chenwandun@huawei.com> <20191105155024.GA2677365@kroah.com> User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, kstewart@linuxfoundation.org, linux-kernel@vger.kernel.org, perex@perex.cz, tglx@linutronix.de, allison@lohutok.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" On Tue, 2019-11-05 at 16:50 +0100, Greg KH wrote: > On Tue, Nov 05, 2019 at 10:36:59PM +0800, Chen Wandun wrote: > > From: Chenwandun > > > > Fixes gcc '-Wunused-but-set-variable' warning: > > > > drivers/staging/hp/hp100.c: In function hp100_start_xmit: > > drivers/staging/hp/hp100.c:1629:10: warning: variable val set but not used [-Wunused-but-set-variable] > > > > Signed-off-by: Chenwandun > > I need a "full" name here, like the one on your email "From:" line. You also need the submitter to run checkpatch on the patch and not just the file. WARNING: drivers/staging/hp/hp100.c is marked as 'obsolete' in the MAINTAINERS hierarchy. No unnecessary modifications please. WARNING: drivers/staging/hp/hp100.c is marked as 'obsolete' in the MAINTAINERS hierarchy. No unnecessary modifications please. total: 0 errors, 2 warnings, 0 checks, 18 lines checked > > diff --git a/drivers/staging/hp/hp100.c b/drivers/staging/hp/hp100.c [] > > @@ -1626,7 +1626,9 @@ static netdev_tx_t hp100_start_xmit(struct sk_buff *skb, > > unsigned long flags; > > int i, ok_flag; > > int ioaddr = dev->base_addr; > > +#ifdef HP100_DEBUG_TX > > u_short val; > > +#endif > > #ifdefs are not ok in .c code, sorry. > > > struct hp100_private *lp = netdev_priv(dev); > > > > #ifdef HP100_DEBUG_B > > @@ -1695,7 +1697,9 @@ static netdev_tx_t hp100_start_xmit(struct sk_buff *skb, > > > > spin_lock_irqsave(&lp->lock, flags); > > hp100_ints_off(); > > +#ifdef HP100_DEBUG_TX > > val = hp100_inw(IRQ_STATUS); > > Are you sure that this doesn't actually change the hardware in some way? If anyone still _has_ the hardware, please let me know. I have the only VG test equipment I know of in a box somewhere in my basement and it's yours for the asking and the postage. It hasn't been powered on in 25 years, no guarantees... _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel