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 <masahiroy@kernel.org> Message-Id: <20240918031537.588965-1-masahiroy@kernel.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent adc2186 commit 99e487d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)