diff options
author | Joe Perches <joe@perches.com> | 2012-03-23 15:02:16 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-23 16:58:36 -0700 |
commit | 6061d949dd984c762ee272a88e77699fa675d1c8 (patch) | |
tree | 2e19eecd34a716fc5ed9fa3f18a7db0a3edf6f5b /include/linux/compiler-gcc.h | |
parent | 97e834c5040b85e133d8d922111a62b2b853a406 (diff) | |
download | linux-stable-6061d949dd984c762ee272a88e77699fa675d1c8.tar.gz linux-stable-6061d949dd984c762ee272a88e77699fa675d1c8.tar.bz2 linux-stable-6061d949dd984c762ee272a88e77699fa675d1c8.zip |
include/ and checkpatch: prefer __scanf to __attribute__((format(scanf,...)
It's equivalent to __printf, so prefer __scanf.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/compiler-gcc.h')
-rw-r--r-- | include/linux/compiler-gcc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 3fd17c249221..e5834aa24b9e 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -87,7 +87,8 @@ */ #define __pure __attribute__((pure)) #define __aligned(x) __attribute__((aligned(x))) -#define __printf(a,b) __attribute__((format(printf,a,b))) +#define __printf(a, b) __attribute__((format(printf, a, b))) +#define __scanf(a, b) __attribute__((format(scanf, a, b))) #define noinline __attribute__((noinline)) #define __attribute_const__ __attribute__((__const__)) #define __maybe_unused __attribute__((unused)) |