ARM: fix build warning in proc-v7-bugs.c
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 10 Mar 2022 10:22:14 +0000 (10:22 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Mar 2022 12:03:17 +0000 (04:03 -0800)
The kernel test robot discovered that building without
HARDEN_BRANCH_PREDICTOR issues a warning due to a missing
argument to pr_info().

Add the missing argument.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 9dd78194a372 ("ARM: report Spectre v2 status through sysfs")
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/mm/proc-v7-bugs.c

index c226feab2457369c3dcbd5092208c3e0bb4de058..06dbfb968182de7c585e41308da09eec15360600 100644 (file)
@@ -108,7 +108,8 @@ static unsigned int spectre_v2_install_workaround(unsigned int method)
 #else
 static unsigned int spectre_v2_install_workaround(unsigned int method)
 {
-       pr_info("CPU%u: Spectre V2: workarounds disabled by configuration\n");
+       pr_info("CPU%u: Spectre V2: workarounds disabled by configuration\n",
+               smp_processor_id());
 
        return SPECTRE_VULNERABLE;
 }