2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-08 21:53:54 +08:00
linux-next/arch/cris/arch-v32
Jesper Nilsson 9d74179a22 cris: intmem: fix device_initcall compile warning
Cannot add __init macro to crisv32_intmem_init,
since the function is being called by other functions.
Creating a wrapper instead.

arch/cris/arch-v32/mm/intmem.c: At top level:
arch/cris/arch-v32/mm/intmem.c:148:17: warning: initialization from incompatible pointer type
 device_initcall(crisv32_intmem_init);
                 ^
include/linux/init.h:184:58: note: in definition of macro ‘__define_initcall’
  __attribute__((__section__(".initcall" #id ".init"))) = fn; \

arch/cris/arch-v32/mm/intmem.c:148:1: note: in expansion of macro ‘device_initcall’
 device_initcall(crisv32_intmem_init);
 ^

Signed-off-by: Niklas Cassel <nks@flawful.org>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
2016-09-22 16:03:52 +02:00
..
drivers dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
kernel exit_thread: accept a task parameter to be exited 2016-05-20 17:58:30 -07:00
lib CRIS: remove SMP code 2015-03-25 10:55:10 +01:00
mach-a3 cris: Fix misspellings in comments. 2016-04-18 12:45:53 +02:00
mach-fs cris: Fix misspellings in comments. 2016-04-18 12:45:53 +02:00
mm cris: intmem: fix device_initcall compile warning 2016-09-22 16:03:52 +02:00
Kconfig CRIS v32: remove old GPIO and LEDs code 2015-11-02 20:03:05 +01:00
output_arch.ld