mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
x86/cpu: Remove unnecessary __maybe_unused annotations
Remove __maybe_unused from variables and functions that are referenced unconditionally. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://patch.msgid.link/20260630083031.683508-2-thorsten.blum@linux.dev
This commit is contained in:
parent
b096d79bc1
commit
10b45e63a5
|
|
@ -1651,7 +1651,7 @@ static inline bool parse_set_clear_cpuid(char *arg, bool set)
|
|||
int taint = 0;
|
||||
|
||||
while (arg) {
|
||||
bool found __maybe_unused = false;
|
||||
bool found = false;
|
||||
unsigned int bit;
|
||||
|
||||
opt = strsep(&arg, ",");
|
||||
|
|
|
|||
|
|
@ -136,8 +136,7 @@ struct cont_desc {
|
|||
* Microcode patch container file is prepended to the initrd in cpio
|
||||
* format. See Documentation/arch/x86/microcode.rst
|
||||
*/
|
||||
static const char
|
||||
ucode_path[] __maybe_unused = "kernel/x86/microcode/AuthenticAMD.bin";
|
||||
static const char ucode_path[] = "kernel/x86/microcode/AuthenticAMD.bin";
|
||||
|
||||
/*
|
||||
* This is CPUID(1).EAX on the BSP. It is used in two ways:
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ const char *get_topology_cpu_type_name(struct cpuinfo_x86 *c)
|
|||
}
|
||||
}
|
||||
|
||||
static unsigned int __maybe_unused parse_num_cores_legacy(struct cpuinfo_x86 *c)
|
||||
static unsigned int parse_num_cores_legacy(struct cpuinfo_x86 *c)
|
||||
{
|
||||
struct {
|
||||
u32 cache_type : 5,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user