Hi "Andrew-sh.Cheng",
Thank you for the patch! Yet something to improve:
[auto build test ERROR on pm/linux-next]
[also build test ERROR on robh/for-next linus/master v5.7-rc6 next-20200519]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Andrew-sh-Cheng/Add-cpufreq-and-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
ld: drivers/opp/cpu.o: in function `_of_lazy_link_required_tables':
> drivers/opp/opp.h:232: multiple definition of
`_of_lazy_link_required_tables'; drivers/opp/core.o:drivers/opp/opp.h:232: first
defined here
ld: drivers/opp/debugfs.o: in function
`_of_lazy_link_required_tables':
> drivers/opp/opp.h:232: multiple definition of
`_of_lazy_link_required_tables'; drivers/opp/core.o:drivers/opp/opp.h:232: first
defined here
--
In file included from drivers/opp/core.c:22:0:
> drivers/opp/opp.h:231:6: warning: no previous prototype for
'_of_lazy_link_required_tables' [-Wmissing-prototypes]
bool
_of_lazy_link_required_tables(struct opp_table *src)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +232 drivers/opp/opp.h
219
220 #ifdef CONFIG_OF
221 void _of_init_opp_table(struct opp_table *opp_table, struct device *dev, int
index);
222 void _of_clear_opp_table(struct opp_table *opp_table);
223 struct opp_table *_managed_opp(struct device *dev, int index);
224 bool _of_lazy_link_required_tables(struct opp_table *src);
225 void _of_opp_free_required_opps(struct opp_table *opp_table,
226 struct dev_pm_opp *opp);
227 #else
228 static inline void _of_init_opp_table(struct opp_table *opp_table, struct device
*dev, int index) {}
229 static inline void _of_clear_opp_table(struct opp_table *opp_table) {}
230 static inline struct opp_table *_managed_opp(struct device *dev, int index) {
return NULL; }
231 bool _of_lazy_link_required_tables(struct opp_table *src)
232 {
233 return true;
234 }
235 static inline void _of_opp_free_required_opps(struct opp_table *opp_table,
236 struct dev_pm_opp *opp) {}
237 #endif
238
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org