[pm:pm-cpufreq-rjw 7/13] drivers/cpufreq/cpufreq_ondemand.c:35:32: warning: 'cpufreq_gov_ondemand' defined but not used

From: kbuild test robot <hidden>
Date: 2016-02-05 01:16:03

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-cpufreq-rjw
head:   5e636bcbccdde4974c8b03d213db761b32bd564f
commit: d8f8fd02914c97b93d86fb981f34c1694a4cb523 [7/13] cpufreq: governor: Put governor structure into common_dbs_data
config: x86_64-randconfig-x008-02040646 (attached as .config)
reproduce:
        git checkout d8f8fd02914c97b93d86fb981f34c1694a4cb523
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):
quoted
drivers/cpufreq/cpufreq_ondemand.c:35:32: warning: 'cpufreq_gov_ondemand' defined but not used [-Wunused-variable]
    static struct cpufreq_governor cpufreq_gov_ondemand;
                                   ^

vim +/cpufreq_gov_ondemand +35 drivers/cpufreq/cpufreq_ondemand.c

4471a34f9 Viresh Kumar                  2012-10-26  19  #include "cpufreq_governor.h"
^1da177e4 Linus Torvalds                2005-04-16  20  
06eb09d17 Stratos Karafotis             2013-02-08  21  /* On-demand governor macros */
^1da177e4 Linus Torvalds                2005-04-16  22  #define DEF_FREQUENCY_UP_THRESHOLD		(80)
3f78a9f7f David C Niemi                 2010-10-06  23  #define DEF_SAMPLING_DOWN_FACTOR		(1)
3f78a9f7f David C Niemi                 2010-10-06  24  #define MAX_SAMPLING_DOWN_FACTOR		(100000)
808009131 venkatesh.pallipadi@intel.com 2008-08-04  25  #define MICRO_FREQUENCY_UP_THRESHOLD		(95)
cef9615a8 Thomas Renninger              2009-04-22  26  #define MICRO_FREQUENCY_MIN_SAMPLE_RATE		(10000)
c29f14030 Dave Jones                    2005-05-31  27  #define MIN_FREQUENCY_UP_THRESHOLD		(11)
^1da177e4 Linus Torvalds                2005-04-16  28  #define MAX_FREQUENCY_UP_THRESHOLD		(100)
^1da177e4 Linus Torvalds                2005-04-16  29  
4471a34f9 Viresh Kumar                  2012-10-26  30  static DEFINE_PER_CPU(struct od_cpu_dbs_info_s, od_cpu_dbs_info);
^1da177e4 Linus Torvalds                2005-04-16  31  
fb30809ef Jacob Shin                    2013-04-02  32  static struct od_ops od_ops;
fb30809ef Jacob Shin                    2013-04-02  33  
3e33ee9e0 Fabio Baltieri                2012-11-26  34  #ifndef CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND
3e33ee9e0 Fabio Baltieri                2012-11-26 @35  static struct cpufreq_governor cpufreq_gov_ondemand;
3e33ee9e0 Fabio Baltieri                2012-11-26  36  #endif
3e33ee9e0 Fabio Baltieri                2012-11-26  37  
c28375583 Jacob Shin                    2013-06-25  38  static unsigned int default_powersave_bias;
c28375583 Jacob Shin                    2013-06-25  39  
4471a34f9 Viresh Kumar                  2012-10-26  40  static void ondemand_powersave_bias_init_cpu(int cpu)
6b8fcd902 Arjan van de Ven              2010-05-09  41  {
4471a34f9 Viresh Kumar                  2012-10-26  42  	struct od_cpu_dbs_info_s *dbs_info = &per_cpu(od_cpu_dbs_info, cpu);
6b8fcd902 Arjan van de Ven              2010-05-09  43  

:::::: The code at line 35 was first introduced by commit
:::::: 3e33ee9e0804748f1b7a01af9ba0e8e1e10f772f cpufreq: ondemand: update sampling rate only on right CPUs

:::::: TO: Fabio Baltieri [off-list ref]
:::::: CC: Rafael J. Wysocki [off-list ref]

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help