arch/c6x/platforms/plldata.c:279:33: error: implicit declaration of function 'get_coreid'; did you mean 'get_order'?
From: Fengguang Wu
Date: Mon Dec 25 2017 - 21:14:37 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 328b4ed93b69a6f2083d52f31a240a09e5de386a
commit: 71af2ed5eeea639339e3a1497a0196bab7de4b57 kasan, sched/headers: Remove <linux/sched.h> from <linux/kasan.h>
date: 9 months ago
config: c6x-evmc6472_defconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 71af2ed5eeea639339e3a1497a0196bab7de4b57
# save the attached .config to linux build tree
make.cross ARCH=c6x
All errors (new ones prefixed by >>):
arch/c6x/platforms/plldata.c: In function 'c6472_setup_clocks':
>> arch/c6x/platforms/plldata.c:279:33: error: implicit declaration of function 'get_coreid'; did you mean 'get_order'? [-Werror=implicit-function-declaration]
c6x_core_clk.parent = &sysclks[get_coreid() + 1];
^~~~~~~~~~
get_order
cc1: some warnings being treated as errors
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=71af2ed5eeea639339e3a1497a0196bab7de4b57
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 71af2ed5eeea639339e3a1497a0196bab7de4b57
vim +279 arch/c6x/platforms/plldata.c
81ec9889 Mark Salter 2011-10-04 257
81ec9889 Mark Salter 2011-10-04 258 static void __init c6472_setup_clocks(struct device_node *node)
81ec9889 Mark Salter 2011-10-04 259 {
81ec9889 Mark Salter 2011-10-04 260 struct pll_data *pll = &c6x_soc_pll1;
81ec9889 Mark Salter 2011-10-04 261 struct clk *sysclks = pll->sysclks;
81ec9889 Mark Salter 2011-10-04 262 int i;
81ec9889 Mark Salter 2011-10-04 263
81ec9889 Mark Salter 2011-10-04 264 pll->flags = PLL_HAS_MUL;
81ec9889 Mark Salter 2011-10-04 265
81ec9889 Mark Salter 2011-10-04 266 for (i = 1; i <= 6; i++) {
81ec9889 Mark Salter 2011-10-04 267 sysclks[i].flags |= FIXED_DIV_PLL;
81ec9889 Mark Salter 2011-10-04 268 sysclks[i].div = 1;
81ec9889 Mark Salter 2011-10-04 269 }
81ec9889 Mark Salter 2011-10-04 270
81ec9889 Mark Salter 2011-10-04 271 sysclks[7].flags |= FIXED_DIV_PLL;
81ec9889 Mark Salter 2011-10-04 272 sysclks[7].div = 3;
81ec9889 Mark Salter 2011-10-04 273 sysclks[8].flags |= FIXED_DIV_PLL;
81ec9889 Mark Salter 2011-10-04 274 sysclks[8].div = 6;
81ec9889 Mark Salter 2011-10-04 275 sysclks[9].flags |= FIXED_DIV_PLL;
81ec9889 Mark Salter 2011-10-04 276 sysclks[9].div = 2;
81ec9889 Mark Salter 2011-10-04 277 sysclks[10].div = PLLDIV10;
81ec9889 Mark Salter 2011-10-04 278
81ec9889 Mark Salter 2011-10-04 @279 c6x_core_clk.parent = &sysclks[get_coreid() + 1];
81ec9889 Mark Salter 2011-10-04 280 c6x_i2c_clk.parent = &sysclks[8];
81ec9889 Mark Salter 2011-10-04 281 c6x_watchdog_clk.parent = &sysclks[8];
81ec9889 Mark Salter 2011-10-04 282 c6x_mdio_clk.parent = &sysclks[5];
81ec9889 Mark Salter 2011-10-04 283
81ec9889 Mark Salter 2011-10-04 284 c6x_clks_init(c6472_clks);
81ec9889 Mark Salter 2011-10-04 285 }
81ec9889 Mark Salter 2011-10-04 286 #endif /* CONFIG_SOC_TMS320C6472 */
81ec9889 Mark Salter 2011-10-04 287
81ec9889 Mark Salter 2011-10-04 288
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip