All of lore.kernel.org
 help / color / mirror / Atom feed
* [chanwoo:devfreq-testing 7/7] drivers/devfreq/devfreq.c:294:23: error: 'CONFIG_NR_DEVFREQ_TRANSITIONS' undeclared here (not in a function)
@ 2021-03-09 18:40 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-09 18:40 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2261 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git devfreq-testing
head:   5cc75e9252e97fafde1a637d72b9fa222d2f9f0a
commit: 5cc75e9252e97fafde1a637d72b9fa222d2f9f0a [7/7] PM / devfreq: Add devfreq_transitions debugfs file
config: i386-randconfig-a011-20210309 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git/commit/?id=5cc75e9252e97fafde1a637d72b9fa222d2f9f0a
        git remote add chanwoo https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git
        git fetch --no-tags chanwoo devfreq-testing
        git checkout 5cc75e9252e97fafde1a637d72b9fa222d2f9f0a
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/devfreq/devfreq.c:294:23: error: 'CONFIG_NR_DEVFREQ_TRANSITIONS' undeclared here (not in a function)
     294 | } debugfs_transitions[CONFIG_NR_DEVFREQ_TRANSITIONS];
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/devfreq/devfreq.c: In function 'devfreq_transitions_show':
   drivers/devfreq/devfreq.c:2188:25: error: 'struct devfreq' has no member named 'governor_name'; did you mean 'governor'?
    2188 |   if (!strncmp(devfreq->governor_name,
         |                         ^~~~~~~~~~~~~
         |                         governor


vim +/CONFIG_NR_DEVFREQ_TRANSITIONS +294 drivers/devfreq/devfreq.c

   283	
   284	/**
   285	 * devfreq_update_transitions() - Update frequency transitions for debugfs file
   286	 * @devfreq:	the devfreq instance
   287	 * @old_freq:	the previous frequency before changing the frequency
   288	 * @new_freq:	the new frequency after frequency is changed
   289	 */
   290	struct devfreq_transitions {
   291		struct devfreq *devfreq;
   292		struct devfreq_freqs freqs;
   293		unsigned long load;
 > 294	} debugfs_transitions[CONFIG_NR_DEVFREQ_TRANSITIONS];
   295	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31540 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-09 18:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 18:40 [chanwoo:devfreq-testing 7/7] drivers/devfreq/devfreq.c:294:23: error: 'CONFIG_NR_DEVFREQ_TRANSITIONS' undeclared here (not in a function) kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.