mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/base/power/opp/of.c:181:6: error: redefinition of 'dev_pm_opp_of_remove_table'
@ 2016-10-27 23:22 kbuild test robot
  2016-10-28  3:57 ` Viresh Kumar
  0 siblings, 1 reply; 5+ messages in thread
From: kbuild test robot @ 2016-10-27 23:22 UTC (permalink / raw)
  To: Viresh Kumar; +Cc: kbuild-all, linux-kernel, Rafael J. Wysocki

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e3300ffef0653774f1099cab153d25d24bd773ce
commit: f47b72a15a9679dd4dc1af681d4d2f1ca2815552 PM / OPP: Move CONFIG_OF dependent code in a separate file
date:   6 months ago
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
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 f47b72a15a9679dd4dc1af681d4d2f1ca2815552
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

>> drivers/base/power/opp/of.c:181:6: error: redefinition of 'dev_pm_opp_of_remove_table'
    void dev_pm_opp_of_remove_table(struct device *dev)
         ^
   In file included from drivers/base/power/opp/opp.h:21:0,
                    from drivers/base/power/opp/of.c:22:
   include/linux/pm_opp.h:217:20: note: previous definition of 'dev_pm_opp_of_remove_table' was here
    static inline void dev_pm_opp_of_remove_table(struct device *dev)
                       ^
>> drivers/base/power/opp/of.c:428:5: error: redefinition of 'dev_pm_opp_of_add_table'
    int dev_pm_opp_of_add_table(struct device *dev)
        ^
   In file included from drivers/base/power/opp/opp.h:21:0,
                    from drivers/base/power/opp/of.c:22:
   include/linux/pm_opp.h:212:19: note: previous definition of 'dev_pm_opp_of_add_table' was here
    static inline int dev_pm_opp_of_add_table(struct device *dev)
                      ^
>> drivers/base/power/opp/of.c:468:6: error: redefinition of 'dev_pm_opp_of_cpumask_remove_table'
    void dev_pm_opp_of_cpumask_remove_table(const struct cpumask *cpumask)
         ^
   In file included from drivers/base/power/opp/opp.h:21:0,
                    from drivers/base/power/opp/of.c:22:
   include/linux/pm_opp.h:226:20: note: previous definition of 'dev_pm_opp_of_cpumask_remove_table' was here
    static inline void dev_pm_opp_of_cpumask_remove_table(const struct cpumask *cpumask)
                       ^
>> drivers/base/power/opp/of.c:486:5: error: redefinition of 'dev_pm_opp_of_cpumask_add_table'
    int dev_pm_opp_of_cpumask_add_table(const struct cpumask *cpumask)
        ^
   In file included from drivers/base/power/opp/opp.h:21:0,
                    from drivers/base/power/opp/of.c:22:
   include/linux/pm_opp.h:221:19: note: previous definition of 'dev_pm_opp_of_cpumask_add_table' was here
    static inline int dev_pm_opp_of_cpumask_add_table(const struct cpumask *cpumask)
                      ^
>> drivers/base/power/opp/of.c:539:5: error: redefinition of 'dev_pm_opp_of_get_sharing_cpus'
    int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev,
        ^
   In file included from drivers/base/power/opp/opp.h:21:0,
                    from drivers/base/power/opp/of.c:22:
   include/linux/pm_opp.h:230:19: note: previous definition of 'dev_pm_opp_of_get_sharing_cpus' was here
    static inline int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask)
                      ^

vim +/dev_pm_opp_of_remove_table +181 drivers/base/power/opp/of.c

   175	 * Locking: The internal opp_table and opp structures are RCU protected.
   176	 * Hence this function indirectly uses RCU updater strategy with mutex locks
   177	 * to keep the integrity of the internal data structures. Callers should ensure
   178	 * that this function is *NOT* called under RCU protection or in contexts where
   179	 * mutex cannot be locked.
   180	 */
 > 181	void dev_pm_opp_of_remove_table(struct device *dev)
   182	{
   183		_dev_pm_opp_remove_table(dev, false);
   184	}

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

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

* Re: drivers/base/power/opp/of.c:181:6: error: redefinition of 'dev_pm_opp_of_remove_table'
  2016-10-27 23:22 drivers/base/power/opp/of.c:181:6: error: redefinition of 'dev_pm_opp_of_remove_table' kbuild test robot
@ 2016-10-28  3:57 ` Viresh Kumar
  2016-10-28  4:07   ` Fengguang Wu
  0 siblings, 1 reply; 5+ messages in thread
From: Viresh Kumar @ 2016-10-28  3:57 UTC (permalink / raw)
  To: kbuild test robot; +Cc: kbuild-all, linux-kernel, Rafael J. Wysocki

On 28-10-16, 07:22, kbuild test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   e3300ffef0653774f1099cab153d25d24bd773ce
> commit: f47b72a15a9679dd4dc1af681d4d2f1ca2815552 PM / OPP: Move CONFIG_OF dependent code in a separate file
> date:   6 months ago

Why are we picking it up now ?

-- 
viresh

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

* Re: drivers/base/power/opp/of.c:181:6: error: redefinition of 'dev_pm_opp_of_remove_table'
  2016-10-28  3:57 ` Viresh Kumar
