All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: drivers/base/power/domain.c:1040:2: warning: There is an unknown macro here somewhere. Configuration is required. If list_for_each_entry is a macro then please configure it. [unknownMacro]
Date: Tue, 05 Apr 2022 10:46:19 +0800	[thread overview]
Message-ID: <202204051006.vaIwVaWF-lkp@intel.com> (raw)

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

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Arnd Bergmann <arnd@arndb.de>
CC: Bjorn Andersson <bjorn.andersson@linaro.org>
CC: Charles Keepax <ckeepax@opensource.cirrus.com>
CC: Mark Brown <broonie@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3123109284176b1532874591f7c81f3837bbdc17
commit: 951cd3a0866d29cb9c01ebc1d9c17590e598226e firmware: include drivers/firmware/Kconfig unconditionally
date:   6 months ago
:::::: branch date: 30 hours ago
:::::: commit date: 6 months ago
compiler: arc-elf-gcc (GCC) 11.2.0

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


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> drivers/base/power/domain.c:1040:2: warning: There is an unknown macro here somewhere. Configuration is required. If list_for_each_entry is a macro then please configure it. [unknownMacro]
    list_for_each_entry(genpd, &gpd_list, gpd_list_node)
    ^

vim +1040 drivers/base/power/domain.c

39ac5ba51b69a7 Tushar Behera     2014-03-28  1025  
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14  1026  /**
86e12eac1f7f84 Ulf Hansson       2016-12-08  1027   * genpd_power_off_unused - Power off all PM domains with no devices in use.
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14  1028   */
86e12eac1f7f84 Ulf Hansson       2016-12-08  1029  static int __init genpd_power_off_unused(void)
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14  1030  {
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14  1031  	struct generic_pm_domain *genpd;
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14  1032  
39ac5ba51b69a7 Tushar Behera     2014-03-28  1033  	if (pd_ignore_unused) {
39ac5ba51b69a7 Tushar Behera     2014-03-28  1034  		pr_warn("genpd: Not disabling unused power domains\n");
bb4b72fc63d4c1 Ulf Hansson       2015-10-06  1035  		return 0;
39ac5ba51b69a7 Tushar Behera     2014-03-28  1036  	}
39ac5ba51b69a7 Tushar Behera     2014-03-28  1037  
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14  1038  	mutex_lock(&gpd_list_lock);
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14  1039  
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14 @1040  	list_for_each_entry(genpd, &gpd_list, gpd_list_node)
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14  1041  		genpd_queue_power_off_work(genpd);
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14  1042  
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14  1043  	mutex_unlock(&gpd_list_lock);
17f2ae7f677f02 Rafael J. Wysocki 2011-08-14  1044  
2fe71dcdfd10d3 Ulf Hansson       2014-09-03  1045  	return 0;
2fe71dcdfd10d3 Ulf Hansson       2014-09-03  1046  }
86e12eac1f7f84 Ulf Hansson       2016-12-08  1047  late_initcall(genpd_power_off_unused);
2fe71dcdfd10d3 Ulf Hansson       2014-09-03  1048  

:::::: The code at line 1040 was first introduced by commit
:::::: 17f2ae7f677f023997e02fd2ebabd90ea2a0390d PM / Domains: Fix build for CONFIG_PM_RUNTIME unset

:::::: TO: Rafael J. Wysocki <rjw@sisk.pl>
:::::: CC: Rafael J. Wysocki <rjw@sisk.pl>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-04-05  2:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202204051006.vaIwVaWF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /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 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.