]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/speculation: Add cpu_show_gds() prototype
authorArnd Bergmann <arnd@arndb.de>
Wed, 9 Aug 2023 13:04:59 +0000 (15:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2023 16:21:00 +0000 (18:21 +0200)
commit09f78fc442fa2a2922ed7365c93e4d92f53c2078
tree38f04ff8f3e6bad7cea06bf3f7723234af29adf5
parent5258281a930c56a061b87e90c89b6dd79f16930b
x86/speculation: Add cpu_show_gds() prototype

commit a57c27c7ad85c420b7de44c6ee56692d51709dda upstream.

The newly added function has two definitions but no prototypes:

drivers/base/cpu.c:605:16: error: no previous prototype for 'cpu_show_gds' [-Werror=missing-prototypes]

Add a declaration next to the other ones for this file to avoid the
warning.

Fixes: 8974eb588283b ("x86/speculation: Add Gather Data Sampling mitigation")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Tested-by: Daniel Sneddon <daniel.sneddon@linux.intel.com>
Cc: stable@kernel.org
Link: https://lore.kernel.org/all/20230809130530.1913368-1-arnd%40kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/cpu.h