lkml.org 
[lkml]   [2018]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/3] x86/cpu: fix prototype warning in scattered.c
    Date
    Missing include file causes warning:
    arch/x86/kernel/cpu/scattered.c:37:6: warning: no previous prototype for ‘init_scattered_cpuid_features’ [-Wmissing-prototypes]
    arch/x86/kernel/cpu/scattered.c:60:5: warning: no previous prototype for ‘get_scattered_cpuid_leaf’ [-Wmissing-prototypes]

    Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
    ---
    arch/x86/kernel/cpu/scattered.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattered.c
    index 772c219..5b6866f 100644
    --- a/arch/x86/kernel/cpu/scattered.c
    +++ b/arch/x86/kernel/cpu/scattered.c
    @@ -9,6 +9,8 @@

    #include <asm/apic.h>

    +#include "cpu.h"
    +
    struct cpuid_bit {
    u16 feature;
    u8 reg;
    --
    1.8.3.1
    \
     
     \ /
      Last update: 2018-11-07 09:59    [W:2.889 / U:0.664 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site