Skip to content

Commit 84dfce6

Browse files
andy-shevhansendc
authored andcommitted
x86/bugs: Remove dead code which might prevent from building
Clang, in particular, is not happy about dead code: arch/x86/kernel/cpu/bugs.c:1830:20: error: unused function 'match_option' [-Werror,-Wunused-function] 1830 | static inline bool match_option(const char *arg, int arglen, const char *opt) | ^~~~~~~~~~~~ 1 error generated. Remove a leftover from the previous cleanup. Fixes: 02ac6cc ("x86/bugs: Simplify SSB cmdline parsing") Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Link: https://patch.msgid.link/20251024125959.1526277-1-andriy.shevchenko%40linux.intel.com
1 parent 204ced4 commit 84dfce6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

arch/x86/kernel/cpu/bugs.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,13 +1827,6 @@ void unpriv_ebpf_notify(int new_state)
18271827
}
18281828
#endif
18291829

1830-
static inline bool match_option(const char *arg, int arglen, const char *opt)
1831-
{
1832-
int len = strlen(opt);
1833-
1834-
return len == arglen && !strncmp(arg, opt, len);
1835-
}
1836-
18371830
/* The kernel command line selection for spectre v2 */
18381831
enum spectre_v2_mitigation_cmd {
18391832
SPECTRE_V2_CMD_NONE,

0 commit comments

Comments
 (0)