linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [vireshk:opp/genpd-performance-state 14/18] include/linux/pm_qos.h:199:19: warning: 'dev_pm_qos_add_notifier' declared 'static' but never defined
@ 2017-01-06 11:32 kbuild test robot
  2017-01-09  3:24 ` Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2017-01-06 11:32 UTC (permalink / raw)
  To: Viresh Kumar; +Cc: kbuild-all, linux-pm

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

tree:   https://git.linaro.org/people/vireshk/linux opp/genpd-performance-state
head:   e327d4cbb8b86e33f3e777bbbd8a9a8326e5f6d5
commit: efd46e263c100a5051c4b9d15f523ce08f76934a [14/18] PM / QOS: Pass request type to dev_pm_qos_{add|remove}_notifier()
config: openrisc-or1ksim_defconfig (attached as .config)
compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout efd46e263c100a5051c4b9d15f523ce08f76934a
        # save the attached .config to linux build tree
        make.cross ARCH=openrisc 

All warnings (new ones prefixed by >>):

   In file included from kernel/power/qos.c:32:0:
   include/linux/pm_qos.h:202:4: error: expected identifier or '(' before '{' token
>> include/linux/pm_qos.h:199:19: warning: 'dev_pm_qos_add_notifier' declared 'static' but never defined

vim +199 include/linux/pm_qos.h

91ff4cb8 Jean Pihet   2011-08-25  193  			{ return 0; }
91ff4cb8 Jean Pihet   2011-08-25  194  static inline int dev_pm_qos_update_request(struct dev_pm_qos_request *req,
91ff4cb8 Jean Pihet   2011-08-25  195  					    s32 new_value)
91ff4cb8 Jean Pihet   2011-08-25  196  			{ return 0; }
91ff4cb8 Jean Pihet   2011-08-25  197  static inline int dev_pm_qos_remove_request(struct dev_pm_qos_request *req)
91ff4cb8 Jean Pihet   2011-08-25  198  			{ return 0; }
91ff4cb8 Jean Pihet   2011-08-25 @199  static inline int dev_pm_qos_add_notifier(struct device *dev,
efd46e26 Viresh Kumar 2016-11-28  200  					  struct notifier_block *notifier,
efd46e26 Viresh Kumar 2016-11-28  201  					  enum dev_pm_qos_req_type type);
91ff4cb8 Jean Pihet   2011-08-25 @202  			{ return 0; }
91ff4cb8 Jean Pihet   2011-08-25  203  static inline int dev_pm_qos_remove_notifier(struct device *dev,
efd46e26 Viresh Kumar 2016-11-28  204  					     struct notifier_block *notifier,
efd46e26 Viresh Kumar 2016-11-28  205  					     enum dev_pm_qos_req_type type)

:::::: The code at line 199 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: 7356 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [vireshk:opp/genpd-performance-state 14/18] include/linux/pm_qos.h:199:19: warning: 'dev_pm_qos_add_notifier' declared 'static' but never defined
  2017-01-06 11:32 [vireshk:opp/genpd-performance-state 14/18] include/linux/pm_qos.h:199:19: warning: 'dev_pm_qos_add_notifier' declared 'static' but never defined kbuild test robot
@ 2017-01-09  3:24 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2017-01-09  3:24 UTC (permalink / raw)
  To: kbuild test robot; +Cc: kbuild-all, linux-pm

On 06-01-17, 19:32, kbuild test robot wrote:
> tree:   https://git.linaro.org/people/vireshk/linux opp/genpd-performance-state
> head:   e327d4cbb8b86e33f3e777bbbd8a9a8326e5f6d5
> commit: efd46e263c100a5051c4b9d15f523ce08f76934a [14/18] PM / QOS: Pass request type to dev_pm_qos_{add|remove}_notifier()
> config: openrisc-or1ksim_defconfig (attached as .config)
> compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
> reproduce:
>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout efd46e263c100a5051c4b9d15f523ce08f76934a
>         # save the attached .config to linux build tree
>         make.cross ARCH=openrisc 
> 
> All warnings (new ones prefixed by >>):
> 
>    In file included from kernel/power/qos.c:32:0:
>    include/linux/pm_qos.h:202:4: error: expected identifier or '(' before '{' token
> >> include/linux/pm_qos.h:199:19: warning: 'dev_pm_qos_add_notifier' declared 'static' but never defined

Fixed thanks.

-- 
viresh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-09  3:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-06 11:32 [vireshk:opp/genpd-performance-state 14/18] include/linux/pm_qos.h:199:19: warning: 'dev_pm_qos_add_notifier' declared 'static' but never defined kbuild test robot
2017-01-09  3:24 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).