Skip to contentSkip to conversation

NOMMU: Remove an extraneous no_printk()

PATCH New David Howells 1 participant 1 message Aug 13, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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:

	commit 12fdff3fc2483f906ae6404a6e8dcf2550310b6f
	Author: David Howells <[email protected]>
	Date:   Thu Aug 12 16:54:57 2010 +0100
	Subject: 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

---

 mm/nommu.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
mm/nommu.c +0 -5
index a290e6f..96d7e55 100644
@@ -36,11 +36,6 @@
 #include <asm/mmu_context.h>
 #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__)