]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
x86/bugs: Make cpu_show_common() static
authorJiri Kosina <jkosina@suse.cz>
Thu, 10 May 2018 20:47:32 +0000 (22:47 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 15 May 2018 05:35:23 +0000 (07:35 +0200)
cpu_show_common() is not used outside of arch/x86/kernel/cpu/bugs.c, so
make it static.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
CVE-2018-3639 (x86)

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/x86/kernel/cpu/bugs.c

index d28b541a65449a4087756b7dd35ef0628e5a00ea..2443b9580e9449e7c4ed8cdafd32774e6b89038f 100644 (file)
@@ -598,7 +598,7 @@ void x86_spec_ctrl_setup_ap(void)
 }
 
 #ifdef CONFIG_SYSFS
-ssize_t cpu_show_common(struct device *dev, struct device_attribute *attr,
+static ssize_t cpu_show_common(struct device *dev, struct device_attribute *attr,
                        char *buf, unsigned int bug)
 {
        if (!boot_cpu_has_bug(bug))