All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 10588/14131] drivers/block/loop.c:238:27: warning: result of comparison of constant 65536 with expression of type 'unsigned short' is always false
Date: Tue, 02 Jun 2020 15:17:08 +0800	[thread overview]
Message-ID: <202006021505.b6TZ6Zjs%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e7b08814b16b80a0bf76eeca16317f8c2ed23b8c
commit: 3448914e8cc550ba792d4ccc74471d1ca4293aae [10588/14131] loop: Add LOOP_CONFIGURE ioctl
config: mips-randconfig-r014-20200602 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2388a096e7865c043e83ece4e26654bd3d1a20d5)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        git checkout 3448914e8cc550ba792d4ccc74471d1ca4293aae
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/block/loop.c:238:27: warning: result of comparison of constant 65536 with expression of type 'unsigned short' is always false [-Wtautological-constant-out-of-range-compare]
if (bsize < 512 || bsize > PAGE_SIZE || !is_power_of_2(bsize))
~~~~~ ^ ~~~~~~~~~
1 warning generated.

vim +238 drivers/block/loop.c

   230	
   231	/**
   232	 * loop_validate_block_size() - validates the passed in block size
   233	 * @bsize: size to validate
   234	 */
   235	static int
   236	loop_validate_block_size(unsigned short bsize)
   237	{
 > 238		if (bsize < 512 || bsize > PAGE_SIZE || !is_power_of_2(bsize))
   239			return -EINVAL;
   240	
   241		return 0;
   242	}
   243	

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

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

                 reply	other threads:[~2020-06-02  7:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202006021505.b6TZ6Zjs%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.