[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201610231156.7kEqXnyE%fengguang.wu@intel.com>
Date: Sun, 23 Oct 2016 11:57:01 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Paul Burton <paul.burton@...tec.com>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
Ralf Baechle <ralf@...ux-mips.org>
Subject: arch/mips/kernel/mips-cpc.c:47: undefined reference to
`mips_cpc_default_phys_base'
Hi Paul,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0c2b6dc4fd4fa13796b319aae969a009f03222c6
commit: eed0eabd12ef061821cbfa20d903476e07645320 MIPS: generic: Introduce generic DT-based board support
date: 2 weeks ago
config: mips-generic_defconfig (attached as .config)
compiler: mipsel-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
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 eed0eabd12ef061821cbfa20d903476e07645320
# save the attached .config to linux build tree
make.cross ARCH=mips
All errors (new ones prefixed by >>):
arch/mips/built-in.o: In function `mips_cpc_phys_base':
>> arch/mips/kernel/mips-cpc.c:47: undefined reference to `mips_cpc_default_phys_base'
vim +47 arch/mips/kernel/mips-cpc.c
8dedde6b Bjorn Helgaas 2015-07-12 31 static phys_addr_t mips_cpc_phys_base(void)
9c38cf44 Paul Burton 2014-01-15 32 {
391057d9 Markos Chandras 2015-07-09 33 unsigned long cpc_base;
9c38cf44 Paul Burton 2014-01-15 34
9c38cf44 Paul Burton 2014-01-15 35 if (!mips_cm_present())
9c38cf44 Paul Burton 2014-01-15 36 return 0;
9c38cf44 Paul Burton 2014-01-15 37
9c38cf44 Paul Burton 2014-01-15 38 if (!(read_gcr_cpc_status() & CM_GCR_CPC_STATUS_EX_MSK))
9c38cf44 Paul Burton 2014-01-15 39 return 0;
9c38cf44 Paul Burton 2014-01-15 40
9c38cf44 Paul Burton 2014-01-15 41 /* If the CPC is already enabled, leave it so */
9c38cf44 Paul Burton 2014-01-15 42 cpc_base = read_gcr_cpc_base();
9c38cf44 Paul Burton 2014-01-15 43 if (cpc_base & CM_GCR_CPC_BASE_CPCEN_MSK)
9c38cf44 Paul Burton 2014-01-15 44 return cpc_base & CM_GCR_CPC_BASE_CPCBASE_MSK;
9c38cf44 Paul Burton 2014-01-15 45
9c38cf44 Paul Burton 2014-01-15 46 /* Otherwise, give it the default address & enable it */
9c38cf44 Paul Burton 2014-01-15 @47 cpc_base = mips_cpc_default_phys_base();
9c38cf44 Paul Burton 2014-01-15 48 write_gcr_cpc_base(cpc_base | CM_GCR_CPC_BASE_CPCEN_MSK);
9c38cf44 Paul Burton 2014-01-15 49 return cpc_base;
9c38cf44 Paul Burton 2014-01-15 50 }
9c38cf44 Paul Burton 2014-01-15 51
9c38cf44 Paul Burton 2014-01-15 52 int mips_cpc_probe(void)
9c38cf44 Paul Burton 2014-01-15 53 {
15d45cce Ralf Baechle 2014-11-22 54 phys_addr_t addr;
6b89d22e Matt Redfearn 2016-09-07 55 unsigned int cpu;
:::::: The code at line 47 was first introduced by commit
:::::: 9c38cf44712af95a5ec3937d63faaea9b43eab9a MIPS: Add CPC probe, access functions
:::::: TO: Paul Burton <paul.burton@...tec.com>
:::::: CC: Ralf Baechle <ralf@...ux-mips.org>
---
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" (10550 bytes)
Powered by blists - more mailing lists