login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
25
Re: [PATCH v3] bitops kernel-doc: inline instead of macro
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Thomas Gleixner
Subject:
Re: [PATCH v3] bitops kernel-doc: inline instead of macro
Date: Thursday, October 25, 2007 - 2:27 pm
Randy, On Thu, 25 Oct 2007, Randy Dunlap wrote:
quoted text
> > We might as well clean stuff up as we're churning the code. > > > > > > Andy, I thought we were going to whine about __inline__ and __inline, too? > > Thomas, can you replace the previous patch with this one?
Sure. Darn, I did not run yours through the usual procedure :) tglx
quoted text
> Usage of __inline__ is fixed in the next patch (after this one). >
---
quoted text
> > From: Randy Dunlap <randy.dunlap@oracle.com> > > Use duplicated inline functions for test_and_set_bit_lock() on x86 > instead of #define macros, thus avoiding a bad example. This allows > kernel-doc to run cleanly instead of terminating with an error: > > Error(linux-2.6.24-rc1//include/asm-x86/bitops_32.h:188): cannot understand prototype: 'test_and_set_bit_lock test_and_set_bit ' > > Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> > --- > include/asm-x86/bitops_32.h | 7 +++++-- > include/asm-x86/bitops_64.h | 7 +++++-- > 2 files changed, 10 insertions(+), 4 deletions(-) > > --- linux-2.6.24-rc1.orig/include/asm-x86/bitops_32.h > +++ linux-2.6.24-rc1/include/asm-x86/bitops_32.h > @@ -183,9 +183,12 @@ static inline int test_and_set_bit(int n > * @nr: Bit to set > * @addr: Address to count from > * > - * This is the same as test_and_set_bit on x86 > + * This is the same as test_and_set_bit on x86. > */ > -#define test_and_set_bit_lock test_and_set_bit > +static inline int test_and_set_bit_lock(int nr, volatile unsigned long *addr) > +{ > + return test_and_set_bit(nr, addr); > +} > > /** > * __test_and_set_bit - Set a bit and return its old value > --- linux-2.6.24-rc1.orig/include/asm-x86/bitops_64.h > +++ linux-2.6.24-rc1/include/asm-x86/bitops_64.h > @@ -173,9 +173,12 @@ static __inline__ int test_and_set_bit(i > * @nr: Bit to set > * @addr: Address to count from > * > - * This is the same as test_and_set_bit on x86 > + * This is the same as test_and_set_bit on x86. > */ > -#define test_and_set_bit_lock test_and_set_bit > +static __inline__ int test_and_set_bit_lock(int nr, volatile void *addr) > +{ > + return test_and_set_bit(nr, addr); > +} > > /** > * __test_and_set_bit - Set a bit and return its old value >
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] bitops kernel-doc: expand macro
, Randy Dunlap
, (Tue Oct 23, 10:09 pm)
Re: [PATCH] bitops kernel-doc: expand macro
, Nick Piggin
, (Wed Oct 24, 1:00 am)
Re: [PATCH] bitops kernel-doc: expand macro
, Randy Dunlap
, (Wed Oct 24, 8:38 am)
[PATCH v2] bitops kernel-doc: inline instead of macro
, Randy Dunlap
, (Thu Oct 25, 9:31 am)
Re: [PATCH v2] bitops kernel-doc: inline instead of macro
, Thomas Gleixner
, (Thu Oct 25, 9:42 am)
Re: [PATCH v2] bitops kernel-doc: inline instead of macro
, Randy Dunlap
, (Thu Oct 25, 9:55 am)
Re: [PATCH v2] bitops kernel-doc: inline instead of macro
, Thomas Gleixner
, (Thu Oct 25, 10:05 am)
Re: [PATCH v2] bitops kernel-doc: inline instead of macro
, Andrew Morton
, (Thu Oct 25, 1:48 pm)
[PATCH v3] bitops kernel-doc: inline instead of macro
, Randy Dunlap
, (Thu Oct 25, 2:21 pm)
[PATCH] x86 bitops: fix code style issues
, Randy Dunlap
, (Thu Oct 25, 2:27 pm)
Re: [PATCH v3] bitops kernel-doc: inline instead of macro
, Thomas Gleixner
, (Thu Oct 25, 2:27 pm)
Re: [PATCH v2] bitops kernel-doc: inline instead of macro
, Nick Piggin
, (Thu Oct 25, 2:54 pm)
Re: [PATCH v2] bitops kernel-doc: inline instead of macro
, Andy Whitcroft
, (Sat Oct 27, 3:43 am)
Re: [PATCH v2] bitops kernel-doc: inline instead of macro
, Andy Whitcroft
, (Sat Oct 27, 7:30 am)
Re: [PATCH v2] bitops kernel-doc: inline instead of macro
, H. Peter Anvin
, (Sat Oct 27, 11:48 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
Nick Piggin
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
Pierre Ossman
Re: sdio: enhance IO_RW_EXTENDED support
git
:
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Jonathan Nieder
Re: [PATCH v2] git-send-email.perl: fix In-Reply-To for second and subsequent patc...
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
git-commits-head
:
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
USB: set correct configuration in probe of ti_usb_3410_5052
linux-netdev
:
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Jarek Poplawski
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
openbsd-misc
:
Claudio Jeker
Re: Vlan Tag on Vlan Tag (l2tunneling)
Stas Miasnikou
Re: Another question: device naming convention
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Tomas Bodzar
bsd: uvm_mapent_alloc: out of static map entries
Community First Financial
Teacher A+ Loan
Colocation donated by:
Syndicate