lkml.org 
[lkml]   [2015]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] perf/x86: test_aperfmperf and test_intel should be static
    Date
    Fixes the following sparse warnings:

    arch/x86/kernel/cpu/perf_event_msr.c:13:6: warning: symbol
    'test_aperfmperf' was not declared. Should it be static?

    arch/x86/kernel/cpu/perf_event_msr.c:18:6: warning: symbol
    'test_intel' was not declared. Should it be static?

    Signed-off-by: Geliang Tang <geliangtang@163.com>
    ---
    arch/x86/kernel/cpu/perf_event_msr.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/arch/x86/kernel/cpu/perf_event_msr.c b/arch/x86/kernel/cpu/perf_event_msr.c
    index 086b12e..f32ac13 100644
    --- a/arch/x86/kernel/cpu/perf_event_msr.c
    +++ b/arch/x86/kernel/cpu/perf_event_msr.c
    @@ -10,12 +10,12 @@ enum perf_msr_id {
    PERF_MSR_EVENT_MAX,
    };

    -bool test_aperfmperf(int idx)
    +static bool test_aperfmperf(int idx)
    {
    return boot_cpu_has(X86_FEATURE_APERFMPERF);
    }

    -bool test_intel(int idx)
    +static bool test_intel(int idx)
    {
    if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL ||
    boot_cpu_data.x86 != 6)
    --
    1.9.1



    \
     
     \ /
      Last update: 2015-09-24 14:01    [W:4.946 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site