All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [arnd-playground:to-build 160/350] drivers/block/drbd/drbd_main.c:1109:37: warning: left shift of negative value
Date: Wed, 02 Dec 2020 07:19:37 +0800	[thread overview]
Message-ID: <202012020728.yZPdZRPl-lkp@intel.com> (raw)

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

                 reply	other threads:[~2020-12-01 23:19 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=202012020728.yZPdZRPl-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.