summaryrefslogtreecommitdiff
path: root/security/keys/internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-08-12 16:54:57 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-12 09:51:35 -0700
commit12fdff3fc2483f906ae6404a6e8dcf2550310b6f (patch)
treea79fb1365fce7c7529655a8802d6d6bf8509b374 /security/keys/internal.h
parent1490cf5f0cb07dd49cdab4bceb769d7f711d7ca6 (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/keys/internal.h')
-rw-r--r--security/keys/internal.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/security/keys/internal.h b/security/keys/internal.h
index addb67b169f..56a133d8f37 100644
--- a/security/keys/internal.h
+++ b/security/keys/internal.h
@@ -15,11 +15,6 @@
#include <linux/sched.h>
#include <linux/key-type.h>
-static inline __attribute__((format(printf, 1, 2)))
-void no_printk(const char *fmt, ...)
-{
-}
-
#ifdef __KDEBUG
#define kenter(FMT, ...) \
printk(KERN_DEBUG "==> %s("FMT")\n", __func__, ##__VA_ARGS__)