From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH resend] net/sunrpc: Remove uses of NIPQUAD, use %pI4 Date: Mon, 08 Mar 2010 08:14:55 -0800 Message-ID: <1268064895.1925.18.camel@Joe-Laptop.home> References: <1267857980.849.22.camel@Joe-Laptop.home> <4B951BF0.9050403@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Trond Myklebust , linux-nfs , LKML To: Chuck Lever Return-path: Received: from mail.perches.com ([173.55.12.10]:1504 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755333Ab0CHQO5 (ORCPT ); Mon, 8 Mar 2010 11:14:57 -0500 In-Reply-To: <4B951BF0.9050403@oracle.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Mon, 2010-03-08 at 10:46 -0500, Chuck Lever wrote: > Why remove the (void) here, but not in xprtrdma/transport.c? IMO the > (void) cast should be left in place at all three call sites. I didn't notice it in xprtrdma/transport.c, otherwise I'd've removed it there too. When the result is not used, snprintf is most commonly not cast at all. (There's a space and a tab in the brackets of the grep string) $ grep -rP --include=*.[ch] "^[ ]+snprintf\s*\(" * | wc -l 1301 $ grep -rP --include=*.[ch] "^[ ]+\(\s*void\s*\)\s*snprintf\s*\(" * | wc -l 9 net/sunrpc/ has 7 of those. I'll get around to submitting patches for all of them.