diff options
| author | David Howells <dhowells@redhat.com> | 2010-08-12 11:54:57 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-12 12:51:35 -0400 |
| commit | 12fdff3fc2483f906ae6404a6e8dcf2550310b6f (patch) | |
| tree | a79fb1365fce7c7529655a8802d6d6bf8509b374 /security | |
| parent | 1490cf5f0cb07dd49cdab4bceb769d7f711d7ca6 (diff) | |
Add a dummy printk function for the maintenance of unused printks
Add a dummy printk function for the maintenance of unused printks through gcc
format checking, and also so that side-effect checking is maintained too.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security')
| -rw-r--r-- | security/keys/internal.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/security/keys/internal.h b/security/keys/internal.h index addb67b169f4..56a133d8f37d 100644 --- a/security/keys/internal.h +++ b/security/keys/internal.h | |||
| @@ -15,11 +15,6 @@ | |||
| 15 | #include <linux/sched.h> | 15 | #include <linux/sched.h> |
| 16 | #include <linux/key-type.h> | 16 | #include <linux/key-type.h> |
| 17 | 17 | ||
| 18 | static inline __attribute__((format(printf, 1, 2))) | ||
| 19 | void no_printk(const char *fmt, ...) | ||
| 20 | { | ||
| 21 | } | ||
| 22 | |||
| 23 | #ifdef __KDEBUG | 18 | #ifdef __KDEBUG |
| 24 | #define kenter(FMT, ...) \ | 19 | #define kenter(FMT, ...) \ |
| 25 | printk(KERN_DEBUG "==> %s("FMT")\n", __func__, ##__VA_ARGS__) | 20 | printk(KERN_DEBUG "==> %s("FMT")\n", __func__, ##__VA_ARGS__) |
