public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jori Koolstra <jkoolstra@xs4all.nl>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-pm@vger.kernel.org, Chanwoo Choi <cw00.choi@samsung.com>
Subject: [chanwoo:devfreq-next 5/5] drivers/devfreq/devfreq.c:1946:37: error: redefinition of 'devfreq_group'
Date: Sat, 21 Mar 2026 13:52:29 +0100	[thread overview]
Message-ID: <202603211336.i375F7lD-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git devfreq-next
head:   38aa14f9be920f3fea6fe3f16b69b7a0cd0478a1
commit: 38aa14f9be920f3fea6fe3f16b69b7a0cd0478a1 [5/5] PM / devfreq: change devfreq_class to a const struct
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260321/202603211336.i375F7lD-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260321/202603211336.i375F7lD-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603211336.i375F7lD-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/devfreq/devfreq.c:1946:37: error: redefinition of 'devfreq_group'
    1946 | static const struct attribute_group devfreq_group = {
         |                                     ^
   drivers/devfreq/devfreq.c:40:1: note: previous definition is here
      40 | ATTRIBUTE_GROUPS(devfreq);
         | ^
   include/linux/sysfs.h:291:37: note: expanded from macro 'ATTRIBUTE_GROUPS'
     291 | static const struct attribute_group _name##_group = {           \
         |                                     ^
   <scratch space>:89:1: note: expanded from here
      89 | devfreq_group
         | ^
>> drivers/devfreq/devfreq.c:1955:38: error: redefinition of 'devfreq_groups'
    1955 | static const struct attribute_group *devfreq_groups[] = {
         |                                      ^
   drivers/devfreq/devfreq.c:40:1: note: previous definition is here
      40 | ATTRIBUTE_GROUPS(devfreq);
         | ^
   include/linux/sysfs.h:298:11: note: expanded from macro 'ATTRIBUTE_GROUPS'
     298 | };                                                              \
         |                                                                 ^
   include/linux/sysfs.h:285:38: note: expanded from macro '\
   __ATTRIBUTE_GROUPS'
     285 | static const struct attribute_group *_name##_groups[] = {       \
         |                                      ^
   <scratch space>:93:1: note: expanded from here
      93 | devfreq_groups
         | ^
   2 errors generated.


vim +/devfreq_group +1946 drivers/devfreq/devfreq.c

9005b65099ee4f MyungJoo Ham  2011-10-02  1945  
e4999090951abc Pengjie Zhang 2025-12-16 @1946  static const struct attribute_group devfreq_group = {
e4999090951abc Pengjie Zhang 2025-12-16  1947  	.attrs = devfreq_attrs,
e4999090951abc Pengjie Zhang 2025-12-16  1948  };
e4999090951abc Pengjie Zhang 2025-12-16  1949  
e4999090951abc Pengjie Zhang 2025-12-16  1950  static const struct attribute_group gov_attr_group = {
e4999090951abc Pengjie Zhang 2025-12-16  1951  	.attrs = governor_attrs,
e4999090951abc Pengjie Zhang 2025-12-16  1952  	.is_visible = gov_attr_visible,
e4999090951abc Pengjie Zhang 2025-12-16  1953  };
e4999090951abc Pengjie Zhang 2025-12-16  1954  
e4999090951abc Pengjie Zhang 2025-12-16 @1955  static const struct attribute_group *devfreq_groups[] = {
e4999090951abc Pengjie Zhang 2025-12-16  1956  	&devfreq_group,
e4999090951abc Pengjie Zhang 2025-12-16  1957  	&gov_attr_group,
e4999090951abc Pengjie Zhang 2025-12-16  1958  	NULL
e4999090951abc Pengjie Zhang 2025-12-16  1959  };
e4999090951abc Pengjie Zhang 2025-12-16  1960  

:::::: The code at line 1946 was first introduced by commit
:::::: e4999090951abcf39543aa22b7a7a7f13c5a5857 PM / devfreq: use _visible attribute to replace create/remove_sysfs_files()

:::::: TO: Pengjie Zhang <zhangpengjie2@huawei.com>
:::::: CC: Chanwoo Choi <cw00.choi@samsung.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2026-03-21 12:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-21 12:52 kernel test robot [this message]
2026-03-21 15:11 ` [chanwoo:devfreq-next 5/5] drivers/devfreq/devfreq.c:1946:37: error: redefinition of 'devfreq_group' Chanwoo Choi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202603211336.i375F7lD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cw00.choi@samsung.com \
    --cc=jkoolstra@xs4all.nl \
    --cc=linux-pm@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox