Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d748b615 authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by Greg Kroah-Hartman
Browse files

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



commit b1a384d2cbccb1eb3f84765020d25e2c1929706e upstream.

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: default avatarkernel test robot <lkp@intel.com>
Fixes: 9dd78194a372 ("ARM: report Spectre v2 status through sysfs")
Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 31fb07f2
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -110,7 +110,8 @@ static unsigned int spectre_v2_install_workaround(unsigned int method)
#else
#else
static unsigned int spectre_v2_install_workaround(unsigned int method)
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;
	return SPECTRE_VULNERABLE;
}
}