Messages in this thread | | | Date | Sun, 5 Dec 2021 21:23:30 +0800 | From | kernel test robot <> | Subject | [asahilinux:asahi 55/56] drivers/pci/controller/pcie-apple.c:537:18: error: implicit declaration of function 'FIELD_PREP' |
| |
tree: https://github.com/AsahiLinux/linux asahi head: 69711d887d3f10a4f7dd6fd648bfff63ff66ba18 commit: 1dcce995852337e04880b91baef1994681d62f9c [55/56] PCI: apple: Configure link speeds properly config: ia64-randconfig-r015-20211203 (https://download.01.org/0day-ci/archive/20211205/202112052106.IiknpGPg-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 11.2.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/AsahiLinux/linux/commit/1dcce995852337e04880b91baef1994681d62f9c git remote add asahilinux https://github.com/AsahiLinux/linux git fetch --no-tags asahilinux asahi git checkout 1dcce995852337e04880b91baef1994681d62f9c # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/gpu/drm/tiny/ drivers/pci/controller/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/pci/controller/pcie-apple.c: In function 'apple_pcie_link_configure_max_speed': >> drivers/pci/controller/pcie-apple.c:537:18: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration] 537 | ctrl2 |= FIELD_PREP(PCI_EXP_LNKCTL2_TLS, max_gen); | ^~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from include/linux/kallsyms.h:14, from include/linux/ftrace.h:12, from include/linux/kprobes.h:28, from include/linux/kgdb.h:19, from include/linux/fb.h:6, from include/linux/platform_data/simplefb.h:12, from drivers/gpu/drm/tiny/simpledrm.c:6: >> include/linux/module.h:131:49: error: redefinition of '__inittest' 131 | static inline initcall_t __maybe_unused __inittest(void) \ | ^~~~~~~~~~ include/linux/module.h:119:41: note: in expansion of macro 'module_init' 119 | #define fs_initcall(fn) module_init(fn) | ^~~~~~~~~~~ drivers/gpu/drm/tiny/simpledrm.c:915:1: note: in expansion of macro 'fs_initcall' 915 | fs_initcall(simplefb_init); | ^~~~~~~~~~~ include/linux/module.h:131:49: note: previous definition of '__inittest' with type 'int (*(void))(void)' 131 | static inline initcall_t __maybe_unused __inittest(void) \ | ^~~~~~~~~~ include/linux/device/driver.h:263:1: note: in expansion of macro 'module_init' 263 | module_init(__driver##_init); \ | ^~~~~~~~~~~ include/linux/platform_device.h:252:9: note: in expansion of macro 'module_driver' 252 | module_driver(__platform_driver, platform_driver_register, \ | ^~~~~~~~~~~~~ drivers/gpu/drm/tiny/simpledrm.c:899:1: note: in expansion of macro 'module_platform_driver' 899 | module_platform_driver(simpledrm_platform_driver); | ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/module.h:133:13: error: redefinition of 'init_module' 133 | int init_module(void) __copy(initfn) \ | ^~~~~~~~~~~ include/linux/module.h:119:41: note: in expansion of macro 'module_init' 119 | #define fs_initcall(fn) module_init(fn) | ^~~~~~~~~~~ drivers/gpu/drm/tiny/simpledrm.c:915:1: note: in expansion of macro 'fs_initcall' 915 | fs_initcall(simplefb_init); | ^~~~~~~~~~~ include/linux/module.h:133:13: note: previous definition of 'init_module' with type 'int(void)' 133 | int init_module(void) __copy(initfn) \ | ^~~~~~~~~~~ include/linux/device/driver.h:263:1: note: in expansion of macro 'module_init' 263 | module_init(__driver##_init); \ | ^~~~~~~~~~~ include/linux/platform_device.h:252:9: note: in expansion of macro 'module_driver' 252 | module_driver(__platform_driver, platform_driver_register, \ | ^~~~~~~~~~~~~ drivers/gpu/drm/tiny/simpledrm.c:899:1: note: in expansion of macro 'module_platform_driver' 899 | module_platform_driver(simpledrm_platform_driver); | ^~~~~~~~~~~~~~~~~~~~~~
vim +/FIELD_PREP +537 drivers/pci/controller/pcie-apple.c
523 524 static int apple_pcie_link_configure_max_speed(struct apple_pcie_port *port) 525 { 526 int max_gen; 527 u32 ctrl2; 528 529 max_gen = of_pci_get_max_link_speed(port->np); 530 if (max_gen < 0) { 531 dev_err(port->pcie->dev, "max link speed not specified\n"); 532 return max_gen; 533 } 534 535 ctrl2 = readw_relaxed(bridge_reg(port, PCIE_CAP_BASE + PCI_EXP_LNKCTL2)); 536 ctrl2 &= ~PCI_EXP_LNKCTL2_TLS; > 537 ctrl2 |= FIELD_PREP(PCI_EXP_LNKCTL2_TLS, max_gen); 538 writew_relaxed(ctrl2, bridge_reg(port, PCIE_CAP_BASE + PCI_EXP_LNKCTL2)); 539 540 return 0; 541 } 542
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |