diff options
| author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-03-10 10:22:14 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-03-11 10:15:12 +0100 |
| commit | 623ca876d4a91665b7d948e399f5776c713722ea (patch) | |
| tree | dd9af54e350cdbb6ba60c5c5a3b2c8139668ec81 | |
| parent | 868d5f8a428f41da7f493a6744913b55c5c97ee2 (diff) | |
| download | linux-623ca876d4a91665b7d948e399f5776c713722ea.tar.gz linux-623ca876d4a91665b7d948e399f5776c713722ea.tar.bz2 linux-623ca876d4a91665b7d948e399f5776c713722ea.zip | |
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: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | arch/arm/mm/proc-v7-bugs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mm/proc-v7-bugs.c b/arch/arm/mm/proc-v7-bugs.c index 76c39760801c..8394307272d6 100644 --- a/arch/arm/mm/proc-v7-bugs.c +++ b/arch/arm/mm/proc-v7-bugs.c @@ -110,7 +110,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; } |
