question about boot_params global variables

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

 



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?

_______________________________________________
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