All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2020-06-02  7:17 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-06-02  7:17 UTC (permalink / raw)
  To: kbuild-all

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-02  7:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02  7:17 [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 kbuild test robot

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.