x86/fpu: Get rid of fpu__get_supported_xfeatures_mask()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Jun 2021 12:01:32 +0000 (14:01 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 23 Jun 2021 15:49:46 +0000 (17:49 +0200)
commitce38f038ede735fd425ebda10d1758420a669a87
treef549fa36ba483b9ad83b9884ffe36c5380813a71
parent4e8e4313cf81add679e1c57677d689c02e382a67
x86/fpu: Get rid of fpu__get_supported_xfeatures_mask()

This function is really not doing what the comment advertises:

 "Find supported xfeatures based on cpu features and command-line input.
  This must be called after fpu__init_parse_early_param() is called and
  xfeatures_mask is enumerated."

fpu__init_parse_early_param() does not exist anymore and the function just
returns a constant.

Remove it and fix the caller and get rid of further references to
fpu__init_parse_early_param().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121451.816404717@linutronix.de
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/fpu/init.c
arch/x86/kernel/fpu/xstate.c