Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: fix build warning in proc-v7-bugs.c

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>

authored by

Russell King (Oracle) and committed by
Linus Torvalds
b1a384d2 cef06913

+2 -1
+2 -1
arch/arm/mm/proc-v7-bugs.c
··· 108 108 #else 109 109 static unsigned int spectre_v2_install_workaround(unsigned int method) 110 110 { 111 - pr_info("CPU%u: Spectre V2: workarounds disabled by configuration\n"); 111 + pr_info("CPU%u: Spectre V2: workarounds disabled by configuration\n", 112 + smp_processor_id()); 112 113 113 114 return SPECTRE_VULNERABLE; 114 115 }