lkml.org 
[lkml]   [2020]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 13/13] cpufreq: amd_freq_sensitivity: Remove unused ID structs
    Date
    Can't see them being used anywhere and the compiler doesn't complain
    that they're missing, so ...

    Fixes the following W=1 kernel build warning(s):

    drivers/cpufreq/amd_freq_sensitivity.c:147:32: warning: ‘amd_freq_sensitivity_ids’ defined but not used [-Wunused-const-variable=]
    147 | static const struct x86_cpu_id amd_freq_sensitivity_ids[] = {
    | ^~~~~~~~~~~~~~~~~~~~~~~~

    Cc: Jacob Shin <jacob.shin@amd.com>
    Signed-off-by: Lee Jones <lee.jones@linaro.org>
    ---
    drivers/cpufreq/amd_freq_sensitivity.c | 6 ------
    1 file changed, 6 deletions(-)

    diff --git a/drivers/cpufreq/amd_freq_sensitivity.c b/drivers/cpufreq/amd_freq_sensitivity.c
    index f7c4206d4c90b..a17093729511b 100644
    --- a/drivers/cpufreq/amd_freq_sensitivity.c
    +++ b/drivers/cpufreq/amd_freq_sensitivity.c
    @@ -144,12 +144,6 @@ static void __exit amd_freq_sensitivity_exit(void)
    }
    module_exit(amd_freq_sensitivity_exit);

    -static const struct x86_cpu_id amd_freq_sensitivity_ids[] = {
    - X86_MATCH_FEATURE(X86_FEATURE_PROC_FEEDBACK, NULL),
    - {}
    -};
    -MODULE_DEVICE_TABLE(x86cpu, amd_freq_sensitivity_ids);
    -
    MODULE_AUTHOR("Jacob Shin <jacob.shin@amd.com>");
    MODULE_DESCRIPTION("AMD frequency sensitivity feedback powersave bias for "
    "the ondemand governor.");
    --
    2.25.1
    \
     
     \ /
      Last update: 2020-07-14 16:51    [W:4.126 / U:0.140 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site