Skip to content

Commit b1a384d

Browse files
Russell King (Oracle)torvalds
authored andcommitted
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 <[email protected]> Fixes: 9dd7819 ("ARM: report Spectre v2 status through sysfs") Signed-off-by: Russell King (Oracle) <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent cef0691 commit b1a384d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm/mm/proc-v7-bugs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ static unsigned int spectre_v2_install_workaround(unsigned int method)
108108
#else
109109
static unsigned int spectre_v2_install_workaround(unsigned int method)
110110
{
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());
112113

113114
return SPECTRE_VULNERABLE;
114115
}

0 commit comments

Comments
 (0)