mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] NOMMU: Remove an extraneous no_printk()
@ 2010-08-13 10:25 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2010-08-13 10:25 UTC (permalink / raw)
  To: torvalds, akpm; +Cc: monstr, vapier, gerg, linux-kernel, David Howells

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 <dhowells@redhat.com>
	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

Reported-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: David Howells <dhowells@redhat.com>
---

 mm/nommu.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)


diff --git a/mm/nommu.c b/mm/nommu.c
index a290e6f..96d7e55 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -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__)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-13 10:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-13 10:25 [PATCH] NOMMU: Remove an extraneous no_printk() David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®