linux/arch/hexagon/kernel
Guenter Roeck cb84c2b401 hexagon: Fix build failures in linux-next
hexagon:defconfig fails to build in linux-next since commit 332fd7c4fe
("genirq: Generic chip: Change irq_reg_{readl,writel} arguments").

The primary build failure is

arch/hexagon/include/asm/cacheflush.h: In function 'copy_to_user_page':
arch/hexagon/include/asm/cacheflush.h:89:22: error: 'VM_EXEC' undeclared

This is the result of including of <linux/io.h> from <linux/irq.h>,
which is now necessary due to the use of readl and writel from irq.h.
This causes recursive inclusions in hexagon code; cacheflush.h is included
from mm.h prior to the definition of VM_EXEC.

Fix the problem by moving copy_to_user_page from the hexagon include file to
arch/hexagon/mm/cache.c, similar to other architectures. After this change,
several redefinitions of readl and writel are reported. Those are caused
by recursive inclusions of io.h and asm/cacheflush.h. Fix those problems by
reducing the number of files included from those files. Also, it was necessary
to stop including asm-generic/cacheflush.h from asm/cacheflush.h. Instead,
functionality originally provided by asm-generic/cacheflush.h is now coded
in asm/cacheflush.h directly.

Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
signed-off-by: Richard Kuo <rkuo@codeaurora.org>
2014-12-16 13:27:12 -06:00
..
asm-offsets.c Hexagon: update copyright dates 2013-04-30 19:40:27 -05:00
dma.c Hexagon: use correct translations for DMA mappings 2013-04-30 19:40:28 -05:00
head.S Hexagon: update copyright dates 2013-04-30 19:40:27 -05:00
hexagon_ksyms.c arch: hexagon: kernel: hexagon_ksyms.c: export related symbols which various modules need 2014-04-04 18:20:00 -05:00
irq_cpu.c Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
kgdb.c hexagon: kernel: kgdb: include related header for pass compiling. 2014-04-04 18:19:59 -05:00
Makefile Hexagon: add screen_info for VGA_CONSOLE 2014-04-04 18:20:01 -05:00
module.c Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
process.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel 2013-05-01 07:43:05 -07:00
ptrace.c Hexagon: set the e_flags in user regset view for core dumps 2014-04-04 18:20:02 -05:00
reset.c arch: hexagon: kernel: reset.c: use function pointer instead of function for pm_power_off and export it 2014-04-04 18:20:00 -05:00
screen_info.c Hexagon: add screen_info for VGA_CONSOLE 2014-04-04 18:20:01 -05:00
setup.c hexagon: Fix build failures in linux-next 2014-12-16 13:27:12 -06:00
signal.c hexagon: Use sigsp() 2014-08-06 13:04:08 +02:00
smp.c smp, hexagon: kill SMP single function call interrupt 2014-04-04 18:20:01 -05:00
stacktrace.c Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
syscalltab.c Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
time.c arch: hexagon: kernel: add export symbol function __delay() 2014-04-04 18:19:59 -05:00
trampoline.S Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
traps.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel 2013-05-01 07:43:05 -07:00
vdso.c Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
vm_entry.S Hexagon: fix register used to call do_work_pending 2013-05-07 11:37:53 -05:00
vm_events.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel 2013-05-01 07:43:05 -07:00
vm_init_segtable.S Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
vm_ops.S Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
vm_switch.S Hexagon: Copyright marking changes 2012-10-18 17:07:21 -05:00
vm_vectors.S Hexagon: update copyright dates 2013-04-30 19:40:27 -05:00
vmlinux.lds.S Hexagon: update copyright dates 2013-04-30 19:40:27 -05:00