Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/{boot,mtrr}: Remove unused function declarations

Commits

28be1b454c2b ("x86/boot: Remove unused copy_*_gs() functions")
34d2819f2078 ("x86, mtrr: Remove unused mtrr/state.c")

removed the functions but left the prototypes. Remove them.

[ bp: Merge into a single patch. ]

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20251120121037.1479334-1-yuehaibing@huawei.com

authored by

Yue Haibing and committed by
Borislav Petkov (AMD)
e6a11a52 fd4e0255

-6
-2
arch/x86/boot/boot.h
··· 193 193 194 194 void copy_to_fs(addr_t dst, void *src, size_t len); 195 195 void *copy_from_fs(void *dst, addr_t src, size_t len); 196 - void copy_to_gs(addr_t dst, void *src, size_t len); 197 - void *copy_from_gs(void *dst, addr_t src, size_t len); 198 196 199 197 /* a20.c */ 200 198 int enable_a20(void);
-4
arch/x86/kernel/cpu/mtrr/mtrr.h
··· 46 46 u32 ccr3; 47 47 }; 48 48 49 - void set_mtrr_done(struct set_mtrr_context *ctxt); 50 - void set_mtrr_cache_disable(struct set_mtrr_context *ctxt); 51 - void set_mtrr_prepare_save(struct set_mtrr_context *ctxt); 52 - 53 49 void fill_mtrr_var_range(unsigned int index, 54 50 u32 base_lo, u32 base_hi, u32 mask_lo, u32 mask_hi); 55 51 bool get_mtrr_state(void);