lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20171226021424.43plklia7solbj6n@wfg-t540p.sh.intel.com>
Date:   Tue, 26 Dec 2017 10:14:24 +0800
From:   Fengguang Wu <fengguang.wu@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        linux-c6x-dev@...ux-c6x.org
Subject: arch/c6x/platforms/plldata.c:279:33: error: implicit declaration of
 function 'get_coreid'; did you mean 'get_order'?

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

Download attachment ".config.gz" of type "application/gzip" (5342 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