Skip to content

Commit e6a11a5

Browse files
Yue Haibingbp3tk0v
authored andcommitted
x86/{boot,mtrr}: Remove unused function declarations
Commits 28be1b4 ("x86/boot: Remove unused copy_*_gs() functions") 34d2819 ("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
1 parent fd4e025 commit e6a11a5

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

arch/x86/boot/boot.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ static inline bool heap_free(size_t n)
193193

194194
void copy_to_fs(addr_t dst, void *src, size_t len);
195195
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);
198196

199197
/* a20.c */
200198
int enable_a20(void);

arch/x86/kernel/cpu/mtrr/mtrr.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ struct set_mtrr_context {
4646
u32 ccr3;
4747
};
4848

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-
5349
void fill_mtrr_var_range(unsigned int index,
5450
u32 base_lo, u32 base_hi, u32 mask_lo, u32 mask_hi);
5551
bool get_mtrr_state(void);

0 commit comments

Comments
 (0)