]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/{boot,mtrr}: Remove unused function declarations
authorYue Haibing <yuehaibing@huawei.com>
Thu, 20 Nov 2025 12:10:37 +0000 (20:10 +0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sat, 22 Nov 2025 20:26:36 +0000 (21:26 +0100)
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
arch/x86/boot/boot.h
arch/x86/kernel/cpu/mtrr/mtrr.h

index a3c58ebe366251b845d3ae069056e25f1f7b3fe5..8e3eab34dff48f862a351118c22b5843ce3d1441 100644 (file)
@@ -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);
index 5655f253d929a84f0c211af7485db00a305a88d7..2de3bd2f95d12bf60d66a14d08979871a2708553 100644 (file)
@@ -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);