Linux-ACPI Archive on lore.kernel.org
 help / color / Atom feed
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:linux-next 12/24] drivers/base/power/domain.c:419:8: error: implicit declaration of function '__raw_notifier_call_chain'; did you mean
Date: Tue, 20 Oct 2020 04:46:49 +0800
Message-ID: <202010200445.pL0fqURG-lkp@intel.com> (raw)


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

Hi Ulf,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
head:   cebedc51f1c24b0f773d2486b8adca4aadd958a9
commit: d4f8138354b9ec290de0c7ba527a945c5549e32b [12/24] PM: domains: Add support for PM domain on/off notifiers for genpd
config: riscv-randconfig-r015-20201019 (attached as .config)
compiler: riscv32-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 linux-next
        git checkout d4f8138354b9ec290de0c7ba527a945c5549e32b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

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

                 reply index

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=202010200445.pL0fqURG-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devel@acpica.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=ulf.hansson@linaro.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

Linux-ACPI Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-acpi/0 linux-acpi/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-acpi linux-acpi/ https://lore.kernel.org/linux-acpi \
		linux-acpi@vger.kernel.org
	public-inbox-index linux-acpi

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-acpi


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git