2856f5e31c
atomic_add_unless as inline. Remove system.h atomic.h circular dependency. I agree (with Andi Kleen) this typeof is not needed and more error prone. All the original atomic.h code that uses cmpxchg (which includes the atomic_add_unless) uses defines instead of inline functions, probably to circumvent a circular dependency between system.h and atomic.h on powerpc (which my patch addresses). Therefore, it makes sense to use inline functions that will provide type checking. atomic_add_unless as inline. Remove system.h atomic.h circular dependency. Digging into the FRV architecture shows me that it is also affected by such a circular dependency. Here is the diff applying this against the rest of my atomic.h patches. It applies over the atomic.h standardization patches. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
8xx_immap.h | ||
amigahw.h | ||
amigaints.h | ||
amigappc.h | ||
amigayle.h | ||
amipcmcia.h | ||
ans-lcd.h | ||
bootinfo.h | ||
bootx.h | ||
btext.h | ||
commproc.h | ||
cpm2.h | ||
delay.h | ||
device.h | ||
floppy.h | ||
fs_pd.h | ||
gg2.h | ||
gt64260_defs.h | ||
gt64260.h | ||
harrier.h | ||
hawk_defs.h | ||
hawk.h | ||
highmem.h | ||
hydra.h | ||
ibm4xx.h | ||
ibm44x.h | ||
ibm403.h | ||
ibm405.h | ||
ibm_ocp_pci.h | ||
ibm_ocp.h | ||
immap_85xx.h | ||
immap_cpm2.h | ||
io.h | ||
kdebug.h | ||
kgdb.h | ||
m8260_pci.h | ||
machdep.h | ||
md.h | ||
mk48t59.h | ||
mmu_context.h | ||
mmu.h | ||
mpc8xx.h | ||
mpc10x.h | ||
mpc52xx_psc.h | ||
mpc52xx.h | ||
mpc83xx.h | ||
mpc85xx.h | ||
mpc8260_pci9.h | ||
mpc8260.h | ||
mv64x60_defs.h | ||
mv64x60.h | ||
ocp_ids.h | ||
ocp.h | ||
open_pic.h | ||
page.h | ||
pc_serial.h | ||
pci-bridge.h | ||
pci.h | ||
pgalloc.h | ||
pgtable.h | ||
pnp.h | ||
ppc4xx_dma.h | ||
ppc4xx_pic.h | ||
ppc_sys.h | ||
ppcboot.h | ||
prep_nvram.h | ||
prom.h | ||
raven.h | ||
reg_booke.h | ||
residual.h | ||
rheap.h | ||
rio.h | ||
rtc.h | ||
serial.h | ||
smp.h | ||
spinlock.h | ||
suspend.h | ||
system.h | ||
time.h | ||
todc.h | ||
traps.h | ||
zorro.h |