Unknown symbol reboot_mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
When I insert external kernel module which is compiled out of tree I got error:

root:/run# insmod ./my_module.ko
[  137.443823] my_module: Unknown symbol reboot_mode (err 0)

I investigated that I have attached in my my_module.c file:
#include <linux/reboot.h>
and in this file we have:
extern enum reboot_mode reboot_mode;
However reboot_mode symbol is not exported with macro EXPORT_SYMBOL_GPL.
Probably this is the reason why symbol is not seen in my module. Then why the same issue doesn't occur here:
/arch/arm/kernel/setup.c
/arch/arm64/kernel/process.c
Those linux files also use global variable reboot_mode.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux