]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
x86/fpu: Fixup uninitialized feature_name warning
authorBorislav Petkov <bp@suse.de>
Wed, 23 Sep 2015 10:49:01 +0000 (12:49 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 24 Sep 2015 07:21:20 +0000 (09:21 +0200)
Hand in &feature_name to cpu_has_xfeatures() as it is supposed
to. Fixes an uninitialized warning.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: brgerst@gmail.com
Cc: dvlasenk@redhat.com
Cc: fenghua.yu@intel.com
Cc: luto@amacapital.net
Cc: tim.c.chen@linux.intel.com
Fixes: d91cab78133d ("x86/fpu: Rename XSAVE macros")
Link: http://lkml.kernel.org/r/20150923104901.GA3538@pd.tnic
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/crypto/twofish_avx_glue.c

index 6f3738ced95e76b96f495b294f1a37cea952ed46..b7a3904b953c6146f543a164e6456c1893102a92 100644 (file)
@@ -558,7 +558,7 @@ static int __init twofish_init(void)
 {
        const char *feature_name;
 
-       if (!cpu_has_xfeatures(XFEATURE_MASK_SSE | XFEATURE_MASK_YMM, NULL)) {
+       if (!cpu_has_xfeatures(XFEATURE_MASK_SSE | XFEATURE_MASK_YMM, &feature_name)) {
                pr_info("CPU feature '%s' is not supported.\n", feature_name);
                return -ENODEV;
        }