Skip to content

Commit 2774ae1

Browse files
committed
x86/boot/e820: Clean up __refdata use a bit
So __refdata, like __init, is more of a storage class specifier, so move the attribute in front of the type, not after the variable name. This also aligns it vertically. Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Andy Shevchenko <andy@kernel.org> Cc: Arnd Bergmann <arnd@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Juergen Gross <jgross@suse.com> Cc: "H . Peter Anvin" <hpa@zytor.com> Cc: Kees Cook <keescook@chromium.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Rapoport <rppt@kernel.org> Cc: Paul Menzel <pmenzel@molgen.mpg.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: David Woodhouse <dwmw@amazon.co.uk> Link: https://patch.msgid.link/20250515120549.2820541-16-mingo@kernel.org
1 parent a4803df commit 2774ae1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

arch/x86/kernel/e820.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ static struct e820_table e820_table_init __initdata;
6161
static struct e820_table e820_table_kexec_init __initdata;
6262
static struct e820_table e820_table_firmware_init __initdata;
6363

64-
struct e820_table *e820_table __refdata = &e820_table_init;
65-
struct e820_table *e820_table_kexec __refdata = &e820_table_kexec_init;
66-
struct e820_table *e820_table_firmware __refdata = &e820_table_firmware_init;
64+
__refdata struct e820_table *e820_table = &e820_table_init;
65+
__refdata struct e820_table *e820_table_kexec = &e820_table_kexec_init;
66+
__refdata struct e820_table *e820_table_firmware = &e820_table_firmware_init;
6767

6868
/* For PCI or other memory-mapped resources */
6969
unsigned long pci_mem_start = 0xaeedbabe;

0 commit comments

Comments
 (0)