linux-s390.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Yang Li <yang.lee@linux.alibaba.com>, hca@linux.ibm.com
Cc: kbuild-all@lists.01.org, gor@linux.ibm.com,
	borntraeger@de.ibm.com, linux-s390@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Yang Li <yang.lee@linux.alibaba.com>
Subject: Re: [PATCH] KVM: s390: use ARRAY_SIZE instead of division operation
Date: Sat, 20 Feb 2021 21:54:22 +0800	[thread overview]
Message-ID: <202102202112.eCpG1JgH-lkp@intel.com> (raw)
In-Reply-To: <1613809357-89354-1-git-send-email-yang.lee@linux.alibaba.com>

[-- Attachment #1: Type: text/plain, Size: 5323 bytes --]

Hi Yang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on s390/features]
[also build test ERROR on v5.11 next-20210219]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Yang-Li/KVM-s390-use-ARRAY_SIZE-instead-of-division-operation/20210220-162731
base:   https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features
config: s390-randconfig-c003-20210220 (attached as .config)
compiler: s390-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/ce79423dfac31c407de75ffe6d6da451d633f3d3
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Yang-Li/KVM-s390-use-ARRAY_SIZE-instead-of-division-operation/20210220-162731
        git checkout ce79423dfac31c407de75ffe6d6da451d633f3d3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390 

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/s390/tools/gen_facilities.c: In function 'print_facility_lists':
>> arch/s390/tools/gen_facilities.c:154:18: warning: implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaration]
     for (i = 0; i < ARRAY_SIZE(facility_defs); i++)
                     ^~~~~~~~~~
   /usr/bin/ld: /tmp/ccZg6NYL.o: in function `main':
>> gen_facilities.c:(.text.startup+0x8a): undefined reference to `ARRAY_SIZE'
   collect2: error: ld returned 1 exit status
--
   arch/s390/tools/gen_opcode_table.c: In function 'insn_format_to_type':
>> arch/s390/tools/gen_opcode_table.c:141:18: warning: implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaration]
     for (i = 0; i < ARRAY_SIZE(insn_type_table); i++) {
                     ^~~~~~~~~~
   /usr/bin/ld: /tmp/ccK5Yn5L.o: in function `main':
>> gen_opcode_table.c:(.text.startup+0xa1): undefined reference to `ARRAY_SIZE'
   collect2: error: ld returned 1 exit status
--
   arch/s390/tools/gen_opcode_table.c: In function 'insn_format_to_type':
>> arch/s390/tools/gen_opcode_table.c:141:18: warning: implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaration]
     for (i = 0; i < ARRAY_SIZE(insn_type_table); i++) {
                     ^~~~~~~~~~
   arch/s390/tools/gen_facilities.c: In function 'print_facility_lists':
>> arch/s390/tools/gen_facilities.c:154:18: warning: implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaration]
     for (i = 0; i < ARRAY_SIZE(facility_defs); i++)
                     ^~~~~~~~~~
   /usr/bin/ld: /tmp/ccxTOhkE.o: in function `main':
>> gen_facilities.c:(.text.startup+0x8a): undefined reference to `ARRAY_SIZE'
   collect2: error: ld returned 1 exit status
   make[2]: *** [scripts/Makefile.host:95: arch/s390/tools/gen_facilities] Error 1
   /usr/bin/ld: /tmp/cchswEND.o: in function `main':
>> gen_opcode_table.c:(.text.startup+0xa1): undefined reference to `ARRAY_SIZE'
   collect2: error: ld returned 1 exit status
   make[2]: *** [scripts/Makefile.host:95: arch/s390/tools/gen_opcode_table] Error 1
   make[2]: Target 'kapi' not remade because of errors.
   make[1]: *** [arch/s390/Makefile:170: archprepare] Error 2
   make[1]: Target 'modules_prepare' not remade because of errors.
   make: *** [Makefile:185: __sub-make] Error 2
   make: Target 'modules_prepare' not remade because of errors.
--
   arch/s390/tools/gen_facilities.c: In function 'print_facility_lists':
>> arch/s390/tools/gen_facilities.c:154:18: warning: implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaration]
     for (i = 0; i < ARRAY_SIZE(facility_defs); i++)
                     ^~~~~~~~~~
   arch/s390/tools/gen_opcode_table.c: In function 'insn_format_to_type':
>> arch/s390/tools/gen_opcode_table.c:141:18: warning: implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaration]
     for (i = 0; i < ARRAY_SIZE(insn_type_table); i++) {
                     ^~~~~~~~~~
   /usr/bin/ld: /tmp/ccMuoSEP.o: in function `main':
>> gen_facilities.c:(.text.startup+0x8a): undefined reference to `ARRAY_SIZE'
   collect2: error: ld returned 1 exit status
   make[2]: *** [scripts/Makefile.host:95: arch/s390/tools/gen_facilities] Error 1
   /usr/bin/ld: /tmp/ccQtRcUO.o: in function `main':
>> gen_opcode_table.c:(.text.startup+0xa1): undefined reference to `ARRAY_SIZE'
   collect2: error: ld returned 1 exit status
   make[2]: *** [scripts/Makefile.host:95: arch/s390/tools/gen_opcode_table] Error 1
   make[2]: Target 'kapi' not remade because of errors.
   make[1]: *** [arch/s390/Makefile:170: archprepare] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:185: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26854 bytes --]

  reply	other threads:[~2021-02-20 13:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-20  8:22 [PATCH] KVM: s390: use ARRAY_SIZE instead of division operation Yang Li
2021-02-20 13:54 ` kernel test robot [this message]
2021-02-21 19:06 ` Heiko Carstens

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=202102202112.eCpG1JgH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=borntraeger@de.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=yang.lee@linux.alibaba.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).