x86/boot: Remove unused copy_*_gs() declarations
PATCH 1/1 x86/boot: Remove unused copy_*_gs() declarations
Commit 28be1b454c2b ("x86/boot: Remove unused copy_*_gs() functions") removed the functions but leave these.
Signed-off-by Yue Haibing <[email protected]>
--- arch/x86/boot/boot.h | 2 -- 1 file changed, 2 deletions(-)
arch/x86/boot/boot.h +0 -2
@@ -193,8 +193,6 @@ static inline bool heap_free(size_t n)void copy_to_fs (addr_t dst,void *src,size_t len);void *copy_from_fs (void *dst,addr_t src,size_t len); -void copy_to_gs (addr_t dst,void *src,size_t len); -void *copy_from_gs (void *dst,addr_t src,size_t len);/* a20.c */ int enable_a20 (void );
Signature · 1 line
2.34.1
[tip: x86/cleanups] x86/{boot,mtrr}: Remove unused function declarations
The following commit has been merged into the x86/cleanups branch of tip:
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: e6a11a526ec63e456d725f67cebcf4f42b2ec2aa Gitweb: https://git.kernel.org/tip/e6a11a526ec63e456d725f67cebcf4f42b2ec2aa Author: Yue Haibing <[email protected]> AuthorDate: Thu, 20 Nov 2025 20:10:37 +08:00 Committer: Borislav Petkov (AMD) <[email protected]> CommitterDate: Sat, 22 Nov 2025 21:26:36 +01:00
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 <[email protected]>
Signed-off-by Borislav Petkov (AMD) <[email protected]>
--- arch/x86/boot/boot.h | 2 -- arch/x86/kernel/cpu/mtrr/mtrr.h | 4 ---- 2 files changed, 6 deletions(-)
arch/x86/boot/boot.h +0 -2
@@ -193,8 +193,6 @@ static inline bool heap_free(size_t n)void copy_to_fs (addr_t dst,void *src,size_t len);void *copy_from_fs (void *dst,addr_t src,size_t len); -void copy_to_gs (addr_t dst,void *src,size_t len); -void *copy_from_gs (void *dst,addr_t src,size_t len);/* a20.c */ int enable_a20 (void );
arch/x86/kernel/cpu/mtrr/mtrr.h +0 -4
@@ -46,10 +46,6 @@ struct set_mtrr_context {u32 ccr3; }; -void set_mtrr_done (struct set_mtrr_context *ctxt); -void set_mtrr_cache_disable (struct set_mtrr_context *ctxt); -void set_mtrr_prepare_save (struct set_mtrr_context *ctxt); -void fill_mtrr_var_range (unsigned int index,u32 base_lo,u32 base_hi,u32 mask_lo,u32 mask_hi);bool get_mtrr_state (void );