All of lore.kernel.org
 help / color / mirror / Atom feed
* [arnd-playground:to-build 160/350] drivers/block/drbd/drbd_main.c:1109:37: warning: left shift of negative value
@ 2020-12-01 23:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-01 23:19 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git to-build
head:   fe197c065a93b860c59017cf6933889c69842ef7
commit: 066971786203a343d55b79cf52b8e82e50026cc6 [160/350] warnings: modify which warnings are enabled
config: i386-randconfig-a016-20201201 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commit/?id=066971786203a343d55b79cf52b8e82e50026cc6
        git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
        git fetch --no-tags arnd-playground to-build
        git checkout 066971786203a343d55b79cf52b8e82e50026cc6
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

   drivers/block/drbd/drbd_main.c: In function 'dcbp_set_pad_bits':
>> drivers/block/drbd/drbd_main.c:1109:37: warning: left shift of negative value [-Wshift-negative-value]
    1109 |  p->encoding = (p->encoding & (~0x7 << 4)) | (n << 4);
         |                                     ^~
   drivers/block/drbd/drbd_main.c: In function 'cmdname':
   drivers/block/drbd/drbd_main.c:3676:22: warning: initialized field overwritten [-Woverride-init]
    3676 |   [P_RETRY_WRITE]  = "retry_write",
         |                      ^~~~~~~~~~~~~
   drivers/block/drbd/drbd_main.c:3676:22: note: (near initialization for 'cmdnames[44]')

vim +1109 drivers/block/drbd/drbd_main.c

b411b3637fa71fc Philipp Reisner     2009-09-25  1105  
a02d124091ac717 Andreas Gruenbacher 2011-03-22  1106  static void dcbp_set_pad_bits(struct p_compressed_bm *p, int n)
a02d124091ac717 Andreas Gruenbacher 2011-03-22  1107  {
a02d124091ac717 Andreas Gruenbacher 2011-03-22  1108  	BUG_ON(n & ~0x7);
a02d124091ac717 Andreas Gruenbacher 2011-03-22 @1109  	p->encoding = (p->encoding & (~0x7 << 4)) | (n << 4);
b411b3637fa71fc Philipp Reisner     2009-09-25  1110  }
b411b3637fa71fc Philipp Reisner     2009-09-25  1111  

:::::: The code@line 1109 was first introduced by commit
:::::: a02d124091ac7178c24a1318e5dcc4ae7fe6c8e1 drbd: Rename the DCBP_* functions to dcbp_* and move them to where they are used

:::::: TO: Andreas Gruenbacher <agruen@linbit.com>
:::::: CC: Philipp Reisner <philipp.reisner@linbit.com>

---
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: 36421 bytes --]

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

only message in thread, other threads:[~2020-12-01 23:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01 23:19 [arnd-playground:to-build 160/350] drivers/block/drbd/drbd_main.c:1109:37: warning: left shift of negative value kernel 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.