question about boot_params global variables

shiyu chou shiyu2010310 at gmail.com
Tue Aug 16 05:55:33 EDT 2022


Hello all:
In arch x86 directory I found two global variables with the same
name(master branch):
1.arch/x86/boot/main.c
near line 18: struct boot_params boot_params __attribute__((aligned(16)));
2.arch/x86/kernel/setup.c
near line 75: struct boot_params boot_params;
Is that wrong to define two global variables with the same name? And when
use extern to reference the variable,which one did it reference?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20220816/037efc21/attachment.html>


More information about the Kernelnewbies mailing list