All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp at intel.com>
To: devel@acpica.org
Subject: [Devel] [pm:bleeding-edge 12/29] drivers/base/power/domain.c:419:8: error: implicit declaration of function '__raw_notifier_call_chain'; did you mean
Date: Tue, 20 Oct 2020 02:19:39 +0800	[thread overview]
Message-ID: <202010200230.0MxnAfAW-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   2a58871c00f77abfc45935812e7e62a9d8a59a40
commit: d4f8138354b9ec290de0c7ba527a945c5549e32b [12/29] PM: domains: Add support for PM domain on/off notifiers for genpd
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=d4f8138354b9ec290de0c7ba527a945c5549e32b
        git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags pm bleeding-edge
        git checkout d4f8138354b9ec290de0c7ba527a945c5549e32b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa 

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

All errors (new ones prefixed by >>):

   drivers/base/power/domain.c: In function '_genpd_power_on':
>> drivers/base/power/domain.c:419:8: error: implicit declaration of function '__raw_notifier_call_chain'; did you mean 'raw_notifier_call_chain'? [-Werror=implicit-function-declaration]
     419 |  ret = __raw_notifier_call_chain(&genpd->power_notifiers,
         |        ^~~~~~~~~~~~~~~~~~~~~~~~~
         |        raw_notifier_call_chain
   cc1: some warnings being treated as errors

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

   410	
   411	static int _genpd_power_on(struct generic_pm_domain *genpd, bool timed)
   412	{
   413		unsigned int state_idx = genpd->state_idx;
   414		ktime_t time_start;
   415		s64 elapsed_ns;
   416		int ret, nr_calls = 0;
   417	
   418		/* Notify consumers that we are about to power on. */
 > 419		ret = __raw_notifier_call_chain(&genpd->power_notifiers,
   420						GENPD_NOTIFY_PRE_ON, NULL, -1,
   421						&nr_calls);
   422		ret = notifier_to_errno(ret);
   423		if (ret)
   424			goto err;
   425	
   426		if (!genpd->power_on)
   427			goto out;
   428	
   429		if (!timed) {
   430			ret = genpd->power_on(genpd);
   431			if (ret)
   432				goto err;
   433	
   434			goto out;
   435		}
   436	
   437		time_start = ktime_get();
   438		ret = genpd->power_on(genpd);
   439		if (ret)
   440			goto err;
   441	
   442		elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start));
   443		if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns)
   444			goto out;
   445	
   446		genpd->states[state_idx].power_on_latency_ns = elapsed_ns;
   447		genpd->max_off_time_changed = true;
   448		pr_debug("%s: Power-%s latency exceeded, new value %lld ns\n",
   449			 genpd->name, "on", elapsed_ns);
   450	
   451	out:
   452		raw_notifier_call_chain(&genpd->power_notifiers, GENPD_NOTIFY_ON, NULL);
   453		return 0;
   454	err:
   455		raw_notifier_call_chain(&genpd->power_notifiers, GENPD_NOTIFY_OFF,
   456					NULL);
   457		return ret;
   458	}
   459	

---
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: 65306 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: kbuild-all@lists.01.org, linux-acpi@vger.kernel.org,
	devel@acpica.org, linux-pm@vger.kernel.org,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>
