7847777a45
After changing all consumers of atomics to include <linux/atomic.h>, we ran into some compile time errors due to this dependency chain: linux/atomic.h -> asm/atomic.h -> asm-generic/atomic-long.h where atomic-long.h could use funcs defined later in linux/atomic.h without a prototype. This patches moves the code that includes asm-generic/atomic*.h to linux/atomic.h. Archs that need <asm-generic/atomic64.h> need to select CONFIG_GENERIC_ATOMIC64 from now on (some of them used to include it unconditionally). Compile tested on i386 and x86_64 with allnoconfig. Signed-off-by: Arun Sharma <asharma@fb.com> Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: David Miller <davem@davemloft.net> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
Kbuild | ||
asm-offsets.h | ||
atomic.h | ||
auxvec.h | ||
bitops.h | ||
bitsperlong.h | ||
bug.h | ||
bugs.h | ||
busctl-regs.h | ||
byteorder.h | ||
cache.h | ||
cacheflush.h | ||
checksum.h | ||
cpu-regs.h | ||
cputime.h | ||
current.h | ||
debugger.h | ||
delay.h | ||
device.h | ||
div64.h | ||
dma-mapping.h | ||
dma.h | ||
dmactl-regs.h | ||
elf.h | ||
emergency-restart.h | ||
errno.h | ||
exceptions.h | ||
fb.h | ||
fcntl.h | ||
fpu.h | ||
frame.inc | ||
ftrace.h | ||
futex.h | ||
gdb-stub.h | ||
hardirq.h | ||
highmem.h | ||
hw_irq.h | ||
intctl-regs.h | ||
io.h | ||
ioctl.h | ||
ioctls.h | ||
ipc.h | ||
ipcbuf.h | ||
irq.h | ||
irq_regs.h | ||
irqflags.h | ||
kdebug.h | ||
kgdb.h | ||
kmap_types.h | ||
kprobes.h | ||
linkage.h | ||
local.h | ||
local64.h | ||
mc146818rtc.h | ||
mman.h | ||
mmu.h | ||
mmu_context.h | ||
module.h | ||
msgbuf.h | ||
mutex.h | ||
nmi.h | ||
page.h | ||
page_offset.h | ||
param.h | ||
pci.h | ||
percpu.h | ||
pgalloc.h | ||
pgtable.h | ||
pio-regs.h | ||
poll.h | ||
posix_types.h | ||
processor.h | ||
ptrace.h | ||
reset-regs.h | ||
resource.h | ||
rtc-regs.h | ||
rtc.h | ||
rwlock.h | ||
scatterlist.h | ||
sections.h | ||
sembuf.h | ||
serial-regs.h | ||
serial.h | ||
setup.h | ||
shmbuf.h | ||
shmparam.h | ||
sigcontext.h | ||
siginfo.h | ||
signal.h | ||
smp.h | ||
smsc911x.h | ||
socket.h | ||
sockios.h | ||
spinlock.h | ||
spinlock_types.h | ||
stat.h | ||
statfs.h | ||
string.h | ||
swab.h | ||
syscall.h | ||
system.h | ||
termbits.h | ||
termios.h | ||
thread_info.h | ||
timer-regs.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
topology.h | ||
types.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
user.h | ||
vga.h | ||
xor.h |