Skip to content

Commit 99e487d

Browse files
masahir0yjcmvbkbc
authored andcommitted
xtensa: annotate dtb_start variable as static __initdata
The 'dtb_start' variable is only used within arch/xtensa/kernel/setup.c. Mark it as 'static'. It is only used by parse_tag_fdt() and init_arch(), both of which are annotated as __init. Therefore, dtb_start can be annotated as __initdata, so it will discarded after boot. Signed-off-by: Masahiro Yamada <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent adc2186 commit 99e487d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/xtensa/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extern int initrd_below_start_ok;
5555
#endif
5656

5757
#ifdef CONFIG_USE_OF
58-
void *dtb_start = __dtb_start;
58+
static void *dtb_start __initdata = __dtb_start;
5959
#endif
6060

6161
extern unsigned long loops_per_jiffy;

0 commit comments

Comments
 (0)