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> |
||
---|---|---|
.. | ||
airq.h | ||
appldata.h | ||
asm-offsets.h | ||
atomic.h | ||
auxvec.h | ||
bitops.h | ||
bitsperlong.h | ||
bug.h | ||
bugs.h | ||
byteorder.h | ||
cache.h | ||
cacheflush.h | ||
ccwdev.h | ||
ccwgroup.h | ||
checksum.h | ||
chpid.h | ||
chsc.h | ||
cio.h | ||
cmb.h | ||
cmpxchg.h | ||
compat.h | ||
cpcmd.h | ||
cpu.h | ||
cputime.h | ||
crw.h | ||
current.h | ||
dasd.h | ||
debug.h | ||
delay.h | ||
device.h | ||
diag.h | ||
div64.h | ||
dma.h | ||
ebcdic.h | ||
elf.h | ||
emergency-restart.h | ||
errno.h | ||
etr.h | ||
extmem.h | ||
fb.h | ||
fcntl.h | ||
fcx.h | ||
ftrace.h | ||
futex.h | ||
hardirq.h | ||
hugetlb.h | ||
idals.h | ||
io.h | ||
ioctl.h | ||
ioctls.h | ||
ipcbuf.h | ||
ipl.h | ||
irq_regs.h | ||
irq.h | ||
irqflags.h | ||
isc.h | ||
itcw.h | ||
jump_label.h | ||
Kbuild | ||
kdebug.h | ||
kexec.h | ||
kmap_types.h | ||
kprobes.h | ||
kvm_host.h | ||
kvm_para.h | ||
kvm_virtio.h | ||
kvm.h | ||
linkage.h | ||
local64.h | ||
local.h | ||
lowcore.h | ||
mathemu.h | ||
mman.h | ||
mmu_context.h | ||
mmu.h | ||
module.h | ||
monwriter.h | ||
msgbuf.h | ||
mutex.h | ||
nmi.h | ||
page.h | ||
param.h | ||
pci.h | ||
percpu.h | ||
perf_event.h | ||
pgalloc.h | ||
pgtable.h | ||
poll.h | ||
posix_types.h | ||
processor.h | ||
ptrace.h | ||
qdio.h | ||
qeth.h | ||
reset.h | ||
resource.h | ||
rwsem.h | ||
scatterlist.h | ||
schid.h | ||
sclp.h | ||
scsw.h | ||
seccomp.h | ||
sections.h | ||
segment.h | ||
sembuf.h | ||
setup.h | ||
sfp-machine.h | ||
sfp-util.h | ||
shmbuf.h | ||
shmparam.h | ||
sigcontext.h | ||
siginfo.h | ||
signal.h | ||
sigp.h | ||
smp.h | ||
socket.h | ||
sockios.h | ||
sparsemem.h | ||
spinlock_types.h | ||
spinlock.h | ||
stat.h | ||
statfs.h | ||
string.h | ||
swab.h | ||
syscall.h | ||
sysinfo.h | ||
system.h | ||
tape390.h | ||
termbits.h | ||
termios.h | ||
thread_info.h | ||
timer.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
topology.h | ||
types.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
user.h | ||
vdso.h | ||
vtoc.h | ||
xor.h | ||
zcrypt.h |