Subject: [pm:bleeding-edge 12/29] drivers/base/power/domain.c:419:8: error: implicit declaration of function '__raw_notifier_call_chain'; did you mean
Date: Tue, 20 Oct 2020 02:19:39 +0800	[thread overview]
Message-ID: <202010200230.0MxnAfAW-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   2a58871c00f77abfc45935812e7e62a9d8a59a40
commit: d4f8138354b9ec290de0c7ba527a945c5549e32b [12/29] PM: domains: Add support for PM domain on/off notifiers for genpd
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=d4f8138354b9ec290de0c7ba527a945c5549e32b
        git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags pm bleeding-edge
        git checkout d4f8138354b9ec290de0c7ba527a945c5549e32b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa 

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/base/power/domain.c: In function '_genpd_power_on':
>> drivers/base/power/domain.c:419:8: error: implicit declaration of function '__raw_notifier_call_chain'; did you mean 'raw_notifier_call_chain'? [-Werror=implicit-function-declaration]
     419 |  ret = __raw_notifier_call_chain(&genpd->power_notifiers,
         |        ^~~~~~~~~~~~~~~~~~~~~~~~~
         |        raw_notifier_call_chain
   cc1: some warnings being treated as errors

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

   410	
   411	static int _genpd_power_on(struct generic_pm_domain *genpd, bool timed)
   412	{
   413		unsigned int state_idx = genpd->state_idx;
   414		ktime_t time_start;
   415		s64 elapsed_ns;
   416		int ret, nr_calls = 0;
   417	
   418		/* Notify consumers that we are about to power on. */
 > 419		ret = __raw_notifier_call_chain(&genpd->power_notifiers,
   420						GENPD_NOTIFY_PRE_ON, NULL, -1,
   421						&nr_calls);
   422		ret = notifier_to_errno(ret);
   423		if (ret)
   424			goto err;
   425	
   426		if (!genpd->power_on)
   427			goto out;
   428	
   429		if (!timed) {
   430			ret = genpd->power_on(genpd);
   431			if (ret)
   432				goto err;
   433	
   434			goto out;
   435		}
   436	
   437		time_start = ktime_get();
   438		ret = genpd->power_on(genpd);
   439		if (ret)
   440			goto err;
   441	
   442		elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start));
   443		if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns)
   444			goto out;
   445	
   446		genpd->states[state_idx].power_on_latency_ns = elapsed_ns;
   447		genpd->max_off_time_changed = true;
   448		pr_debug("%s: Power-%s latency exceeded, new value %lld ns\n",
   449			 genpd->name, "on", elapsed_ns);
   450	
   451	out:
   452		raw_notifier_call_chain(&genpd->power_notifiers, GENPD_NOTIFY_ON, NULL);
   453		return 0;
   454	err:
   455		raw_notifier_call_chain(&genpd->power_notifiers, GENPD_NOTIFY_OFF,
   456					NULL);
   457		return ret;
   458	}
   459	

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

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [pm:bleeding-edge 12/29] drivers/base/power/domain.c:419:8: error: implicit declaration of function '__raw_notifier_call_chain'; did you mean
Date: Tue, 20 Oct 2020 02:19:39 +0800	[thread overview]
Message-ID: <202010200230.0MxnAfAW-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   2a58871c00f77abfc45935812e7e62a9d8a59a40
commit: d4f8138354b9ec290de0c7ba527a945c5549e32b [12/29] PM: domains: Add support for PM domain on/off notifiers for genpd
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=d4f8138354b9ec290de0c7ba527a945c5549e32b
        git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags pm bleeding-edge
        git checkout d4f8138354b9ec290de0c7ba527a945c5549e32b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa 

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/base/power/domain.c: In function '_genpd_power_on':
>> drivers/base/power/domain.c:419:8: error: implicit declaration of function '__raw_notifier_call_chain'; did you mean 'raw_notifier_call_chain'? [-Werror=implicit-function-declaration]
     419 |  ret = __raw_notifier_call_chain(&genpd->power_notifiers,
         |        ^~~~~~~~~~~~~~~~~~~~~~~~~
         |        raw_notifier_call_chain
   cc1: some warnings being treated as errors

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

   410	
   411	static int _genpd_power_on(struct generic_pm_domain *genpd, bool timed)
   412	{
   413		unsigned int state_idx = genpd->state_idx;
   414		ktime_t time_start;
   415		s64 elapsed_ns;
   416		int ret, nr_calls = 0;
   417	
   418		/* Notify consumers that we are about to power on. */
 > 419		ret = __raw_notifier_call_chain(&genpd->power_notifiers,
   420						GENPD_NOTIFY_PRE_ON, NULL, -1,
   421						&nr_calls);
   422		ret = notifier_to_errno(ret);
   423		if (ret)
   424			goto err;
   425	
   426		if (!genpd->power_on)
   427			goto out;
   428	
   429		if (!timed) {
   430			ret = genpd->power_on(genpd);
   431			if (ret)
   432				goto err;
   433	
   434			goto out;
   435		}
   436	
   437		time_start = ktime_get();
   438		ret = genpd->power_on(genpd);
   439		if (ret)
   440			goto err;
   441	
   442		elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start));
   443		if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns)
   444			goto out;
   445	
   446		genpd->states[state_idx].power_on_latency_ns = elapsed_ns;
   447		genpd->max_off_time_changed = true;
   448		pr_debug("%s: Power-%s latency exceeded, new value %lld ns\n",
   449			 genpd->name, "on", elapsed_ns);
   450	
   451	out:
   452		raw_notifier_call_chain(&genpd->power_notifiers, GENPD_NOTIFY_ON, NULL);
   453		return 0;
   454	err:
   455		raw_notifier_call_chain(&genpd->power_notifiers, GENPD_NOTIFY_OFF,
   456					NULL);
   457		return ret;
   458	}
   459	

---
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: 65306 bytes --]

             reply	other threads:[~2020-10-19 18:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-19 18:19 kernel test robot [this message]
2020-10-19 18:19 ` [pm:bleeding-edge 12/29] drivers/base/power/domain.c:419:8: error: implicit declaration of function '__raw_notifier_call_chain'; did you mean kernel test robot
2020-10-19 18:19 ` kernel test robot

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=202010200230.0MxnAfAW-lkp@intel.com \
    --to=devel@acpica.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.