diff options
author | Joe Perches <joe@perches.com> | 2012-03-23 18:02:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-23 19:58:36 -0400 |
commit | 6061d949dd984c762ee272a88e77699fa675d1c8 (patch) | |
tree | 2e19eecd34a716fc5ed9fa3f18a7db0a3edf6f5b /include/linux/compiler-gcc.h | |
parent | 97e834c5040b85e133d8d922111a62b2b853a406 (diff) |
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 @@ | |||
87 | */ | 87 | */ |
88 | #define __pure __attribute__((pure)) | 88 | #define __pure __attribute__((pure)) |
89 | #define __aligned(x) __attribute__((aligned(x))) | 89 | #define __aligned(x) __attribute__((aligned(x))) |
90 | #define __printf(a,b) __attribute__((format(printf,a,b))) | 90 | #define __printf(a, b) __attribute__((format(printf, a, b))) |
91 | #define __scanf(a, b) __attribute__((format(scanf, a, b))) | ||
91 | #define noinline __attribute__((noinline)) | 92 | #define noinline __attribute__((noinline)) |
92 | #define __attribute_const__ __attribute__((__const__)) | 93 | #define __attribute_const__ __attribute__((__const__)) |
93 | #define __maybe_unused __attribute__((unused)) | 94 | #define __maybe_unused __attribute__((unused)) |