linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Arnd Bergmann <arnd@arndb.de>, Kees Cook <keescook@chromium.org>,
	Nick Desaulniers <ndesaulniers@google.com>,
	Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>,
	Masahiro Yamada <yamada.masahiro@socionext.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] build_bug.h: remove all dummy BUILD_BUG_ON stubs for sparse
Date: Sat, 17 Nov 2018 18:53:10 +0800	[thread overview]
Message-ID: <201811171831.qhwHC7gp%fengguang.wu@intel.com> (raw)
In-Reply-To: <1542349141-7229-2-git-send-email-yamada.masahiro@socionext.com>

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

Hi Masahiro,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.20-rc2 next-20181116]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Masahiro-Yamada/build_bug-h-remove-negative-array-fallback-for-BUILD_BUG_ON/20181116-190414
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:241:29: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:260:39: warning: incorrect type in assignment (different base types)
   drivers/crypto/chelsio/chcr_algo.c:260:39:    expected unsigned int [unsigned] [usertype] <noident>
   drivers/crypto/chelsio/chcr_algo.c:260:39:    got restricted __be32 [usertype] <noident>
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: restricted __be32 degrades to integer
   drivers/crypto/chelsio/chcr_algo.c:2301:21: warning: cast to restricted __be32
   drivers/crypto/chelsio/chcr_algo.c:2747:65: warning: incorrect type in assignment (different base types)
   drivers/crypto/chelsio/chcr_algo.c:2747:65:    expected unsigned short [unsigned] [short] <noident>
   drivers/crypto/chelsio/chcr_algo.c:2747:65:    got restricted __be16 [usertype] <noident>
   drivers/crypto/chelsio/chcr_algo.c:3014:46: warning: incorrect type in assignment (different base types)
   drivers/crypto/chelsio/chcr_algo.c:3014:46:    expected unsigned int [unsigned] <noident>
   drivers/crypto/chelsio/chcr_algo.c:3014:46:    got restricted __be32 [usertype] <noident>
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
   drivers/crypto/mediatek/mtk-sha.c:251:17: warning: incorrect type in assignment (different base types)
   drivers/crypto/mediatek/mtk-sha.c:251:17:    expected unsigned long long [unsigned] [long] [long long] <noident>
   drivers/crypto/mediatek/mtk-sha.c:251:17:    got restricted __be64 [usertype] <noident>
   drivers/crypto/mediatek/mtk-sha.c:252:17: warning: incorrect type in assignment (different base types)
   drivers/crypto/mediatek/mtk-sha.c:252:17:    expected unsigned long long [unsigned] [long] [long long] <noident>
   drivers/crypto/mediatek/mtk-sha.c:252:17:    got restricted __be64 [usertype] <noident>
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
>> sound/hda/ext/hdac_ext_bus.c:203:36: warning: unknown expression (4 0)
--
   include/linux/slab.h:332:43: warning: dubious: x & !y
   drivers/infiniband/hw/hns/hns_roce_ah.c:72:24: warning: incorrect type in assignment (different base types)
   drivers/infiniband/hw/hns/hns_roce_ah.c:72:24:    expected restricted __le32 [usertype] port_pd
   drivers/infiniband/hw/hns/hns_roce_ah.c:72:24:    got restricted __be32 [usertype] <noident>
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
>> drivers/infiniband/hw/hns/hns_roce_device.h:869:16: warning: unknown expression (4 0)
--
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
   include/linux/slab.h:332:43: warning: dubious: x & !y
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
--
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
>> include/crypto/hash.h:767:16: warning: unknown expression (4 0)
..

vim +767 include/crypto/hash.h

974959863 Herbert Xu 2009-02-03  764  
7b5a080b3 Herbert Xu 2008-08-31  765  static inline struct shash_alg *__crypto_shash_alg(struct crypto_alg *alg)
7b5a080b3 Herbert Xu 2008-08-31  766  {
7b5a080b3 Herbert Xu 2008-08-31 @767  	return container_of(alg, struct shash_alg, base);
7b5a080b3 Herbert Xu 2008-08-31  768  }
7b5a080b3 Herbert Xu 2008-08-31  769  

:::::: The code at line 767 was first introduced by commit
:::::: 7b5a080b3c46f0cac71c0d0262634c6517d4ee4f crypto: hash - Add shash interface

:::::: TO: Herbert Xu <herbert@gondor.apana.org.au>
:::::: CC: Herbert Xu <herbert@gondor.apana.org.au>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

  reply	other threads:[~2018-11-17 10:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-16  6:19 [PATCH 1/2] build_bug.h: remove negative-array fallback for BUILD_BUG_ON() Masahiro Yamada
2018-11-16  6:19 ` [PATCH 2/2] build_bug.h: remove all dummy BUILD_BUG_ON stubs for sparse Masahiro Yamada
2018-11-17 10:53   ` kbuild test robot [this message]
2018-11-19 10:37     ` Masahiro Yamada
2018-11-16 19:01 ` [PATCH 1/2] build_bug.h: remove negative-array fallback for BUILD_BUG_ON() Kees Cook
2018-11-24  8:14   ` Miguel Ojeda

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=201811171831.qhwHC7gp%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=kbuild-all@01.org \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miguel.ojeda.sandonis@gmail.com \
    --cc=ndesaulniers@google.com \
    --cc=torvalds@linux-foundation.org \
    --cc=yamada.masahiro@socionext.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).