@ 2016-10-28  4:07   ` Fengguang Wu
  2016-10-28  5:05     ` Viresh Kumar
  0 siblings, 1 reply; 5+ messages in thread
From: Fengguang Wu @ 2016-10-28  4:07 UTC (permalink / raw)
  To: Viresh Kumar; +Cc: kbuild-all, linux-kernel, Rafael J. Wysocki

On Fri, Oct 28, 2016 at 09:27:53AM +0530, Viresh Kumar wrote:
>On 28-10-16, 07:22, kbuild test robot wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head:   e3300ffef0653774f1099cab153d25d24bd773ce
>> commit: f47b72a15a9679dd4dc1af681d4d2f1ca2815552 PM / OPP: Move CONFIG_OF dependent code in a separate file
>> date:   6 months ago
>
>Why are we picking it up now ?

Sorry due to problems in the 0day infrastructure some few errors are
missed in May. Now we catch it when the commit goes mainline.

https://lists.01.org/pipermail/kbuild-all/

June 2016: 	... 	[ Gzip'd Text 853 KB ]
May 2016: 	... 	[ Gzip'd Text 294 KB ]
April 2016: 	... 	[ Gzip'd Text 599 KB ]

As you can see, the report volumes are noticeably lower in "May 2016".

Thanks,
Fengguang

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

* Re: drivers/base/power/opp/of.c:181:6: error: redefinition of 'dev_pm_opp_of_remove_table'
  2016-10-28  4:07   ` Fengguang Wu
@ 2016-10-28  5:05     ` Viresh Kumar
  0 siblings, 0 replies; 5+ messages in thread
From: Viresh Kumar @ 2016-10-28  5:05 UTC (permalink / raw)
  To: Fengguang Wu; +Cc: kbuild-all, linux-kernel, Rafael J. Wysocki

On 28-10-16, 12:07, Fengguang Wu wrote:
> On Fri, Oct 28, 2016 at 09:27:53AM +0530, Viresh Kumar wrote:
> >On 28-10-16, 07:22, kbuild test robot wrote:
> >>tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> >>head:   e3300ffef0653774f1099cab153d25d24bd773ce
> >>commit: f47b72a15a9679dd4dc1af681d4d2f1ca2815552 PM / OPP: Move CONFIG_OF dependent code in a separate file
> >>date:   6 months ago
> >
> >Why are we picking it up now ?
> 
> Sorry due to problems in the 0day infrastructure some few errors are
> missed in May. Now we catch it when the commit goes mainline.
> 
> https://lists.01.org/pipermail/kbuild-all/
> 
> June 2016: 	... 	[ Gzip'd Text 853 KB ]
> May 2016: 	... 	[ Gzip'd Text 294 KB ]
> April 2016: 	... 	[ Gzip'd Text 599 KB ]
> 
> As you can see, the report volumes are noticeably lower in "May 2016".

No issues :)

So I will just ignore this email now as things are probably stable
right now.

-- 
viresh

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

* drivers/base/power/opp/of.c:181:6: error: redefinition of 'dev_pm_opp_of_remove_table'
@ 2017-02-12 21:43 kbuild test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kbuild test robot @ 2017-02-12 21:43 UTC (permalink / raw)
  To: Viresh Kumar; +Cc: kbuild-all, linux-kernel, Rafael J. Wysocki

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

Hi Viresh,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7089db84e356562f8ba737c29e472cc42d530dbc
commit: f47b72a15a9679dd4dc1af681d4d2f1ca2815552 PM / OPP: Move CONFIG_OF dependent code in a separate file
date:   9 months ago
config: x86_64-randconfig-x008-201707 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout f47b72a15a9679dd4dc1af681d4d2f1ca2815552
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> drivers/base/power/opp/of.c:181:6: error: redefinition of 'dev_pm_opp_of_remove_table'
    void dev_pm_opp_of_remove_table(struct device *dev)
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/base/power/opp/opp.h:21:0,
                    from drivers/base/power/opp/of.c:22:
   include/linux/pm_opp.h:217:20: note: previous definition of 'dev_pm_opp_of_remove_table' was here
    static inline void dev_pm_opp_of_remove_table(struct device *dev)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/base/power/opp/of.c:428:5: error: redefinition of 'dev_pm_opp_of_add_table'
    int dev_pm_opp_of_add_table(struct device *dev)
        ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/base/power/opp/opp.h:21:0,
                    from drivers/base/power/opp/of.c:22:
   include/linux/pm_opp.h:212:19: note: previous definition of 'dev_pm_opp_of_add_table' was here
    static inline int dev_pm_opp_of_add_table(struct device *dev)
                      ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/base/power/opp/of.c:468:6: error: redefinition of 'dev_pm_opp_of_cpumask_remove_table'
    void dev_pm_opp_of_cpumask_remove_table(const struct cpumask *cpumask)
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/base/power/opp/opp.h:21:0,
                    from drivers/base/power/opp/of.c:22:
   include/linux/pm_opp.h:226:20: note: previous definition of 'dev_pm_opp_of_cpumask_remove_table' was here
    static inline void dev_pm_opp_of_cpumask_remove_table(const struct cpumask *cpumask)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/base/power/opp/of.c:486:5: error: redefinition of 'dev_pm_opp_of_cpumask_add_table'
    int dev_pm_opp_of_cpumask_add_table(const struct cpumask *cpumask)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/base/power/opp/opp.h:21:0,
                    from drivers/base/power/opp/of.c:22:
   include/linux/pm_opp.h:221:19: note: previous definition of 'dev_pm_opp_of_cpumask_add_table' was here
    static inline int dev_pm_opp_of_cpumask_add_table(const struct cpumask *cpumask)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/base/power/opp/of.c:539:5: error: redefinition of 'dev_pm_opp_of_get_sharing_cpus'
    int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/base/power/opp/opp.h:21:0,
                    from drivers/base/power/opp/of.c:22:
   include/linux/pm_opp.h:230:19: note: previous definition of 'dev_pm_opp_of_get_sharing_cpus' was here
    static inline int dev_pm_opp_of_get_sharing_cpus(struct device *cpu_dev, struct cpumask *cpumask)
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/dev_pm_opp_of_remove_table +181 drivers/base/power/opp/of.c

   175	 * Locking: The internal opp_table and opp structures are RCU protected.
   176	 * Hence this function indirectly uses RCU updater strategy with mutex locks
   177	 * to keep the integrity of the internal data structures. Callers should ensure
   178	 * that this function is *NOT* called under RCU protection or in contexts where
   179	 * mutex cannot be locked.
   180	 */
 > 181	void dev_pm_opp_of_remove_table(struct device *dev)
   182	{
   183		_dev_pm_opp_remove_table(dev, false);
   184	}

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

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

end of thread, other threads:[~2017-02-12 21:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-27 23:22 drivers/base/power/opp/of.c:181:6: error: redefinition of 'dev_pm_opp_of_remove_table' kbuild test robot
2016-10-28  3:57 ` Viresh Kumar
2016-10-28  4:07   ` Fengguang Wu
2016-10-28  5:05     ` Viresh Kumar
2017-02-12 21:43 kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®