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> |
||
---|---|---|
.. | ||
asm-offsets.h | ||
atomic.h | ||
bfin-global.h | ||
bfin-lq035q1.h | ||
bfin5xx_spi.h | ||
bfin_can.h | ||
bfin_dma.h | ||
bfin_pfmon.h | ||
bfin_ppi.h | ||
bfin_rotary.h | ||
bfin_sdh.h | ||
bfin_serial.h | ||
bfin_simple_timer.h | ||
bfin_sport.h | ||
bfin_twi.h | ||
bfin_watchdog.h | ||
bfrom.h | ||
bitops.h | ||
blackfin.h | ||
bug.h | ||
byteorder.h | ||
cache.h | ||
cachectl.h | ||
cacheflush.h | ||
cdef_LPBlackfin.h | ||
checksum.h | ||
clocks.h | ||
context.S | ||
cplb.h | ||
cplbinit.h | ||
cpu.h | ||
def_LPBlackfin.h | ||
delay.h | ||
dma-mapping.h | ||
dma.h | ||
dpmc.h | ||
early_printk.h | ||
elf.h | ||
entry.h | ||
fcntl.h | ||
fixed_code.h | ||
flat.h | ||
ftrace.h | ||
gpio.h | ||
gptimers.h | ||
hardirq.h | ||
io.h | ||
ioctls.h | ||
ipipe.h | ||
ipipe_base.h | ||
irq.h | ||
irq_handler.h | ||
irqflags.h | ||
Kbuild | ||
kgdb.h | ||
l1layout.h | ||
linkage.h | ||
mem_init.h | ||
mem_map.h | ||
mmu.h | ||
mmu_context.h | ||
module.h | ||
mutex.h | ||
nand.h | ||
nmi.h | ||
page.h | ||
page_offset.h | ||
pci.h | ||
pda.h | ||
perf_event.h | ||
pgtable.h | ||
poll.h | ||
portmux.h | ||
posix_types.h | ||
processor.h | ||
pseudo_instructions.h | ||
ptrace.h | ||
reboot.h | ||
rwlock.h | ||
sections.h | ||
segment.h | ||
sigcontext.h | ||
siginfo.h | ||
signal.h | ||
smp.h | ||
spinlock.h | ||
spinlock_types.h | ||
stat.h | ||
string.h | ||
swab.h | ||
syscall.h | ||
system.h | ||
thread_info.h | ||
time.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
trace.h | ||
traps.h | ||
uaccess.h | ||
unistd.h |