mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bernd Petrovitsch <bernd@firmix.at>
To: mchehab@brturbo.com.br, video4linux-list@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: Patch: Rename vprintk define in bttpvp.h
Date: Wed, 21 Sep 2005 12:35:14 +0200	[thread overview]
Message-ID: <1127298914.26231.46.camel@tara.firmix.at> (raw)

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

The attached patched againt 2.6.13 renames the (apparently) bttv intern 
#define vprintk to verbprintk to resolve a name clash.

Reason: vprintk() is defined in include/linux/kernel.h similar to printk
but with a va_list argument.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services

[-- Attachment #2: printk.patch --]
[-- Type: text/x-patch, Size: 2035 bytes --]

diff -uprN -X linux-2.6.13/Documentation/dontdiff linux-2.6.13/include/asm-i386/spinlock.h linux-2.6.13-patched/include/asm-i386/spinlock.h
--- linux-2.6.13/include/asm-i386/spinlock.h	2005-09-20 18:38:41.000000000 +0200
+++ linux-2.6.13-patched/include/asm-i386/spinlock.h	2005-09-20 18:44:07.000000000 +0200
@@ -7,9 +7,6 @@
 #include <linux/config.h>
 #include <linux/compiler.h>
 
-asmlinkage int printk(const char * fmt, ...)
-	__attribute__ ((format (printf, 1, 2)));
-
 /*
  * Your basic SMP spinlocks, allowing only a single CPU anywhere
  */
diff -uprN -X linux-2.6.13/Documentation/dontdiff linux-2.6.13/include/linux/kernel.h linux-2.6.13-patched/include/linux/kernel.h
--- linux-2.6.13/include/linux/kernel.h	2005-09-20 11:12:50.000000000 +0200
+++ linux-2.6.13-patched/include/linux/kernel.h	2005-09-20 11:54:02.000000000 +0200
@@ -129,12 +129,8 @@ asmlinkage int vprintk(const char *fmt, 
 asmlinkage int printk(const char * fmt, ...)
 	__attribute__ ((format (printf, 1, 2)));
 #else
-static inline int vprintk(const char *s, va_list args)
-	__attribute__ ((format (printf, 1, 0)));
-static inline int vprintk(const char *s, va_list args) { return 0; }
-static inline int printk(const char *s, ...)
-	__attribute__ ((format (printf, 1, 2)));
-static inline int printk(const char *s, ...) { return 0; }
+#define vprintk(fmt, args)      ((void)(fmt, args), 0)
+#define printk(...)             (__VA_ARGS__, 0)
 #endif
 
 unsigned long int_sqrt(unsigned long);
diff -uprN -X linux-2.6.13/Documentation/dontdiff linux-2.6.13/Makefile linux-2.6.13-patched/Makefile
--- linux-2.6.13/Makefile	2005-08-29 01:41:01.000000000 +0200
+++ linux-2.6.13-patched/Makefile	2005-09-20 11:45:56.000000000 +0200
@@ -350,7 +350,7 @@ CPPFLAGS        := -D__KERNEL__ $(LINUXI
 
 CFLAGS 		:= -Wall -Wstrict-prototypes -Wno-trigraphs \
 	  	   -fno-strict-aliasing -fno-common \
-		   -ffreestanding
+		   -ffreestanding -Wno-unused-value
 AFLAGS		:= -D__ASSEMBLY__
 
 export	VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION LOCALVERSION KERNELRELEASE \

             reply	other threads:[~2005-09-21 10:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-21 10:35 Bernd Petrovitsch [this message]
2005-09-21 16:50 ` Bernd Petrovitsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1127298914.26231.46.camel@tara.firmix.at \
    --to=bernd@firmix.at \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@brturbo.com.br \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®