From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesper Nilsson Subject: Re: [PATCH 3/3] tty: remove buf parameter from tty_name() Date: Tue, 7 Apr 2015 10:57:30 +0200 Message-ID: <20150407085730.GC26081@axis.com> References: <1427810160-15779-1-git-send-email-linux@rasmusvillemoes.dk> <1427810160-15779-4-git-send-email-linux@rasmusvillemoes.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1427810160-15779-4-git-send-email-linux@rasmusvillemoes.dk> Sender: linux-kernel-owner@vger.kernel.org To: Rasmus Villemoes Cc: Dmitry Torokhov , Greg Kroah-Hartman , Jiri Slaby , Mikael Starvik , Jesper Nilsson , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , linux-cris-kernel , "linux-serial@vger.kernel.org" List-Id: linux-input@vger.kernel.org On Tue, Mar 31, 2015 at 03:55:59PM +0200, Rasmus Villemoes wrote: > tty_name no longer uses the buf parameter, so remove it along with all > the 64 byte stack buffers that used to be passed in. > > Mostly generated by the coccinelle script > > @depends on patch@ > identifier buf; > constant C; > expression tty; > @@ > - char buf[C]; > <+... > - tty_name(tty, buf) > + tty_name(tty) > ...+> > > allmodconfig compiles, so I'm fairly confident the stack buffers > weren't used for other purposes as well. > > Signed-off-by: Rasmus Villemoes For the CRISv10 driver: Acked-by: Jesper Nilsson /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nilsson@axis.com