Re: [PATCH RESEND v8 4/4] clk: meson: add sub MMC clock controller driver

From: kbuild test robot
Date: Mon Dec 31 2018 - 15:14:14 EST


Hi Yixun,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on clk/clk-next]
[also build test ERROR on next-20181224]
[cannot apply to v4.20]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Jianxin-Pan/clk-meson-add-a-sub-EMMC-clock-controller-support/20181222-060947
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: i386-randconfig-s0-12301806 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

drivers/clk/meson/mmc-clkc.o: In function `mmc_clkc_register_mux':
>> drivers/clk/meson/mmc-clkc.c:182: undefined reference to `clk_regmap_mux_ops'

vim +182 drivers/clk/meson/mmc-clkc.c

158
159 static struct clk_regmap *mmc_clkc_register_mux(struct device *dev,
160 struct regmap *map)
161 {
162 const char *parent_names[MUX_CLK_NUM_PARENTS];
163 struct clk_init_data init;
164 struct clk_regmap *mux;
165 struct clk *clk;
166 int i;
167
168 for (i = 0; i < MUX_CLK_NUM_PARENTS; i++) {
169 char name[8];
170
171 snprintf(name, sizeof(name), "clkin%d", i);
172 clk = devm_clk_get(dev, name);
173 if (IS_ERR(clk)) {
174 if (clk != ERR_PTR(-EPROBE_DEFER))
175 dev_err(dev, "Missing clock %s\n", name);
176 return ERR_CAST(clk);
177 }
178
179 parent_names[i] = __clk_get_name(clk);
180 }
181
> 182 init.ops = &clk_regmap_mux_ops;
183 init.flags = CLK_SET_RATE_PARENT;
184 init.parent_names = parent_names;
185 init.num_parents = MUX_CLK_NUM_PARENTS;
186
187 mux = mmc_clkc_register_clk(dev, map, &init, "mux", &mmc_clkc_mux_data);
188 if (IS_ERR(mux))
189 dev_err(dev, "Mux clock registration failed\n");
190
191 return mux;
192 }
193

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

Attachment: .config.gz
Description: application/gzip