Linux Power Management development
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: kbuild-all@01.org, linux-acpi@vger.kernel.org, devel@acpica.org,
	linux-pm@vger.kernel.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Matthias Kaehlcke <mka@chromium.org>,
	Ulf Hansson <ulf.hansson@linaro.org>
Subject: [pm:linux-next 89/102] include/linux/pm_qos.h:209:4: error: expected identifier or '(' before '{' token
Date: Thu, 4 Jul 2019 08:52:22 +0800	[thread overview]
Message-ID: <201907040847.xfwo8JCv%lkp@intel.com> (raw)

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

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
head:   267eacd79cadd5e2d6307320497d66119907c411
commit: 024a47a2732d5f9cd9c039c52074912c6982d786 [89/102] PM / QOS: Pass request type to dev_pm_qos_{add|remove}_notifier()
config: riscv-allnoconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 024a47a2732d5f9cd9c039c52074912c6982d786
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=riscv 

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

All errors (new ones prefixed by >>):

   In file included from kernel//power/qos.c:33:0:
>> include/linux/pm_qos.h:209:4: error: expected identifier or '(' before '{' token
       { return 0; }
       ^
   include/linux/pm_qos.h:206:19: warning: 'dev_pm_qos_add_notifier' declared 'static' but never defined [-Wunused-function]
    static inline int dev_pm_qos_add_notifier(struct device *dev,
                      ^~~~~~~~~~~~~~~~~~~~~~~

vim +209 include/linux/pm_qos.h

6dbf5cea Rafael J. Wysocki 2017-02-24  178  
6dbf5cea Rafael J. Wysocki 2017-02-24  179  static inline s32 dev_pm_qos_raw_read_value(struct device *dev)
6dbf5cea Rafael J. Wysocki 2017-02-24  180  {
6dbf5cea Rafael J. Wysocki 2017-02-24  181  	return IS_ERR_OR_NULL(dev->power.qos) ?
0759e80b Rafael J. Wysocki 2017-11-07  182  		PM_QOS_RESUME_LATENCY_NO_CONSTRAINT :
0759e80b Rafael J. Wysocki 2017-11-07  183  		pm_qos_read_value(&dev->power.qos->resume_latency);
6dbf5cea Rafael J. Wysocki 2017-02-24  184  }
e8db0be1 Jean Pihet        2011-08-25  185  #else
ae0fb4b7 Rafael J. Wysocki 2012-10-23  186  static inline enum pm_qos_flags_status __dev_pm_qos_flags(struct device *dev,
ae0fb4b7 Rafael J. Wysocki 2012-10-23  187  							  s32 mask)
ae0fb4b7 Rafael J. Wysocki 2012-10-23  188  			{ return PM_QOS_FLAGS_UNDEFINED; }
ae0fb4b7 Rafael J. Wysocki 2012-10-23  189  static inline enum pm_qos_flags_status dev_pm_qos_flags(struct device *dev,
ae0fb4b7 Rafael J. Wysocki 2012-10-23  190  							s32 mask)
ae0fb4b7 Rafael J. Wysocki 2012-10-23  191  			{ return PM_QOS_FLAGS_UNDEFINED; }
00dc9ad1 Rafael J. Wysocki 2011-12-01  192  static inline s32 __dev_pm_qos_read_value(struct device *dev)
0759e80b Rafael J. Wysocki 2017-11-07  193  			{ return PM_QOS_RESUME_LATENCY_NO_CONSTRAINT; }
1a9a9152 Rafael J. Wysocki 2011-09-29  194  static inline s32 dev_pm_qos_read_value(struct device *dev)
0759e80b Rafael J. Wysocki 2017-11-07  195  			{ return PM_QOS_RESUME_LATENCY_NO_CONSTRAINT; }
91ff4cb8 Jean Pihet        2011-08-25  196  static inline int dev_pm_qos_add_request(struct device *dev,
91ff4cb8 Jean Pihet        2011-08-25  197  					 struct dev_pm_qos_request *req,
ae0fb4b7 Rafael J. Wysocki 2012-10-23  198  					 enum dev_pm_qos_req_type type,
91ff4cb8 Jean Pihet        2011-08-25  199  					 s32 value)
91ff4cb8 Jean Pihet        2011-08-25  200  			{ return 0; }
91ff4cb8 Jean Pihet        2011-08-25  201  static inline int dev_pm_qos_update_request(struct dev_pm_qos_request *req,
91ff4cb8 Jean Pihet        2011-08-25  202  					    s32 new_value)
91ff4cb8 Jean Pihet        2011-08-25  203  			{ return 0; }
91ff4cb8 Jean Pihet        2011-08-25  204  static inline int dev_pm_qos_remove_request(struct dev_pm_qos_request *req)
91ff4cb8 Jean Pihet        2011-08-25  205  			{ return 0; }
91ff4cb8 Jean Pihet        2011-08-25  206  static inline int dev_pm_qos_add_notifier(struct device *dev,
024a47a2 Viresh Kumar      2019-07-01  207  					  struct notifier_block *notifier,
024a47a2 Viresh Kumar      2019-07-01  208  					  enum dev_pm_qos_req_type type);
91ff4cb8 Jean Pihet        2011-08-25 @209  			{ return 0; }
91ff4cb8 Jean Pihet        2011-08-25  210  static inline int dev_pm_qos_remove_notifier(struct device *dev,
024a47a2 Viresh Kumar      2019-07-01  211  					     struct notifier_block *notifier,
024a47a2 Viresh Kumar      2019-07-01  212  					     enum dev_pm_qos_req_type type)
91ff4cb8 Jean Pihet        2011-08-25  213  			{ return 0; }
91ff4cb8 Jean Pihet        2011-08-25  214  static inline void dev_pm_qos_constraints_init(struct device *dev)
1a9a9152 Rafael J. Wysocki 2011-09-29  215  {
1a9a9152 Rafael J. Wysocki 2011-09-29  216  	dev->power.power_state = PMSG_ON;
1a9a9152 Rafael J. Wysocki 2011-09-29  217  }
91ff4cb8 Jean Pihet        2011-08-25  218  static inline void dev_pm_qos_constraints_destroy(struct device *dev)
1a9a9152 Rafael J. Wysocki 2011-09-29  219  {
1a9a9152 Rafael J. Wysocki 2011-09-29  220  	dev->power.power_state = PMSG_INVALID;
1a9a9152 Rafael J. Wysocki 2011-09-29  221  }
40a5f8be Rafael J. Wysocki 2011-12-23  222  static inline int dev_pm_qos_add_ancestor_request(struct device *dev,
71d821fd Rafael J. Wysocki 2014-02-11  223  						  struct dev_pm_qos_request *req,
71d821fd Rafael J. Wysocki 2014-02-11  224  						  enum dev_pm_qos_req_type type,
71d821fd Rafael J. Wysocki 2014-02-11  225  						  s32 value)
40a5f8be Rafael J. Wysocki 2011-12-23  226  			{ return 0; }
85dc0b8a Rafael J. Wysocki 2012-03-13  227  static inline int dev_pm_qos_expose_latency_limit(struct device *dev, s32 value)
85dc0b8a Rafael J. Wysocki 2012-03-13  228  			{ return 0; }
85dc0b8a Rafael J. Wysocki 2012-03-13  229  static inline void dev_pm_qos_hide_latency_limit(struct device *dev) {}
e39473d0 Rafael J. Wysocki 2012-10-24  230  static inline int dev_pm_qos_expose_flags(struct device *dev, s32 value)
e39473d0 Rafael J. Wysocki 2012-10-24  231  			{ return 0; }
e39473d0 Rafael J. Wysocki 2012-10-24  232  static inline void dev_pm_qos_hide_flags(struct device *dev) {}
e39473d0 Rafael J. Wysocki 2012-10-24  233  static inline int dev_pm_qos_update_flags(struct device *dev, s32 m, bool set)
e39473d0 Rafael J. Wysocki 2012-10-24  234  			{ return 0; }
2d984ad1 Rafael J. Wysocki 2014-02-11  235  static inline s32 dev_pm_qos_get_user_latency_tolerance(struct device *dev)
2d984ad1 Rafael J. Wysocki 2014-02-11  236  			{ return PM_QOS_LATENCY_TOLERANCE_NO_CONSTRAINT; }
2d984ad1 Rafael J. Wysocki 2014-02-11  237  static inline int dev_pm_qos_update_user_latency_tolerance(struct device *dev, s32 val)
2d984ad1 Rafael J. Wysocki 2014-02-11  238  			{ return 0; }
13b2c4a0 Mika Westerberg   2015-07-27  239  static inline int dev_pm_qos_expose_latency_tolerance(struct device *dev)
13b2c4a0 Mika Westerberg   2015-07-27  240  			{ return 0; }
13b2c4a0 Mika Westerberg   2015-07-27  241  static inline void dev_pm_qos_hide_latency_tolerance(struct device *dev) {}
e39473d0 Rafael J. Wysocki 2012-10-24  242  

:::::: The code at line 209 was first introduced by commit
:::::: 91ff4cb803df6de9114351b9f2f0f39f397ee03e PM QoS: Implement per-device PM QoS constraints

:::::: TO: Jean Pihet <j-pihet@ti.com>
:::::: CC: Rafael J. Wysocki <rjw@sisk.pl>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

                 reply	other threads:[~2019-07-04  0:52 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=201907040847.xfwo8JCv%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devel@acpica.org \
    --cc=kbuild-all@01.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mka@chromium.org \
    --cc=rjw@rjwysocki.net \
    --cc=ulf.hansson@linaro.org \
    --cc=viresh.kumar@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
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