From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH net-next] rxrpc: Remove set but not used variable 'ioc' Date: Tue, 09 Oct 2018 11:13:16 +0100 Message-ID: <11853.1539079996@warthog.procyon.org.uk> References: <1539052273-34824-1-git-send-email-yuehaibing@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Cc: dhowells@redhat.com, davem@davemloft.net, linux-afs@lists.infradead.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org To: YueHaibing Return-path: Received: from mx1.redhat.com ([209.132.183.28]:36576 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbeJIR3f (ORCPT ); Tue, 9 Oct 2018 13:29:35 -0400 In-Reply-To: <1539052273-34824-1-git-send-email-yuehaibing@huawei.com> Content-ID: <11852.1539079996.1@warthog.procyon.org.uk> Sender: netdev-owner@vger.kernel.org List-ID: YueHaibing wrote: > net/rxrpc/output.c: In function 'rxrpc_reject_packets': > net/rxrpc/output.c:527:11: warning: > variable 'ioc' set but not used [-Wunused-but-set-variable] > > It never used since introduction in I wonder why my compiler doesn't show this warning. Anyway, NAK: just removing the variable is the wrong fix - you need to look at the code more closely. The actual fix is to pass it to kernel_sendmsg() instead of 2. But thanks anyway! Do you want to respin your patch? > commit ece64fec164f ("rxrpc: Emit BUSY packets when supposed to rather than ABORTs") Btw, this should be a 'Fixes: ("subject")' line and the patch needs to go to net, not net-next. David From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Date: Tue, 09 Oct 2018 10:13:16 +0000 Subject: Re: [PATCH net-next] rxrpc: Remove set but not used variable 'ioc' Message-Id: <11853.1539079996@warthog.procyon.org.uk> List-Id: References: <1539052273-34824-1-git-send-email-yuehaibing@huawei.com> In-Reply-To: <1539052273-34824-1-git-send-email-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: YueHaibing Cc: dhowells@redhat.com, davem@davemloft.net, linux-afs@lists.infradead.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org YueHaibing wrote: > net/rxrpc/output.c: In function 'rxrpc_reject_packets': > net/rxrpc/output.c:527:11: warning: > variable 'ioc' set but not used [-Wunused-but-set-variable] > > It never used since introduction in I wonder why my compiler doesn't show this warning. Anyway, NAK: just removing the variable is the wrong fix - you need to look at the code more closely. The actual fix is to pass it to kernel_sendmsg() instead of 2. But thanks anyway! Do you want to respin your patch? > commit ece64fec164f ("rxrpc: Emit BUSY packets when supposed to rather than ABORTs") Btw, this should be a 'Fixes: ("subject")' line and the patch needs to go to net, not net-next. David