[PATCH] Drivers: MTD: Fixed checkpatch seq_printf warnings

Brian Norris computersforpeace at gmail.com
Mon Aug 4 14:27:57 PDT 2014


On Tue, Jul 22, 2014 at 02:49:30AM +0800, Samarth Parikh wrote:
> Fixed checkpatch warnings: "WARNING: Prefer seq_puts to seq_printf"
> 
> 
> 
> 
> This patch is created with reference to the ongoing lkml thread
> https://lkml.org/lkml/2014/7/15/646
> where Andrew Morton wrote:
> 
> "
> - puts is presumably faster
> 
> - puts doesn't go rogue if you accidentally pass it a "%".
> 
> - this patch would actually make compiled object files few bytes smaller.
>   Perhaps because seq_printf() is a varargs function, forcing the
>   caller to pass args on the stack instead of in registers.
> "
> 
> Signed-off-by: Samarth Parikh <samarthp at ymail.com>

Queued to l2-mtd.git/next.

Brian



More information about the linux-mtd mailing list