From: Joe Perches Date: Tue, 12 Nov 2013 23:10:15 +0000 (-0800) Subject: checkpatch: add check for sscanf without return use X-Git-Tag: v3.13-rc1~106^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=823b794ce176bcf135a062075737be71a78629dd;p=pandora-kernel.git checkpatch: add check for sscanf without return use Naked use sscanf can be troublesome because the pointed to variables may not have been set. Add a warning when the sscanf return value is not used. For now, do not add __must_check to the sscanf prototype because that will cause a couple of hundred new warnings when compiling a kernel. Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed