[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110090015.2f4QNYey-lkp@intel.com>
Date: Sat, 9 Oct 2021 00:59:18 +0800
From: kernel test robot <lkp@...el.com>
To: Abel Vesa <abel.vesa@....com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [abelvesa:imx8mq/icc_devfreq 8/19]
drivers/interconnect/imx/imx8mn.c:58:4: error: expected '}'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/abelvesa/linux.git imx8mq/icc_devfreq
head: 99f96d2710fba54edfc455de79682399c8a4eb36
commit: ee37f3d2eecf5fcb9ace935d959ee775967b7aa5 [8/19] interconnect: imx8: Remove the imx_icc_node_adj_desc
config: riscv-randconfig-r033-20211008 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 8ed2e8e04ff42eb4d8009999ae1fd341a30bf6c0)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/abelvesa/linux.git/commit/?id=ee37f3d2eecf5fcb9ace935d959ee775967b7aa5
git remote add abelvesa https://git.kernel.org/pub/scm/linux/kernel/git/abelvesa/linux.git
git fetch --no-tags abelvesa imx8mq/icc_devfreq
git checkout ee37f3d2eecf5fcb9ace935d959ee775967b7aa5
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/interconnect/imx/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> drivers/interconnect/imx/imx8mn.c:58:4: error: expected '}'
IMX8MN_ICN_NOC, IMX8MN_ICS_OCRAM),
^
include/dt-bindings/interconnect/imx8mn.h:11:25: note: expanded from macro 'IMX8MN_ICN_NOC'
#define IMX8MN_ICN_NOC 1
^
drivers/interconnect/imx/imx8mn.c:57:2: note: to match this '{'
DEFINE_BUS_INTERCONNECT("PL301_MAIN", IMX8MN_ICN_MAIN
^
drivers/interconnect/imx/imx.h:32:2: note: expanded from macro 'DEFINE_BUS_INTERCONNECT'
{ \
^
>> drivers/interconnect/imx/imx8mn.c:63:39: error: invalid application of 'sizeof' to an incomplete type 'struct imx_icc_node_desc []'
return imx_icc_register(pdev, nodes, ARRAY_SIZE(nodes));
^~~~~~~~~~~~~~~~~
include/linux/kernel.h:44:32: note: expanded from macro 'ARRAY_SIZE'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~
2 errors generated.
vim +58 drivers/interconnect/imx/imx8mn.c
4b54bf4763e372 Leonard Crestez 2020-04-28 13
4b54bf4763e372 Leonard Crestez 2020-04-28 14 /*
4b54bf4763e372 Leonard Crestez 2020-04-28 15 * Describe bus masters, slaves and connections between them
4b54bf4763e372 Leonard Crestez 2020-04-28 16 *
4b54bf4763e372 Leonard Crestez 2020-04-28 17 * This is a simplified subset of the bus diagram, there are several other
4b54bf4763e372 Leonard Crestez 2020-04-28 18 * PL301 nics which are skipped/merged into PL301_MAIN
4b54bf4763e372 Leonard Crestez 2020-04-28 19 */
4b54bf4763e372 Leonard Crestez 2020-04-28 20 static struct imx_icc_node_desc nodes[] = {
ee37f3d2eecf5f Abel Vesa 2021-09-13 21 DEFINE_BUS_INTERCONNECT("NOC", IMX8MN_ICN_NOC,
4b54bf4763e372 Leonard Crestez 2020-04-28 22 IMX8MN_ICS_DRAM, IMX8MN_ICN_MAIN),
4b54bf4763e372 Leonard Crestez 2020-04-28 23
ee37f3d2eecf5f Abel Vesa 2021-09-13 24 DEFINE_BUS_SLAVE("DRAM", IMX8MN_ICS_DRAM),
ee37f3d2eecf5f Abel Vesa 2021-09-13 25 DEFINE_BUS_SLAVE("OCRAM", IMX8MN_ICS_OCRAM),
4b54bf4763e372 Leonard Crestez 2020-04-28 26 DEFINE_BUS_MASTER("A53", IMX8MN_ICM_A53, IMX8MN_ICN_NOC),
4b54bf4763e372 Leonard Crestez 2020-04-28 27
4b54bf4763e372 Leonard Crestez 2020-04-28 28 /* GPUMIX */
4b54bf4763e372 Leonard Crestez 2020-04-28 29 DEFINE_BUS_MASTER("GPU", IMX8MN_ICM_GPU, IMX8MN_ICN_GPU),
ee37f3d2eecf5f Abel Vesa 2021-09-13 30 DEFINE_BUS_INTERCONNECT("PL301_GPU", IMX8MN_ICN_GPU, IMX8MN_ICN_NOC),
4b54bf4763e372 Leonard Crestez 2020-04-28 31
4b54bf4763e372 Leonard Crestez 2020-04-28 32 /* DISPLAYMIX */
4b54bf4763e372 Leonard Crestez 2020-04-28 33 DEFINE_BUS_MASTER("CSI1", IMX8MN_ICM_CSI1, IMX8MN_ICN_MIPI),
4b54bf4763e372 Leonard Crestez 2020-04-28 34 DEFINE_BUS_MASTER("CSI2", IMX8MN_ICM_CSI2, IMX8MN_ICN_MIPI),
4b54bf4763e372 Leonard Crestez 2020-04-28 35 DEFINE_BUS_MASTER("ISI", IMX8MN_ICM_ISI, IMX8MN_ICN_MIPI),
4b54bf4763e372 Leonard Crestez 2020-04-28 36 DEFINE_BUS_MASTER("LCDIF", IMX8MN_ICM_LCDIF, IMX8MN_ICN_MIPI),
ee37f3d2eecf5f Abel Vesa 2021-09-13 37 DEFINE_BUS_INTERCONNECT("PL301_MIPI", IMX8MN_ICN_MIPI, IMX8MN_ICN_NOC),
4b54bf4763e372 Leonard Crestez 2020-04-28 38
4b54bf4763e372 Leonard Crestez 2020-04-28 39 /* USB goes straight to NOC */
4b54bf4763e372 Leonard Crestez 2020-04-28 40 DEFINE_BUS_MASTER("USB", IMX8MN_ICM_USB, IMX8MN_ICN_NOC),
4b54bf4763e372 Leonard Crestez 2020-04-28 41
4b54bf4763e372 Leonard Crestez 2020-04-28 42 /* Audio */
4b54bf4763e372 Leonard Crestez 2020-04-28 43 DEFINE_BUS_MASTER("SDMA2", IMX8MN_ICM_SDMA2, IMX8MN_ICN_AUDIO),
4b54bf4763e372 Leonard Crestez 2020-04-28 44 DEFINE_BUS_MASTER("SDMA3", IMX8MN_ICM_SDMA3, IMX8MN_ICN_AUDIO),
ee37f3d2eecf5f Abel Vesa 2021-09-13 45 DEFINE_BUS_INTERCONNECT("PL301_AUDIO", IMX8MN_ICN_AUDIO, IMX8MN_ICN_MAIN),
4b54bf4763e372 Leonard Crestez 2020-04-28 46
4b54bf4763e372 Leonard Crestez 2020-04-28 47 /* Ethernet */
4b54bf4763e372 Leonard Crestez 2020-04-28 48 DEFINE_BUS_MASTER("ENET", IMX8MN_ICM_ENET, IMX8MN_ICN_ENET),
ee37f3d2eecf5f Abel Vesa 2021-09-13 49 DEFINE_BUS_INTERCONNECT("PL301_ENET", IMX8MN_ICN_ENET, IMX8MN_ICN_MAIN),
4b54bf4763e372 Leonard Crestez 2020-04-28 50
4b54bf4763e372 Leonard Crestez 2020-04-28 51 /* Other */
4b54bf4763e372 Leonard Crestez 2020-04-28 52 DEFINE_BUS_MASTER("SDMA1", IMX8MN_ICM_SDMA1, IMX8MN_ICN_MAIN),
4b54bf4763e372 Leonard Crestez 2020-04-28 53 DEFINE_BUS_MASTER("NAND", IMX8MN_ICM_NAND, IMX8MN_ICN_MAIN),
4b54bf4763e372 Leonard Crestez 2020-04-28 54 DEFINE_BUS_MASTER("USDHC1", IMX8MN_ICM_USDHC1, IMX8MN_ICN_MAIN),
4b54bf4763e372 Leonard Crestez 2020-04-28 55 DEFINE_BUS_MASTER("USDHC2", IMX8MN_ICM_USDHC2, IMX8MN_ICN_MAIN),
4b54bf4763e372 Leonard Crestez 2020-04-28 56 DEFINE_BUS_MASTER("USDHC3", IMX8MN_ICM_USDHC3, IMX8MN_ICN_MAIN),
ee37f3d2eecf5f Abel Vesa 2021-09-13 57 DEFINE_BUS_INTERCONNECT("PL301_MAIN", IMX8MN_ICN_MAIN
4b54bf4763e372 Leonard Crestez 2020-04-28 @58 IMX8MN_ICN_NOC, IMX8MN_ICS_OCRAM),
4b54bf4763e372 Leonard Crestez 2020-04-28 59 };
4b54bf4763e372 Leonard Crestez 2020-04-28 60
4b54bf4763e372 Leonard Crestez 2020-04-28 61 static int imx8mn_icc_probe(struct platform_device *pdev)
4b54bf4763e372 Leonard Crestez 2020-04-28 62 {
4b54bf4763e372 Leonard Crestez 2020-04-28 @63 return imx_icc_register(pdev, nodes, ARRAY_SIZE(nodes));
4b54bf4763e372 Leonard Crestez 2020-04-28 64 }
4b54bf4763e372 Leonard Crestez 2020-04-28 65
:::::: The code at line 58 was first introduced by commit
:::::: 4b54bf4763e3725dcceaac379df4ef78df3b9fcd interconnect: imx: Add platform driver for imx8mn
:::::: TO: Leonard Crestez <leonard.crestez@....com>
:::::: CC: Georgi Djakov <georgi.djakov@...aro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (34583 bytes)
Powered by blists - more mailing lists