Messages in this thread | | | Date | Fri, 27 Aug 2021 21:09:41 +0800 | From | kernel test robot <> | Subject | arch/arm/mach-ixp4xx/goramo_mlr.c:231:13: error: use of undeclared identifier 'IXP4XX_UART1_BASE_PHYS' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 77dd11439b86e3f7990e4c0c9e0b67dca82750ba commit: d5d9f7ac58ea1041375a028f143ca5784693ea86 ARM/ixp4xx: Make NEED_MACH_IO_H optional date: 2 months ago config: arm-randconfig-r011-20210827 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1076082a0d97bd5c16a25ee7cf3dbb6ee4b5a9fe) 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/?id=d5d9f7ac58ea1041375a028f143ca5784693ea86 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 mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
>> arch/arm/mach-ixp4xx/goramo_mlr.c:231:13: error: use of undeclared identifier 'IXP4XX_UART1_BASE_PHYS' .start = IXP4XX_UART1_BASE_PHYS, ^ arch/arm/mach-ixp4xx/goramo_mlr.c:232:11: error: use of undeclared identifier 'IXP4XX_UART1_BASE_PHYS' .end = IXP4XX_UART1_BASE_PHYS + 0x0fff, ^ >> arch/arm/mach-ixp4xx/goramo_mlr.c:236:13: error: use of undeclared identifier 'IXP4XX_UART2_BASE_PHYS' .start = IXP4XX_UART2_BASE_PHYS, ^ arch/arm/mach-ixp4xx/goramo_mlr.c:237:11: error: use of undeclared identifier 'IXP4XX_UART2_BASE_PHYS' .end = IXP4XX_UART2_BASE_PHYS + 0x0fff, ^ arch/arm/mach-ixp4xx/goramo_mlr.c:244:14: error: use of undeclared identifier 'IXP4XX_UART1_BASE_PHYS' .mapbase = IXP4XX_UART1_BASE_PHYS, ^ >> arch/arm/mach-ixp4xx/goramo_mlr.c:245:30: error: use of undeclared identifier 'IXP4XX_UART1_BASE_VIRT' .membase = (char __iomem *)IXP4XX_UART1_BASE_VIRT + ^ >> arch/arm/mach-ixp4xx/goramo_mlr.c:246:4: error: use of undeclared identifier 'REG_OFFSET' REG_OFFSET, ^ >> arch/arm/mach-ixp4xx/goramo_mlr.c:251:14: error: use of undeclared identifier 'IXP4XX_UART_XTAL' .uartclk = IXP4XX_UART_XTAL, ^ arch/arm/mach-ixp4xx/goramo_mlr.c:254:14: error: use of undeclared identifier 'IXP4XX_UART2_BASE_PHYS' .mapbase = IXP4XX_UART2_BASE_PHYS, ^ >> arch/arm/mach-ixp4xx/goramo_mlr.c:255:30: error: use of undeclared identifier 'IXP4XX_UART2_BASE_VIRT' .membase = (char __iomem *)IXP4XX_UART2_BASE_VIRT + ^ arch/arm/mach-ixp4xx/goramo_mlr.c:256:4: error: use of undeclared identifier 'REG_OFFSET' REG_OFFSET, ^ arch/arm/mach-ixp4xx/goramo_mlr.c:261:14: error: use of undeclared identifier 'IXP4XX_UART_XTAL' .uartclk = IXP4XX_UART_XTAL, ^ >> arch/arm/mach-ixp4xx/goramo_mlr.c:278:13: error: use of undeclared identifier 'IXP4XX_EthB_BASE_PHYS' .start = IXP4XX_EthB_BASE_PHYS, ^ arch/arm/mach-ixp4xx/goramo_mlr.c:279:11: error: use of undeclared identifier 'IXP4XX_EthB_BASE_PHYS' .end = IXP4XX_EthB_BASE_PHYS + 0x0fff, ^ >> arch/arm/mach-ixp4xx/goramo_mlr.c:286:13: error: use of undeclared identifier 'IXP4XX_EthC_BASE_PHYS' .start = IXP4XX_EthC_BASE_PHYS, ^ arch/arm/mach-ixp4xx/goramo_mlr.c:287:11: error: use of undeclared identifier 'IXP4XX_EthC_BASE_PHYS' .end = IXP4XX_EthC_BASE_PHYS + 0x0fff, ^ >> arch/arm/mach-ixp4xx/goramo_mlr.c:292:37: error: array has incomplete element type 'struct eth_plat_info' static struct eth_plat_info eth_plat[] = { ^ arch/arm/mach-ixp4xx/goramo_mlr.c:292:15: note: forward declaration of 'struct eth_plat_info' static struct eth_plat_info eth_plat[] = { ^ >> arch/arm/mach-ixp4xx/goramo_mlr.c:307:11: error: use of undeclared identifier 'IXP4XX_ETH_NPEB' .id = IXP4XX_ETH_NPEB, ^ >> arch/arm/mach-ixp4xx/goramo_mlr.c:309:21: error: invalid application of 'sizeof' to an incomplete type 'struct resource []' .num_resources = ARRAY_SIZE(eth_npeb_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)) ^~~~~ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. -- arch/arm/mach-ixp4xx/common-pci.c:94:5: warning: no previous prototype for function 'ixp4xx_pci_read_errata' [-Wmissing-prototypes] int ixp4xx_pci_read_errata(u32 addr, u32 cmd, u32* data) ^ arch/arm/mach-ixp4xx/common-pci.c:94:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int ixp4xx_pci_read_errata(u32 addr, u32 cmd, u32* data) ^ static arch/arm/mach-ixp4xx/common-pci.c:121:5: warning: no previous prototype for function 'ixp4xx_pci_read_no_errata' [-Wmissing-prototypes] int ixp4xx_pci_read_no_errata(u32 addr, u32 cmd, u32* data) ^ arch/arm/mach-ixp4xx/common-pci.c:121:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int ixp4xx_pci_read_no_errata(u32 addr, u32 cmd, u32* data) ^ static >> arch/arm/mach-ixp4xx/common-pci.c:143:5: warning: no previous prototype for function 'ixp4xx_pci_write' [-Wmissing-prototypes] int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data) ^ arch/arm/mach-ixp4xx/common-pci.c:143:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data) ^ static 3 warnings 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 +/IXP4XX_UART1_BASE_PHYS +231 arch/arm/mach-ixp4xx/goramo_mlr.c
11c79740d3c03c Krzysztof Hałasa 2009-05-23 227 11c79740d3c03c Krzysztof Hałasa 2009-05-23 228 /* IXP425 2 UART ports */ 11c79740d3c03c Krzysztof Hałasa 2009-05-23 229 static struct resource uart_resources[] = { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 230 { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 @231 .start = IXP4XX_UART1_BASE_PHYS, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 232 .end = IXP4XX_UART1_BASE_PHYS + 0x0fff, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 233 .flags = IORESOURCE_MEM, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 234 }, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 235 { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 @236 .start = IXP4XX_UART2_BASE_PHYS, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 237 .end = IXP4XX_UART2_BASE_PHYS + 0x0fff, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 238 .flags = IORESOURCE_MEM, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 239 } 11c79740d3c03c Krzysztof Hałasa 2009-05-23 240 }; 11c79740d3c03c Krzysztof Hałasa 2009-05-23 241 11c79740d3c03c Krzysztof Hałasa 2009-05-23 242 static struct plat_serial8250_port uart_data[] = { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 243 { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 244 .mapbase = IXP4XX_UART1_BASE_PHYS, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 @245 .membase = (char __iomem *)IXP4XX_UART1_BASE_VIRT + 11c79740d3c03c Krzysztof Hałasa 2009-05-23 @246 REG_OFFSET, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 247 .irq = IRQ_IXP4XX_UART1, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 248 .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 249 .iotype = UPIO_MEM, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 250 .regshift = 2, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 @251 .uartclk = IXP4XX_UART_XTAL, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 252 }, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 253 { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 254 .mapbase = IXP4XX_UART2_BASE_PHYS, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 @255 .membase = (char __iomem *)IXP4XX_UART2_BASE_VIRT + 11c79740d3c03c Krzysztof Hałasa 2009-05-23 256 REG_OFFSET, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 257 .irq = IRQ_IXP4XX_UART2, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 258 .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 259 .iotype = UPIO_MEM, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 260 .regshift = 2, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 261 .uartclk = IXP4XX_UART_XTAL, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 262 }, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 263 { }, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 264 }; 11c79740d3c03c Krzysztof Hałasa 2009-05-23 265 11c79740d3c03c Krzysztof Hałasa 2009-05-23 266 static struct platform_device device_uarts = { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 267 .name = "serial8250", 11c79740d3c03c Krzysztof Hałasa 2009-05-23 268 .id = PLAT8250_DEV_PLATFORM, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 269 .dev.platform_data = uart_data, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 270 .num_resources = 2, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 271 .resource = uart_resources, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 272 }; 11c79740d3c03c Krzysztof Hałasa 2009-05-23 273 11c79740d3c03c Krzysztof Hałasa 2009-05-23 274 11c79740d3c03c Krzysztof Hałasa 2009-05-23 275 /* Built-in 10/100 Ethernet MAC interfaces */ f458ac479777c6 Linus Walleij 2020-01-12 276 static struct resource eth_npeb_resources[] = { f458ac479777c6 Linus Walleij 2020-01-12 277 { f458ac479777c6 Linus Walleij 2020-01-12 @278 .start = IXP4XX_EthB_BASE_PHYS, f458ac479777c6 Linus Walleij 2020-01-12 279 .end = IXP4XX_EthB_BASE_PHYS + 0x0fff, f458ac479777c6 Linus Walleij 2020-01-12 280 .flags = IORESOURCE_MEM, f458ac479777c6 Linus Walleij 2020-01-12 281 }, f458ac479777c6 Linus Walleij 2020-01-12 282 }; f458ac479777c6 Linus Walleij 2020-01-12 283 f458ac479777c6 Linus Walleij 2020-01-12 284 static struct resource eth_npec_resources[] = { f458ac479777c6 Linus Walleij 2020-01-12 285 { f458ac479777c6 Linus Walleij 2020-01-12 @286 .start = IXP4XX_EthC_BASE_PHYS, f458ac479777c6 Linus Walleij 2020-01-12 287 .end = IXP4XX_EthC_BASE_PHYS + 0x0fff, f458ac479777c6 Linus Walleij 2020-01-12 288 .flags = IORESOURCE_MEM, f458ac479777c6 Linus Walleij 2020-01-12 289 }, f458ac479777c6 Linus Walleij 2020-01-12 290 }; f458ac479777c6 Linus Walleij 2020-01-12 291 11c79740d3c03c Krzysztof Hałasa 2009-05-23 @292 static struct eth_plat_info eth_plat[] = { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 293 { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 294 .phy = 0, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 295 .rxq = 3, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 296 .txreadyq = 32, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 297 }, { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 298 .phy = 1, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 299 .rxq = 4, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 300 .txreadyq = 33, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 301 } 11c79740d3c03c Krzysztof Hałasa 2009-05-23 302 }; 11c79740d3c03c Krzysztof Hałasa 2009-05-23 303 11c79740d3c03c Krzysztof Hałasa 2009-05-23 304 static struct platform_device device_eth_tab[] = { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 305 { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 306 .name = "ixp4xx_eth", 11c79740d3c03c Krzysztof Hałasa 2009-05-23 @307 .id = IXP4XX_ETH_NPEB, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 308 .dev.platform_data = eth_plat, f458ac479777c6 Linus Walleij 2020-01-12 @309 .num_resources = ARRAY_SIZE(eth_npeb_resources), f458ac479777c6 Linus Walleij 2020-01-12 310 .resource = eth_npeb_resources, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 311 }, { 11c79740d3c03c Krzysztof Hałasa 2009-05-23 312 .name = "ixp4xx_eth", 11c79740d3c03c Krzysztof Hałasa 2009-05-23 313 .id = IXP4XX_ETH_NPEC, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 314 .dev.platform_data = eth_plat + 1, f458ac479777c6 Linus Walleij 2020-01-12 315 .num_resources = ARRAY_SIZE(eth_npec_resources), f458ac479777c6 Linus Walleij 2020-01-12 316 .resource = eth_npec_resources, 11c79740d3c03c Krzysztof Hałasa 2009-05-23 317 } 11c79740d3c03c Krzysztof Hałasa 2009-05-23 318 }; 11c79740d3c03c Krzysztof Hałasa 2009-05-23 319 11c79740d3c03c Krzysztof Hałasa 2009-05-23 320
:::::: The code at line 231 was first introduced by commit :::::: 11c79740d3c03cb81f84e98cf2e2dbd8d9bb53cd IXP4xx: support for Goramo MultiLink router platform.
:::::: TO: Krzysztof Hałasa <khc@pm.waw.pl> :::::: CC: Krzysztof Hałasa <khc@pm.waw.pl>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |