diff options
author | Guenter Roeck <linux@roeck-us.net> | 2020-06-17 07:14:10 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-16 13:00:50 +0200 |
commit | 3b68328c004ecb920e4be1bec33de74844e4b489 (patch) | |
tree | c21c8b0e6cb9b5e4736b2d2ffc7885a1080b22df | |
parent | f397f5c53780ea12fcd4b8648e549370e5105a2a (diff) | |
download | linux-stable-3b68328c004ecb920e4be1bec33de74844e4b489.tar.gz linux-stable-3b68328c004ecb920e4be1bec33de74844e4b489.tar.bz2 linux-stable-3b68328c004ecb920e4be1bec33de74844e4b489.zip |
cpu/speculation: Add prototype for cpu_show_srbds()
commit 2accfa69050c2a0d6fc6106f609208b3e9622b26 upstream.
0-day is not happy that there is no prototype for cpu_show_srbds():
drivers/base/cpu.c:565:16: error: no previous prototype for 'cpu_show_srbds'
Fixes: 7e5b3c267d25 ("x86/speculation: Add Special Register Buffer Data Sampling (SRBDS) mitigation")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200617141410.93338-1-linux@roeck-us.net
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | include/linux/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index e19bbc38a722..673f21465377 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -61,6 +61,7 @@ extern ssize_t cpu_show_tsx_async_abort(struct device *dev, char *buf); extern ssize_t cpu_show_itlb_multihit(struct device *dev, struct device_attribute *attr, char *buf); +extern ssize_t cpu_show_srbds(struct device *dev, struct device_attribute *attr, char *buf); extern __printf(4, 5) struct device *cpu_device_create(struct device *parent, void *drvdata, |