lkml.org 
[lkml]   [2018]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 080/107] x86/bugs: Make cpu_show_common() static
    Date
    4.4-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Jiri Kosina <jkosina@suse.cz>

    commit 7bb4d366cba992904bffa4820d24e70a3de93e76 upstream

    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>
    Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Srivatsa S. Bhat <srivatsa@csail.mit.edu>
    Reviewed-by: Matt Helsley (VMware) <matt.helsley@gmail.com>
    Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
    Reviewed-by: Bo Gan <ganb@vmware.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---

    arch/x86/kernel/cpu/bugs.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/arch/x86/kernel/cpu/bugs.c
    +++ b/arch/x86/kernel/cpu/bugs.c
    @@ -638,7 +638,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))

    \
     
     \ /
      Last update: 2018-07-23 14:51    [W:2.226 / U:1.384 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site