From: David Howells Date: Fri, 13 Aug 2010 10:25:12 +0000 (+0100) Subject: NOMMU: Remove an extraneous no_printk() X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fe622e76fddd986e56f22842a6ce292504727ef1;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git NOMMU: Remove an extraneous no_printk() Remove an extraneous no_printk() in mm/nommu.c that got missed when the function got generalised from several things that used it in commit 12fdff3fc248 ("Add a dummy printk function for the maintenance of unused printks"). Without this, the following error is observed: mm/nommu.c:41: error: conflicting types for 'no_printk' include/linux/kernel.h:314: error: previous definition of 'no_printk' was here Reported-by: Michal Simek Signed-off-by: David Howells Signed-off-by: Linus Torvalds --- diff --git a/mm/nommu.c b/mm/nommu.c index b76f3ee0abe0..efa9a380335e 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -36,11 +36,6 @@ #include #include "internal.h" -static inline __attribute__((format(printf, 1, 2))) -void no_printk(const char *fmt, ...) -{ -} - #if 0 #define kenter(FMT, ...) \ printk(KERN_DEBUG "==> %s("FMT")\n", __func__, ##__VA_ARGS__)