From mboxrd@z Thu Jan 1 00:00:00 1970 From: YueHaibing Subject: Re: [PATCH net-next] rxrpc: Remove set but not used variable 'ioc' Date: Tue, 9 Oct 2018 20:04:15 +0800 Message-ID: References: <1539052273-34824-1-git-send-email-yuehaibing@huawei.com> <11853.1539079996@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Cc: , , , To: David Howells Return-path: Received: from szxga05-in.huawei.com ([45.249.212.191]:13206 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726451AbeJITU6 (ORCPT ); Tue, 9 Oct 2018 15:20:58 -0400 In-Reply-To: <11853.1539079996@warthog.procyon.org.uk> Sender: netdev-owner@vger.kernel.org List-ID: On 2018/10/9 18:13, David Howells wrote: > 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. Just use make W=1 > > 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. I didn't notice this, Thank you for correction. > > But thanks anyway! Do you want to respin your patch? Sure, I will fix it. > >> 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 > > . >