android_kernel_xiaomi_sm8350/include/asm-ppc
Mathieu Desnoyers 2856f5e31c atomic.h: atomic_add_unless as inline. Remove system.h atomic.h circular dependency
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>
2007-05-08 11:15:20 -07:00
..
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 [POWERPC] Merge common virtex header files 2007-04-30 11:02:04 +10:00
ibm44x.h
ibm403.h
ibm405.h
ibm_ocp_pci.h
ibm_ocp.h
immap_85xx.h
immap_cpm2.h
io.h
kdebug.h move die notifier handling to common code 2007-05-08 11:15:04 -07:00
kgdb.h
m8260_pci.h
machdep.h
md.h
mk48t59.h
mmu_context.h [PATCH] x86: PARAVIRT: add hooks to intercept mm creation and destruction 2007-05-02 19:27:14 +02:00
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 Clean up mostly unused IOSPACE macros 2007-05-08 11:15:13 -07:00
pnp.h
ppc4xx_dma.h
ppc4xx_pic.h
ppc_sys.h [POWERPC] Stop using ppc_sys for Xilinx Virtex boards 2007-04-30 11:02:04 +10:00
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 atomic.h: atomic_add_unless as inline. Remove system.h atomic.h circular dependency 2007-05-08 11:15:20 -07:00
time.h
todc.h
traps.h
zorro.h