From: kernel test robot <lkp@intel.com>
To: Daniel Palmer <daniel@0x0f.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [chenxing:msc313_mainlining 52/82] drivers/mtd/spi-nor/zbit.c:13:8: error: too many arguments provided to function-like macro invocation
Date: Wed, 12 Jan 2022 21:36:03 +0800 [thread overview]
Message-ID: <202201122102.bNB0eDU9-lkp@intel.com> (raw)
tree: git://github.com/linux-chenxing/linux.git msc313_mainlining
head: 18ce00127e968c06cc0fe1157d36858f59272624
commit: 9994994d1139138f2b0ce3ffbaec1c3d1471c7e2 [52/82] mtd: spi-nor: Add support for ZB25VQ128
config: arm-randconfig-r006-20220112 (https://download.01.org/0day-ci/archive/20220112/202201122102.bNB0eDU9-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
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://github.com/linux-chenxing/linux/commit/9994994d1139138f2b0ce3ffbaec1c3d1471c7e2
git remote add chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags chenxing msc313_mainlining
git checkout 9994994d1139138f2b0ce3ffbaec1c3d1471c7e2
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/mtd/spi-nor/
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/mtd/spi-nor/zbit.c:13:8: error: too many arguments provided to function-like macro invocation
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
^
drivers/mtd/spi-nor/core.h:427:9: note: macro 'INFO' defined here
#define INFO(_jedec_id, _ext_id, _sector_size, _n_sectors) \
^
>> drivers/mtd/spi-nor/zbit.c:12:17: error: use of undeclared identifier 'INFO'
{ "zb25vq128", INFO(0x5e4018, 0, 64 * 1024, 256,
^
>> drivers/mtd/spi-nor/zbit.c:20:12: error: invalid application of 'sizeof' to an incomplete type 'const struct flash_info[]'
.nparts = ARRAY_SIZE(zbit_parts),
^~~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:46:32: note: expanded from macro 'ARRAY_SIZE'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~
3 errors generated.
vim +13 drivers/mtd/spi-nor/zbit.c
9
10 static const struct flash_info zbit_parts[] = {
11 /* zbit */
> 12 { "zb25vq128", INFO(0x5e4018, 0, 64 * 1024, 256,
> 13 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
14 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) },
15 };
16
17 const struct spi_nor_manufacturer spi_nor_zbit = {
18 .name = "zbit",
19 .parts = zbit_parts,
> 20 .nparts = ARRAY_SIZE(zbit_parts),
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [chenxing:msc313_mainlining 52/82] drivers/mtd/spi-nor/zbit.c:13:8: error: too many arguments provided to function-like macro invocation
Date: Wed, 12 Jan 2022 21:36:03 +0800 [thread overview]
Message-ID: <202201122102.bNB0eDU9-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3002 bytes --]
tree: git://github.com/linux-chenxing/linux.git msc313_mainlining
head: 18ce00127e968c06cc0fe1157d36858f59272624
commit: 9994994d1139138f2b0ce3ffbaec1c3d1471c7e2 [52/82] mtd: spi-nor: Add support for ZB25VQ128
config: arm-randconfig-r006-20220112 (https://download.01.org/0day-ci/archive/20220112/202201122102.bNB0eDU9-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
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://github.com/linux-chenxing/linux/commit/9994994d1139138f2b0ce3ffbaec1c3d1471c7e2
git remote add chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags chenxing msc313_mainlining
git checkout 9994994d1139138f2b0ce3ffbaec1c3d1471c7e2
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/mtd/spi-nor/
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/mtd/spi-nor/zbit.c:13:8: error: too many arguments provided to function-like macro invocation
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
^
drivers/mtd/spi-nor/core.h:427:9: note: macro 'INFO' defined here
#define INFO(_jedec_id, _ext_id, _sector_size, _n_sectors) \
^
>> drivers/mtd/spi-nor/zbit.c:12:17: error: use of undeclared identifier 'INFO'
{ "zb25vq128", INFO(0x5e4018, 0, 64 * 1024, 256,
^
>> drivers/mtd/spi-nor/zbit.c:20:12: error: invalid application of 'sizeof' to an incomplete type 'const struct flash_info[]'
.nparts = ARRAY_SIZE(zbit_parts),
^~~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:46:32: note: expanded from macro 'ARRAY_SIZE'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~
3 errors generated.
vim +13 drivers/mtd/spi-nor/zbit.c
9
10 static const struct flash_info zbit_parts[] = {
11 /* zbit */
> 12 { "zb25vq128", INFO(0x5e4018, 0, 64 * 1024, 256,
> 13 SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
14 SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) },
15 };
16
17 const struct spi_nor_manufacturer spi_nor_zbit = {
18 .name = "zbit",
19 .parts = zbit_parts,
> 20 .nparts = ARRAY_SIZE(zbit_parts),
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next reply other threads:[~2022-01-12 13:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-12 13:36 kernel test robot [this message]
2022-01-12 13:36 ` [chenxing:msc313_mainlining 52/82] drivers/mtd/spi-nor/zbit.c:13:8: error: too many arguments provided to function-like macro invocation kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202201122102.bNB0eDU9-lkp@intel.com \
--to=lkp@intel.com \
--cc=daniel@0x0f.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.