Skip to content

Commit aeea5ea

Browse files
Sven Schnellehdeller
authored andcommitted
parisc: add missing __init annotation
compilation failed with: MODPOST vmlinux.o WARNING: vmlinux.o(.text.unlikely+0xa0c): Section mismatch in reference from the function walk_lower_bus() to the function .init.text:walk_native_bus() The function walk_lower_bus() references the function __init walk_native_bus(). This is often because walk_lower_bus lacks a __init annotation or the annotation of walk_native_bus is wrong. FATAL: modpost: Section mismatches detected. Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them. make[2]: *** [/home/svens/linux/parisc-linux/src/scripts/Makefile.modpost:64: __modpost] Error 1 make[1]: *** [/home/svens/linux/parisc-linux/src/Makefile:1077: vmlinux] Error 2 make[1]: Leaving directory '/home/svens/linux/parisc-linux/build' make: *** [Makefile:179: sub-make] Error 2 Signed-off-by: Sven Schnelle <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent e16260c commit aeea5ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/kernel/drivers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ EXPORT_SYMBOL(device_to_hwpath);
810810
static void walk_native_bus(unsigned long io_io_low, unsigned long io_io_high,
811811
struct device *parent);
812812

813-
static void walk_lower_bus(struct parisc_device *dev)
813+
static void __init walk_lower_bus(struct parisc_device *dev)
814814
{
815815
unsigned long io_io_low, io_io_high;
816816

0 commit comments

Comments
 (0)