Re: [PATCH v2] clk: add devm_of_clk_get() and devm_of_clk_get_by_name() functions
From: kbuild test robot
Date: Wed Sep 30 2015 - 05:14:44 EST
Hi Paul,
[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]
config: arm-sa1100 (attached as .config)
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 4b38631724b90dc5a717a4467cbf9377e3bf9af2
# save the attached .config to linux build tree
make.cross ARCH=arm
All error/warnings (new ones prefixed by >>):
>> drivers/clk/clk-devres.c:39:13: error: redefinition of 'devm_of_clk_get'
struct clk *devm_of_clk_get(struct device *dev, struct device_node *np,
^
In file included from drivers/clk/clk-devres.c:7:0:
include/linux/clk.h:539:27: note: previous definition of 'devm_of_clk_get' was here
static inline struct clk *devm_of_clk_get(struct device *dev,
^
>> drivers/clk/clk-devres.c:60:13: error: redefinition of 'devm_of_clk_get_by_name'
struct clk *devm_of_clk_get_by_name(struct device *dev, struct device_node *np,
^
In file included from drivers/clk/clk-devres.c:7:0:
include/linux/clk.h:545:27: note: previous definition of 'devm_of_clk_get_by_name' was here
static inline struct clk *devm_of_clk_get_by_name(struct device *dev,
^
vim +/devm_of_clk_get +39 drivers/clk/clk-devres.c
33 return clk;
34 }
35 EXPORT_SYMBOL(devm_clk_get);
36
37 #ifdef CONFIG_OF
38
> 39 struct clk *devm_of_clk_get(struct device *dev, struct device_node *np,
40 int index)
41 {
42 struct clk **ptr, *clk;
43
44 ptr = devres_alloc(devm_clk_release, sizeof(*ptr), GFP_KERNEL);
45 if (!ptr)
46 return ERR_PTR(-ENOMEM);
47
48 clk = of_clk_get(np, index);
49 if (!IS_ERR(clk)) {
50 *ptr = clk;
51 devres_add(dev, ptr);
52 } else {
53 devres_free(ptr);
54 }
55
56 return clk;
57 }
58 EXPORT_SYMBOL(devm_of_clk_get);
59
> 60 struct clk *devm_of_clk_get_by_name(struct device *dev, struct device_node *np,
61 const char *name)
62 {
63 struct clk **ptr, *clk;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data