arch/arm/mach-ixp4xx/common.c:341:7: error: implicit declaration of function 'is_pci_memory'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: de5540965853e514a85d3b775e9049deb85a2ff3
commit: d5d9f7ac58ea1041375a028f143ca5784693ea86 ARM/ixp4xx: Make NEED_MACH_IO_H optional
date: 4 weeks ago
config: arm-randconfig-r016-20210711 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d5d9f7ac58ea1041375a028f143ca5784693ea86
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/arm/mach-ixp4xx/common.c:341:7: error: implicit declaration of function 'is_pci_memory' [-Werror,-Wimplicit-function-declaration]
if (!is_pci_memory(addr))
^
arch/arm/mach-ixp4xx/common.c:349:7: error: implicit declaration of function 'is_pci_memory' [-Werror,-Wimplicit-function-declaration]
if (!is_pci_memory((__force u32)addr))
^
2 errors generated.
--
>> arch/arm/mach-ixp4xx/vulcan-setup.c:67:13: error: use of undeclared identifier 'IXP4XX_UART1_BASE_PHYS'
.start = IXP4XX_UART1_BASE_PHYS,
^
arch/arm/mach-ixp4xx/vulcan-setup.c:68:11: error: use of undeclared identifier 'IXP4XX_UART1_BASE_PHYS'
.end = IXP4XX_UART1_BASE_PHYS + 0x0fff,
^
>> arch/arm/mach-ixp4xx/vulcan-setup.c:72:13: error: use of undeclared identifier 'IXP4XX_UART2_BASE_PHYS'
.start = IXP4XX_UART2_BASE_PHYS,
^
arch/arm/mach-ixp4xx/vulcan-setup.c:73:11: error: use of undeclared identifier 'IXP4XX_UART2_BASE_PHYS'
.end = IXP4XX_UART2_BASE_PHYS + 0x0fff,
^
arch/arm/mach-ixp4xx/vulcan-setup.c:83:14: error: use of undeclared identifier 'IXP4XX_UART1_BASE_PHYS'
.mapbase = IXP4XX_UART1_BASE_PHYS,
^
>> arch/arm/mach-ixp4xx/vulcan-setup.c:84:22: error: use of undeclared identifier 'IXP4XX_UART1_BASE_VIRT'
.membase = (char *)IXP4XX_UART1_BASE_VIRT + REG_OFFSET,
^
>> arch/arm/mach-ixp4xx/vulcan-setup.c:84:47: error: use of undeclared identifier 'REG_OFFSET'
.membase = (char *)IXP4XX_UART1_BASE_VIRT + REG_OFFSET,
^
>> arch/arm/mach-ixp4xx/vulcan-setup.c:89:14: error: use of undeclared identifier 'IXP4XX_UART_XTAL'
.uartclk = IXP4XX_UART_XTAL,
^
arch/arm/mach-ixp4xx/vulcan-setup.c:92:14: error: use of undeclared identifier 'IXP4XX_UART2_BASE_PHYS'
.mapbase = IXP4XX_UART2_BASE_PHYS,
^
>> arch/arm/mach-ixp4xx/vulcan-setup.c:93:22: error: use of undeclared identifier 'IXP4XX_UART2_BASE_VIRT'
.membase = (char *)IXP4XX_UART2_BASE_VIRT + REG_OFFSET,
^
arch/arm/mach-ixp4xx/vulcan-setup.c:93:47: error: use of undeclared identifier 'REG_OFFSET'
.membase = (char *)IXP4XX_UART2_BASE_VIRT + REG_OFFSET,
^
arch/arm/mach-ixp4xx/vulcan-setup.c:98:14: error: use of undeclared identifier 'IXP4XX_UART_XTAL'
.uartclk = IXP4XX_UART_XTAL,
^
>> arch/arm/mach-ixp4xx/vulcan-setup.c:124:20: error: invalid application of 'sizeof' to an incomplete type 'struct resource []'
.num_resources = ARRAY_SIZE(vulcan_uart_resources),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:42:32: note: expanded from macro 'ARRAY_SIZE'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~
>> arch/arm/mach-ixp4xx/vulcan-setup.c:129:13: error: use of undeclared identifier 'IXP4XX_EthB_BASE_PHYS'
.start = IXP4XX_EthB_BASE_PHYS,
^
arch/arm/mach-ixp4xx/vulcan-setup.c:130:11: error: use of undeclared identifier 'IXP4XX_EthB_BASE_PHYS'
.end = IXP4XX_EthB_BASE_PHYS + 0x0fff,
^
>> arch/arm/mach-ixp4xx/vulcan-setup.c:137:13: error: use of undeclared identifier 'IXP4XX_EthC_BASE_PHYS'
.start = IXP4XX_EthC_BASE_PHYS,
^
arch/arm/mach-ixp4xx/vulcan-setup.c:138:11: error: use of undeclared identifier 'IXP4XX_EthC_BASE_PHYS'
.end = IXP4XX_EthC_BASE_PHYS + 0x0fff,
^
>> arch/arm/mach-ixp4xx/vulcan-setup.c:143:44: error: array has incomplete element type 'struct eth_plat_info'
static struct eth_plat_info vulcan_plat_eth[] = {
^
arch/arm/mach-ixp4xx/vulcan-setup.c:143:15: note: forward declaration of 'struct eth_plat_info'
static struct eth_plat_info vulcan_plat_eth[] = {
^
>> arch/arm/mach-ixp4xx/vulcan-setup.c:159:11: error: use of undeclared identifier 'IXP4XX_ETH_NPEB'
.id = IXP4XX_ETH_NPEB,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
--
>> arch/arm/mach-ixp4xx/nas100d-pci.c:39:2: error: implicit declaration of function 'ixp4xx_pci_preinit' [-Werror,-Wimplicit-function-declaration]
ixp4xx_pci_preinit();
^
arch/arm/mach-ixp4xx/nas100d-pci.c:39:2: note: did you mean 'iop3xx_pci_preinit'?
arch/arm/include/asm/mach/pci.h:78:13: note: 'iop3xx_pci_preinit' declared here
extern void iop3xx_pci_preinit(void);
^
arch/arm/mach-ixp4xx/nas100d-pci.c:32:13: warning: no previous prototype for function 'nas100d_pci_preinit' [-Wmissing-prototypes]
void __init nas100d_pci_preinit(void)
^
arch/arm/mach-ixp4xx/nas100d-pci.c:32:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init nas100d_pci_preinit(void)
^
static
>> arch/arm/mach-ixp4xx/nas100d-pci.c:59:11: error: use of undeclared identifier 'ixp4xx_ops'; did you mean 'iop3xx_ops'?
.ops = &ixp4xx_ops,
^~~~~~~~~~
iop3xx_ops
arch/arm/include/asm/mach/pci.h:76:23: note: 'iop3xx_ops' declared here
extern struct pci_ops iop3xx_ops;
^
>> arch/arm/mach-ixp4xx/nas100d-pci.c:61:12: error: use of undeclared identifier 'ixp4xx_setup'
.setup = ixp4xx_setup,
^
arch/arm/mach-ixp4xx/nas100d-pci.c:65:12: warning: no previous prototype for function 'nas100d_pci_init' [-Wmissing-prototypes]
int __init nas100d_pci_init(void)
^
arch/arm/mach-ixp4xx/nas100d-pci.c:65:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __init nas100d_pci_init(void)
^
static
2 warnings and 3 errors generated.
--
>> arch/arm/mach-ixp4xx/vulcan-pci.c:41:2: error: implicit declaration of function 'ixp4xx_pci_preinit' [-Werror,-Wimplicit-function-declaration]
ixp4xx_pci_preinit();
^
arch/arm/mach-ixp4xx/vulcan-pci.c:41:2: note: did you mean 'iop3xx_pci_preinit'?
arch/arm/include/asm/mach/pci.h:78:13: note: 'iop3xx_pci_preinit' declared here
extern void iop3xx_pci_preinit(void);
^
arch/arm/mach-ixp4xx/vulcan-pci.c:26:13: warning: no previous prototype for function 'vulcan_pci_preinit' [-Wmissing-prototypes]
void __init vulcan_pci_preinit(void)
^
arch/arm/mach-ixp4xx/vulcan-pci.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init vulcan_pci_preinit(void)
^
static
>> arch/arm/mach-ixp4xx/vulcan-pci.c:57:11: error: use of undeclared identifier 'ixp4xx_ops'; did you mean 'iop3xx_ops'?
.ops = &ixp4xx_ops,
^~~~~~~~~~
iop3xx_ops
arch/arm/include/asm/mach/pci.h:76:23: note: 'iop3xx_ops' declared here
extern struct pci_ops iop3xx_ops;
^
>> arch/arm/mach-ixp4xx/vulcan-pci.c:59:12: error: use of undeclared identifier 'ixp4xx_setup'
.setup = ixp4xx_setup,
^
arch/arm/mach-ixp4xx/vulcan-pci.c:63:12: warning: no previous prototype for function 'vulcan_pci_init' [-Wmissing-prototypes]
int __init vulcan_pci_init(void)
^
arch/arm/mach-ixp4xx/vulcan-pci.c:63:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __init vulcan_pci_init(void)
^
static
2 warnings and 3 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for QCOM_SCM
Depends on (ARM || ARM64) && HAVE_ARM_SMCCC
Selected by
- ARM_QCOM_SPM_CPUIDLE && CPU_IDLE && (ARM || ARM64) && (ARCH_QCOM || COMPILE_TEST && !ARM64 && MMU
vim +/is_pci_memory +341 arch/arm/mach-ixp4xx/common.c
00e1b3a3d196ae Krzysztof Halasa 2014-03-23 329
f449588c65e236 Rob Herring 2012-03-06 330 #ifdef CONFIG_IXP4XX_INDIRECT_PCI
f449588c65e236 Rob Herring 2012-03-06 331 /*
f449588c65e236 Rob Herring 2012-03-06 332 * In the case of using indirect PCI, we simply return the actual PCI
f449588c65e236 Rob Herring 2012-03-06 333 * address and our read/write implementation use that to drive the
f449588c65e236 Rob Herring 2012-03-06 334 * access registers. If something outside of PCI is ioremap'd, we
f449588c65e236 Rob Herring 2012-03-06 335 * fallback to the default.
f449588c65e236 Rob Herring 2012-03-06 336 */
f449588c65e236 Rob Herring 2012-03-06 337
9b97173e785a54 Laura Abbott 2013-05-16 338 static void __iomem *ixp4xx_ioremap_caller(phys_addr_t addr, size_t size,
f449588c65e236 Rob Herring 2012-03-06 339 unsigned int mtype, void *caller)
f449588c65e236 Rob Herring 2012-03-06 340 {
f449588c65e236 Rob Herring 2012-03-06 @341 if (!is_pci_memory(addr))
f449588c65e236 Rob Herring 2012-03-06 342 return __arm_ioremap_caller(addr, size, mtype, caller);
f449588c65e236 Rob Herring 2012-03-06 343
f449588c65e236 Rob Herring 2012-03-06 344 return (void __iomem *)addr;
f449588c65e236 Rob Herring 2012-03-06 345 }
f449588c65e236 Rob Herring 2012-03-06 346
:::::: The code at line 341 was first introduced by commit
:::::: f449588c65e23637aef59cae2ea7b6b2b1b767ec ARM: ixp4xx: use runtime ioremap hook
:::::: TO: Rob Herring <rob.herring(a)calxeda.com>
:::::: CC: Rob Herring <rob.herring(a)calxeda.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[jimc:dd-diet-7a 36/37] lib/dynamic_debug.c:1485:24: sparse: sparse: non size-preserving pointer to integer cast
by kernel test robot
tree: https://github.com/jimc/linux.git dd-diet-7a
head: f03372b06242fed45a298d29d372b9af92c795a2
commit: 5729928be52f1ce26a82e6263185f7f2f891d68e [36/37] dyndbg: add print-once and print-ratelimited features. RFC.
config: i386-randconfig-s001-20210711 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/jimc/linux/commit/5729928be52f1ce26a82e6263185f7f2f891...
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-diet-7a
git checkout 5729928be52f1ce26a82e6263185f7f2f891d68e
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
lib/dynamic_debug.c: note: in included file (through include/linux/printk.h, include/linux/kernel.h):
include/linux/dynamic_debug.h:336:1: sparse: sparse: symbol '_LINKONCE_dyndbg_header' was not declared. Should it be static?
include/linux/dynamic_debug.h:336:1: sparse: sparse: symbol '_LINKONCE_dyndbg_site_header' was not declared. Should it be static?
>> lib/dynamic_debug.c:1485:24: sparse: sparse: non size-preserving pointer to integer cast
vim +1485 lib/dynamic_debug.c
1478
1479 /*
1480 * called when enabled callsite has _DPRINTK_FLAGS_RATELIMITED flag
1481 * set (echo +pr >control), it hashes on &table-header+index
1482 */
1483 static struct dd_ratelimit *dd_rl_fetch(struct _ddebug *desc)
1484 {
> 1485 u64 key = (u64)desc;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
vmlinux.o: warning: objtool: svm_vcpu_enter_exit()+0xe: call to to_svm() leaves .noinstr.text section
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Paolo Bonzini <pbonzini(a)redhat.com>
CC: Sean Christopherson <seanjc(a)google.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1e16624d7b4376797ede36e3c955375cf0f23298
commit: 63129754178c5514f04bf6bdb891e33dfe58e58d KVM: SVM: Pass struct kvm_vcpu to exit handlers (and many, many other places)
date: 4 months ago
config: x86_64-buildonly-randconfig-r006-20210711 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 63129754178c5514f04bf6bdb891e33dfe58e58d
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
vmlinux.o: warning: objtool: vmx_update_host_rsp()+0x32: call to __kcsan_check_access() leaves .noinstr.text section
vmlinux.o: warning: objtool: vmx_vcpu_enter_exit()+0x7c: call to __kcsan_check_access() leaves .noinstr.text section
vmlinux.o: warning: objtool: vmx_l1d_flush()+0xf: call to static_key_count() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: svm_vcpu_enter_exit()+0xe: call to to_svm() leaves .noinstr.text section
vmlinux.o: warning: objtool: __svm_vcpu_run()+0xe4: BP used as a scratch register
vmlinux.o: warning: objtool: __svm_sev_es_vcpu_run()+0x2a: BP used as a scratch register
vmlinux.o: warning: objtool: fixup_bad_iret()+0x26: call to memset() leaves .noinstr.text section
vmlinux.o: warning: objtool: safe_stack_exc_vmm_communication()+0x30: call to memset() leaves .noinstr.text section
vmlinux.o: warning: objtool: rcu_nmi_enter()+0xd1: call to __kcsan_check_access() leaves .noinstr.text section
vmlinux.o: warning: objtool: enter_from_user_mode()+0x2b: call to __kcsan_check_access() leaves .noinstr.text section
vmlinux.o: warning: objtool: syscall_enter_from_user_mode()+0x34: call to __kcsan_check_access() leaves .noinstr.text section
vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare()+0x2b: call to __kcsan_check_access() leaves .noinstr.text section
vmlinux.o: warning: objtool: exit_to_user_mode()+0x29: call to __kcsan_check_access() leaves .noinstr.text section
vmlinux.o: warning: objtool: syscall_exit_to_user_mode()+0xdc: call to __kcsan_check_access() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_enter_from_user_mode()+0x2b: call to __kcsan_check_access() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_exit_to_user_mode()+0x30: call to __kcsan_check_access() leaves .noinstr.text section
vmlinux.o: warning: objtool: debug_locks_off()+0x1e: call to __kcsan_check_access() leaves .noinstr.text section
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH v3 1/5] platform/x86/intel: intel_pmc_core: Move intel_pmc_core* files to pmc subfolder
by kernel test robot
Hi Gayatri,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on 81361b837a3450f0a44255fddfd7a4c72502b667]
url: https://github.com/0day-ci/linux/commits/Gayatri-Kammela/Add-Alder-Lake-P...
base: 81361b837a3450f0a44255fddfd7a4c72502b667
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/034dc2f63a8d23b2704f3295d83b63c7f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Gayatri-Kammela/Add-Alder-Lake-PCH-S-support-to-PMC-core-driver/20210711-035203
git checkout 034dc2f63a8d23b2704f3295d83b63c7fc7057d9
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/platform/x86/intel/pmc/core.c:34:10: fatal error: intel_pmc_core.h: No such file or directory
34 | #include "intel_pmc_core.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PHY_SPARX5_SERDES
Depends on (ARCH_SPARX5 || COMPILE_TEST && OF && HAS_IOMEM
Selected by
- SPARX5_SWITCH && NETDEVICES && ETHERNET && NET_VENDOR_MICROCHIP && NET_SWITCHDEV && HAS_IOMEM
vim +34 drivers/platform/x86/intel/pmc/core.c
b740d2e9233cb3 drivers/platform/x86/intel_pmc_core.c Rajneesh Bhardwaj 2016-05-26 33
b740d2e9233cb3 drivers/platform/x86/intel_pmc_core.c Rajneesh Bhardwaj 2016-05-26 @34 #include "intel_pmc_core.h"
b740d2e9233cb3 drivers/platform/x86/intel_pmc_core.c Rajneesh Bhardwaj 2016-05-26 35
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[zen-kernel-zen-kernel:5.12/muqss 9/16] aarch64-linux-gnu-ld: kernel/sysctl.o:undefined reference to `hrtimer_granularity_us'
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.12/muqss
head: a80522ac87ce290e80c283fa17988a4a0e57fd04
commit: 17886fe82995e8dbfe595e1d5de8717f3ffc73ed [9/16] Make hrtimer granularity and minimum hrtimeout configurable in sysctl. Set default granularity to 100us and min timeout to 500us.
config: arm64-buildonly-randconfig-r004-20210711 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/zen-kernel/zen-kernel/commit/17886fe82995e8dbfe595e1d5...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.12/muqss
git checkout 17886fe82995e8dbfe595e1d5de8717f3ffc73ed
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
aarch64-linux-gnu-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-gnu-ld: Unexpected run-time procedure linkages detected!
>> aarch64-linux-gnu-ld: kernel/sysctl.o:(.data+0x508): undefined reference to `hrtimer_granularity_us'
aarch64-linux-gnu-ld: kernel/time/hrtimer.o: in function `schedule_usec_hrtimeout':
>> hrtimer.c:(.text+0x38ec): undefined reference to `hrtimer_granularity_us'
aarch64-linux-gnu-ld: kernel/time/hrtimer.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `hrtimer_granularity_us' which may bind externally can not be used when making a shared object; recompile with -fPIC
hrtimer.c:(.text+0x38ec): dangerous relocation: unsupported relocation
>> aarch64-linux-gnu-ld: hrtimer.c:(.text+0x38f0): undefined reference to `hrtimer_granularity_us'
aarch64-linux-gnu-ld: kernel/seccomp.o: in function `seccomp_run_filters':
seccomp.c:(.text+0x1e94): undefined reference to `__cant_migrate'
aarch64-linux-gnu-ld: kernel/bpf/bpf_iter.o: in function `bpf_iter_run_prog':
bpf_iter.c:(.text+0x1650): undefined reference to `__cant_migrate'
aarch64-linux-gnu-ld: kernel/bpf/devmap.o: in function `dev_map_run_prog':
devmap.c:(.text+0x8f8): undefined reference to `__cant_migrate'
aarch64-linux-gnu-ld: kernel/bpf/cpumap.o: in function `cpu_map_bpf_prog_run_xdp':
cpumap.c:(.text+0x2354): undefined reference to `__cant_migrate'
aarch64-linux-gnu-ld: kernel/events/core.o: in function `bpf_overflow_handler':
core.c:(.text+0x192f8): undefined reference to `__cant_migrate'
aarch64-linux-gnu-ld: net/core/flow_dissector.o:flow_dissector.c:(.text+0xa5c): more undefined references to `__cant_migrate' follow
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
drivers/staging/media/hantro/hantro_g2_hevc_dec.c:536:5: warning: stack frame size (1248) exceeds limit (1024) in function 'hantro_g2_hevc_dec_run'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1e16624d7b4376797ede36e3c955375cf0f23298
commit: cb5dd5a0fa518dff14ff2b90837c3c8f98f4dd5c media: hantro: Introduce G2/HEVC decoder
date: 5 weeks ago
config: powerpc64-randconfig-r033-20210711 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout cb5dd5a0fa518dff14ff2b90837c3c8f98f4dd5c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/staging/media/hantro/hantro_g2_hevc_dec.c:8:
In file included from drivers/staging/media/hantro/hantro_hw.h:12:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:40:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/staging/media/hantro/hantro_g2_hevc_dec.c:8:
In file included from drivers/staging/media/hantro/hantro_hw.h:12:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:42:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/staging/media/hantro/hantro_g2_hevc_dec.c:8:
In file included from drivers/staging/media/hantro/hantro_hw.h:12:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:44:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/staging/media/hantro/hantro_g2_hevc_dec.c:8:
In file included from drivers/staging/media/hantro/hantro_hw.h:12:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:46:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/staging/media/hantro/hantro_g2_hevc_dec.c:8:
In file included from drivers/staging/media/hantro/hantro_hw.h:12:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:48:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> drivers/staging/media/hantro/hantro_g2_hevc_dec.c:536:5: warning: stack frame size (1248) exceeds limit (1024) in function 'hantro_g2_hevc_dec_run' [-Wframe-larger-than]
int hantro_g2_hevc_dec_run(struct hantro_ctx *ctx)
^
8 warnings generated.
vim +/hantro_g2_hevc_dec_run +536 drivers/staging/media/hantro/hantro_g2_hevc_dec.c
535
> 536 int hantro_g2_hevc_dec_run(struct hantro_ctx *ctx)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [RFC PATCH v2 net-next 2/8] net: dsa: ocelot: felix: move MDIO access to a common location
by kernel test robot
Hi Colin,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Colin-Foster/Add-support-for-VSC...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 5e437416ff66981d8154687cfdf7de50b1d82bfc
config: microblaze-buildonly-randconfig-r006-20210711 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/68d3578b85be193a45003b797fef9a8ee...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Colin-Foster/Add-support-for-VSC7511-7514-chips-over-SPI/20210711-032838
git checkout 68d3578b85be193a45003b797fef9a8ee3d1832b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/dsa/ocelot/felix_mdio.c:100:5: warning: no previous prototype for 'felix_mdio_register' [-Wmissing-prototypes]
100 | int felix_mdio_register(struct ocelot *ocelot)
| ^~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/ocelot/felix_mdio.c:116:5: warning: no previous prototype for 'felix_mdio_bus_alloc' [-Wmissing-prototypes]
116 | int felix_mdio_bus_alloc(struct ocelot *ocelot)
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/ocelot/felix_mdio.c:138:6: warning: no previous prototype for 'felix_mdio_bus_free' [-Wmissing-prototypes]
138 | void felix_mdio_bus_free(struct ocelot *ocelot)
| ^~~~~~~~~~~~~~~~~~~
vim +/felix_mdio_register +100 drivers/net/dsa/ocelot/felix_mdio.c
99
> 100 int felix_mdio_register(struct ocelot *ocelot)
101 {
102 struct felix *felix = ocelot_to_felix(ocelot);
103 struct device *dev = ocelot->dev;
104 int rc;
105
106 /* Needed in order to initialize the bus mutex lock */
107 rc = mdiobus_register(felix->imdio);
108 if (rc < 0) {
109 dev_err(dev, "failed to register MDIO bus\n");
110 felix->imdio = NULL;
111 }
112
113 return rc;
114 }
115
> 116 int felix_mdio_bus_alloc(struct ocelot *ocelot)
117 {
118 struct felix *felix = ocelot_to_felix(ocelot);
119 struct device *dev = ocelot->dev;
120 struct mii_bus *bus;
121
122 bus = devm_mdiobus_alloc(dev);
123 if (!bus)
124 return -ENOMEM;
125
126 bus->name = "Felix internal MDIO bus";
127 bus->read = felix_mdio_read;
128 bus->write = felix_mdio_write;
129 bus->parent = dev;
130 bus->priv = ocelot;
131 snprintf(bus->id, MII_BUS_ID_SIZE, "%s-imdio", dev_name(dev));
132
133 felix->imdio = bus;
134
135 return 0;
136 }
137
> 138 void felix_mdio_bus_free(struct ocelot *ocelot)
139 {
140 struct felix *felix = ocelot_to_felix(ocelot);
141
142 if (felix->imdio)
143 mdiobus_unregister(felix->imdio);
144 }
145
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months