From: Stefani Seibold <stefani@seibold.net>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Arnd Bergmann <arnd@arndb.de>, Andi Kleen <andi@firstfloor.org>,
Amerigo Wang <xiyou.wangcong@gmail.com>,
Joe Perches <joe@perches.com>,
Roger Quadros <quadros.roger@gmail.com>,
Greg Kroah-Hartman <gregkh@suse.de>,
Mauro Carvalho Chehab <mchehab@redhat.com>
Subject: [PATCH] new kfifo API: undef temporary defines
Date: Thu, 26 Nov 2009 16:53:54 +0100 [thread overview]
Message-ID: <1259250834.26705.4.camel@wall-e> (raw)
The following patch undef temporary used defines after the last usage.
The patch-set is against kfifo API v.07, which is currently included in
the -mm tree
Signed-off-by: Stefani Seibold <stefani@seibold.net>
---
kfifo.h | 5 +++++
1 file changed, 5 insertions(+)
diff -u -N -r -p kfifo7/include/linux/kfifo.h kfifo8/include/linux/kfifo.h
--- kfifo7/include/linux/kfifo.h 2009-11-19 20:55:16.596339811 +0100
+++ kfifo8/include/linux/kfifo.h 2009-11-26 16:46:48.826439335 +0100
@@ -55,6 +55,7 @@ struct kfifo {
* Macros for declaration and initialization of the kfifo datatype
*/
+/* helper macro */
#define __kfifo_initializer(s, b) \
(struct kfifo) { \
.size = s, \
@@ -102,6 +103,8 @@ union { \
unsigned char name##kfifo_buffer[size]; \
struct kfifo name = __kfifo_initializer(size, name##kfifo_buffer)
+#undef __kfifo_initializer
+
extern void kfifo_init(struct kfifo *fifo, unsigned char *buffer,
unsigned int size);
extern __must_check int kfifo_alloc(struct kfifo *fifo, unsigned int size,
@@ -293,6 +296,7 @@ static inline unsigned int __kfifo_peek_
l |= __KFIFO_GET(fifo, 1, 8);
return l;
+#undef __KFIFO_GET
}
/**
@@ -312,6 +316,7 @@ static inline void __kfifo_poke_n(struct
if (--recsize)
__KFIFO_PUT(fifo, 1, n, 8);
+#undef __KFIFO_PUT
}
/**
reply other threads:[~2009-11-26 15:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1259250834.26705.4.camel@wall-e \
--to=stefani@seibold.net \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=arnd@arndb.de \
--cc=gregkh@suse.de \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@redhat.com \
--cc=quadros.roger@gmail.com \
--cc=xiyou.wangcong@gmail.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