From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH -next 2/2] seq_putc: Convert to return void and convert uses too. Date: Wed, 12 Nov 2014 13:29:00 +0100 Message-ID: <20141112122900.GA1542@salvia> References: <56c4c0d5ec721134cff4913e5e3f8923169c35ef.1415645477.git.joe@perches.com> <20141111134740.GB2567@pathway.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Joe Perches , Steven Rostedt , Corey Minyard , Alexander Viro , Patrick McHardy , Jozsef Kadlecsik , "David S. Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org To: Petr Mladek Return-path: Received: from mail.us.es ([193.147.175.20]:37048 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752541AbaKLM1E (ORCPT ); Wed, 12 Nov 2014 07:27:04 -0500 Content-Disposition: inline In-Reply-To: <20141111134740.GB2567@pathway.suse.cz> Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Tue, Nov 11, 2014 at 02:47:40PM +0100, Petr Mladek wrote: > On Mon 2014-11-10 10:58:57, Joe Perches wrote: > > Using the return value of seq_putc is error-prone, so > > make it return void instead. > > > > Reverse the logic in seq_putc to make it like seq_puts. > > > > Signed-off-by: Joe Perches > > Reviewed-by: Petr Mladek > > The changes are correct. The show() functions should return 0 > even when there is an overflow. They are called by traverse() > from seq_read() that might increase the buffer size and try again. Just in case you need this for the netfilter chunks: Acked-by: Pablo Neira Ayuso Thanks.