All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] mm: remove the redundancy code
Date: Tue, 30 Jun 2020 18:28:25 +0800	[thread overview]
Message-ID: <202006301807.ODS5tScL%lkp@intel.com> (raw)
In-Reply-To: <20200629173047.GA38128@ubuntu>

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

Hi Su,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mmotm/master]

url:    https://github.com/0day-ci/linux/commits/Su-Hui/mm-remove-the-redundancy-code/20200630-013137
base:   git://git.cmpxchg.org/linux-mmotm.git master
config: x86_64-allnoconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project cf1d04484344be52ada8178e41d18fd15a9b880c)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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 >>):

   ^
   case 1: ^include/linux/signal.h
   :133:2: note: expanded from macro '_SIG_SET_BINOP'
   case 2: ^
   include/linux/signal.h:147:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:137:2: note: expanded from macro '_SIG_SET_BINOP'
   case 1: ^
   include/linux/signal.h:177:1: warning: unannotated fall-through between switch labels
   _SIG_SET_OP(signotset, _sig_not)
   ^
   include/linux/signal.h:167:2: note: expanded from macro '_SIG_SET_OP'
   case 2: = ^
   include/linux/signal.h:177:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:169:2: note: expanded from macro '_SIG_SET_OP'
   case 1: = ^
>> include/linux/signal.h:150:1: warning: include/linux/signal.h:unannotated fall-through between switch labels warning: unannotated fall-through between switch labels
   case 1: = 0;
--
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:203:2: note: insert 'break;' to avoid fall-through
   case 1: = -1;
   ^
   break;
   include/linux/signal.h:233:2: warning: unannotated fall-through between switch labels
   case 1: ;
   ^
   kernel//irq/handle.c:170:3: warning: unannotated fall-through between switch labels
   case IRQ_HANDLED:
   ^
   3kernel//irq/handle.cinclude/linux/signal.h:233:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: ;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:233:2: note: insert 'break;' to avoid fall-through
   case 1: ;
   ^
   break;
   include/linux/signal.h:245:2: warning: unannotated fall-through between switch labels
   case 1: ;
   ^
   :170:3: note: insert '__attribute__((fallthrough));' to silence this warning
   case IRQ_HANDLED:
   ^
   __attribute__((fallthrough));
   kernel//irq/handle.c:170:3: note: insert 'break;' to avoid fall-through
   case IRQ_HANDLED:
   ^
   break;
   include/linux/signal.h:245:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: ;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:245:2: note: insert 'break;' to avoid fall-through
   case 1: ;
   ^
   break;
   warnings generated.
   In file included from kernel//events/core.c:24:
   In file included from include/linux/ptrace.h:7:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:147:1: warning: unannotated fall-through between switch labels
   _SIG_SET_BINOP(sigorsets, _sig_or)
   ^
   include/linux/signal.h:133:2: note: expanded from macro '_SIG_SET_BINOP'
   case 2: ^
   include/linux/signal.h:147:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:137:2: note: expanded from macro '_SIG_SET_BINOP'
   case 1: ^
   include/linux/signal.h:150:1: warning: unannotated fall-through between switch labels
   _SIG_SET_BINOP(sigandsets, _sig_and)
   ^
   include/linux/signal.h:133:2: note: expanded from macro '_SIG_SET_BINOP'
   case 2: ^
   include/linux/signal.h:150:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:137:2: note: expanded from macro '_SIG_SET_BINOP'
   case 1: ^
   include/linux/signal.h:153:1: warning: unannotated fall-through between switch labels
   _SIG_SET_BINOP(sigandnsets, _sig_andn)
   ^
   include/linux/signal.h:133:2: note: expanded from macro '_SIG_SET_BINOP'
   case 2: ^
   include/linux/signal.h:153:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:137:2: note: expanded from macro '_SIG_SET_BINOP'
   case 1: ^
   include/linux/signal.h:177:1: warning: unannotated fall-through between switch labels
   _SIG_SET_OP(signotset, _sig_not)
   ^
   include/linux/signal.h:167:2: note: expanded from macro '_SIG_SET_OP'
   case 2: = ^
   include/linux/signal.h:177:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:169:2: note: expanded from macro '_SIG_SET_OP'
   case 1: = ^
   include/linux/signal.h:190:2: warning: unannotated fall-through between switch labels
   case 1: = 0;
   ^
   include/linux/signal.h:190:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: = 0;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:190:2: note: insert 'break;' to avoid fall-through
   case 1: = 0;
   ^
   break;
   include/linux/signal.h:203:2: warning: unannotated fall-through between switch labels
   case 1: = -1;
   ^
   In file included from kernel//locking/semaphore.c:34:
   In file included from include/linux/ftrace.h:11:
   In file included from include/linux/kallsyms.h:12:
   include/linux/mm.h:162:2: warning: unannotated fall-through between switch labels
   case 72:
   ^
   In file included from kernel//time/time.c:33:
   In file included from include/linux/syscalls.h:85:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:6:
   In file included from include/linux/ring_buffer.h:5:
>> include/linux/mm.h:162:2: warning: include/linux/signal.hunannotated fall-through between switch labels
   : case 72:203
   ^:
   2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: = -1;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:203:2: note: insert 'break;' to avoid fall-through
   case 1: = -1;
   ^
   break;
   include/linux/signal.h:233:2: warning: unannotated fall-through between switch labels
   case 1: ;
   ^
   include/linux/signal.hinclude/linux/mm.h:162:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 72:
   ^
   __attribute__((fallthrough));
   include/linux/mm.h:162:2: note: insert 'break;' to avoid fall-through
   case 72:
   ^
   break;
   include/linux/mm.h:164:2: warning: unannotated fall-through between switch labels
   case 64:
   ^
   include/linux/mm.h:164:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 64:
   ^
   __attribute__((fallthrough));
   include/linux/mm.h:164:2: note: insert 'break;' to avoid fall-through
   case 64:
   ^
   break;
   include/linux/mm.h:166:2: warning: unannotated fall-through between switch labels
   case 56:
   ^
   :233:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: ;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:233:2: note: insert 'break;' to avoid fall-through
   case 1: ;
   ^
   break;
   include/linux/signal.h:245:2: warning: unannotated fall-through between switch labels
   case 1: ;
   ^
   include/linux/mm.h:166:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 56:
   ^
   __attribute__((fallthrough));
   include/linux/mm.h:166:2: note: insert 'break;' to avoid fall-through
   case 56:
   ^
   break;
   include/linux/mm.h:162:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 72:
   ^
   __attribute__((fallthrough));
   include/linux/mm.h:162:2: note: insert 'break;' to avoid fall-through
   case 72:
   ^
   break;
   include/linux/mm.h:164:2: warning: unannotated fall-through between switch labels
   case 64:
   ^
   12 warnings generated.
   include/linux/signal.h:245:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: ;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:245:2: note: insert 'break;' to avoid fall-through
   case 1: ;
   ^
   break;
   1 warning generated.
   include/linux/mm.h:164:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 64:
   ^
   __attribute__((fallthrough));
   include/linux/mm.h:164:2: note: insert 'break;' to avoid fall-through
   case 64:
   ^
   break;
   include/linux/mm.h:166:2: warning: unannotated fall-through between switch labels
   case 56:
   ^
   In file included from kernel//sched/loadavg.c:9:
   In file included from kernel//sched/sched.h:11:
   In file included from include/linux/sched/cputime.h:5:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:147:1: warning: unannotated fall-through between switch labels
   _SIG_SET_BINOP(sigorsets, _sig_or)
   ^
   include/linux/signal.h:133:2: note: expanded from macro '_SIG_SET_BINOP'
   case 2: ^
   include/linux/signal.h:147:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:137:2: note: expanded from macro '_SIG_SET_BINOP'
   case 1: ^
   include/linux/signal.h:150:1: warning: unannotated fall-through between switch labels
   _SIG_SET_BINOP(sigandsets, _sig_and)

vim +150 include/linux/signal.h

^1da177e4c3f41 Linus Torvalds 2005-04-16  148  
^1da177e4c3f41 Linus Torvalds 2005-04-16  149  #define _sig_and(x,y)	((x) & (y))
^1da177e4c3f41 Linus Torvalds 2005-04-16 @150  _SIG_SET_BINOP(sigandsets, _sig_and)
^1da177e4c3f41 Linus Torvalds 2005-04-16  151  

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Su Hui <sh_def@163.com>, akpm@linux-foundation.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH] mm: remove the redundancy code
Date: Tue, 30 Jun 2020 18:28:25 +0800	[thread overview]
Message-ID: <202006301807.ODS5tScL%lkp@intel.com> (raw)
In-Reply-To: <20200629173047.GA38128@ubuntu>

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

Hi Su,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mmotm/master]

url:    https://github.com/0day-ci/linux/commits/Su-Hui/mm-remove-the-redundancy-code/20200630-013137
base:   git://git.cmpxchg.org/linux-mmotm.git master
config: x86_64-allnoconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project cf1d04484344be52ada8178e41d18fd15a9b880c)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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 >>):

   ^
   case 1: ^include/linux/signal.h
   :133:2: note: expanded from macro '_SIG_SET_BINOP'
   case 2: ^
   include/linux/signal.h:147:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:137:2: note: expanded from macro '_SIG_SET_BINOP'
   case 1: ^
   include/linux/signal.h:177:1: warning: unannotated fall-through between switch labels
   _SIG_SET_OP(signotset, _sig_not)
   ^
   include/linux/signal.h:167:2: note: expanded from macro '_SIG_SET_OP'
   case 2: = ^
   include/linux/signal.h:177:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:169:2: note: expanded from macro '_SIG_SET_OP'
   case 1: = ^
>> include/linux/signal.h:150:1: warning: include/linux/signal.h:unannotated fall-through between switch labels warning: unannotated fall-through between switch labels
   case 1: = 0;
--
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:203:2: note: insert 'break;' to avoid fall-through
   case 1: = -1;
   ^
   break;
   include/linux/signal.h:233:2: warning: unannotated fall-through between switch labels
   case 1: ;
   ^
   kernel//irq/handle.c:170:3: warning: unannotated fall-through between switch labels
   case IRQ_HANDLED:
   ^
   3kernel//irq/handle.cinclude/linux/signal.h:233:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: ;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:233:2: note: insert 'break;' to avoid fall-through
   case 1: ;
   ^
   break;
   include/linux/signal.h:245:2: warning: unannotated fall-through between switch labels
   case 1: ;
   ^
   :170:3: note: insert '__attribute__((fallthrough));' to silence this warning
   case IRQ_HANDLED:
   ^
   __attribute__((fallthrough));
   kernel//irq/handle.c:170:3: note: insert 'break;' to avoid fall-through
   case IRQ_HANDLED:
   ^
   break;
   include/linux/signal.h:245:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: ;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:245:2: note: insert 'break;' to avoid fall-through
   case 1: ;
   ^
   break;
   warnings generated.
   In file included from kernel//events/core.c:24:
   In file included from include/linux/ptrace.h:7:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:147:1: warning: unannotated fall-through between switch labels
   _SIG_SET_BINOP(sigorsets, _sig_or)
   ^
   include/linux/signal.h:133:2: note: expanded from macro '_SIG_SET_BINOP'
   case 2: ^
   include/linux/signal.h:147:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:137:2: note: expanded from macro '_SIG_SET_BINOP'
   case 1: ^
   include/linux/signal.h:150:1: warning: unannotated fall-through between switch labels
   _SIG_SET_BINOP(sigandsets, _sig_and)
   ^
   include/linux/signal.h:133:2: note: expanded from macro '_SIG_SET_BINOP'
   case 2: ^
   include/linux/signal.h:150:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:137:2: note: expanded from macro '_SIG_SET_BINOP'
   case 1: ^
   include/linux/signal.h:153:1: warning: unannotated fall-through between switch labels
   _SIG_SET_BINOP(sigandnsets, _sig_andn)
   ^
   include/linux/signal.h:133:2: note: expanded from macro '_SIG_SET_BINOP'
   case 2: ^
   include/linux/signal.h:153:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:137:2: note: expanded from macro '_SIG_SET_BINOP'
   case 1: ^
   include/linux/signal.h:177:1: warning: unannotated fall-through between switch labels
   _SIG_SET_OP(signotset, _sig_not)
   ^
   include/linux/signal.h:167:2: note: expanded from macro '_SIG_SET_OP'
   case 2: = ^
   include/linux/signal.h:177:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:169:2: note: expanded from macro '_SIG_SET_OP'
   case 1: = ^
   include/linux/signal.h:190:2: warning: unannotated fall-through between switch labels
   case 1: = 0;
   ^
   include/linux/signal.h:190:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: = 0;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:190:2: note: insert 'break;' to avoid fall-through
   case 1: = 0;
   ^
   break;
   include/linux/signal.h:203:2: warning: unannotated fall-through between switch labels
   case 1: = -1;
   ^
   In file included from kernel//locking/semaphore.c:34:
   In file included from include/linux/ftrace.h:11:
   In file included from include/linux/kallsyms.h:12:
   include/linux/mm.h:162:2: warning: unannotated fall-through between switch labels
   case 72:
   ^
   In file included from kernel//time/time.c:33:
   In file included from include/linux/syscalls.h:85:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:6:
   In file included from include/linux/ring_buffer.h:5:
>> include/linux/mm.h:162:2: warning: include/linux/signal.hunannotated fall-through between switch labels
   : case 72:203
   ^:
   2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: = -1;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:203:2: note: insert 'break;' to avoid fall-through
   case 1: = -1;
   ^
   break;
   include/linux/signal.h:233:2: warning: unannotated fall-through between switch labels
   case 1: ;
   ^
   include/linux/signal.hinclude/linux/mm.h:162:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 72:
   ^
   __attribute__((fallthrough));
   include/linux/mm.h:162:2: note: insert 'break;' to avoid fall-through
   case 72:
   ^
   break;
   include/linux/mm.h:164:2: warning: unannotated fall-through between switch labels
   case 64:
   ^
   include/linux/mm.h:164:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 64:
   ^
   __attribute__((fallthrough));
   include/linux/mm.h:164:2: note: insert 'break;' to avoid fall-through
   case 64:
   ^
   break;
   include/linux/mm.h:166:2: warning: unannotated fall-through between switch labels
   case 56:
   ^
   :233:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: ;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:233:2: note: insert 'break;' to avoid fall-through
   case 1: ;
   ^
   break;
   include/linux/signal.h:245:2: warning: unannotated fall-through between switch labels
   case 1: ;
   ^
   include/linux/mm.h:166:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 56:
   ^
   __attribute__((fallthrough));
   include/linux/mm.h:166:2: note: insert 'break;' to avoid fall-through
   case 56:
   ^
   break;
   include/linux/mm.h:162:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 72:
   ^
   __attribute__((fallthrough));
   include/linux/mm.h:162:2: note: insert 'break;' to avoid fall-through
   case 72:
   ^
   break;
   include/linux/mm.h:164:2: warning: unannotated fall-through between switch labels
   case 64:
   ^
   12 warnings generated.
   include/linux/signal.h:245:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 1: ;
   ^
   __attribute__((fallthrough));
   include/linux/signal.h:245:2: note: insert 'break;' to avoid fall-through
   case 1: ;
   ^
   break;
   1 warning generated.
   include/linux/mm.h:164:2: note: insert '__attribute__((fallthrough));' to silence this warning
   case 64:
   ^
   __attribute__((fallthrough));
   include/linux/mm.h:164:2: note: insert 'break;' to avoid fall-through
   case 64:
   ^
   break;
   include/linux/mm.h:166:2: warning: unannotated fall-through between switch labels
   case 56:
   ^
   In file included from kernel//sched/loadavg.c:9:
   In file included from kernel//sched/sched.h:11:
   In file included from include/linux/sched/cputime.h:5:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:147:1: warning: unannotated fall-through between switch labels
   _SIG_SET_BINOP(sigorsets, _sig_or)
   ^
   include/linux/signal.h:133:2: note: expanded from macro '_SIG_SET_BINOP'
   case 2: ^
   include/linux/signal.h:147:1: warning: unannotated fall-through between switch labels
   include/linux/signal.h:137:2: note: expanded from macro '_SIG_SET_BINOP'
   case 1: ^
   include/linux/signal.h:150:1: warning: unannotated fall-through between switch labels
   _SIG_SET_BINOP(sigandsets, _sig_and)

vim +150 include/linux/signal.h

^1da177e4c3f41 Linus Torvalds 2005-04-16  148  
^1da177e4c3f41 Linus Torvalds 2005-04-16  149  #define _sig_and(x,y)	((x) & (y))
^1da177e4c3f41 Linus Torvalds 2005-04-16 @150  _SIG_SET_BINOP(sigandsets, _sig_and)
^1da177e4c3f41 Linus Torvalds 2005-04-16  151  

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

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

  parent reply	other threads:[~2020-06-30 10:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-29 17:30 [PATCH] mm: remove the redundancy code Su Hui
2020-06-29 18:50 ` David Rientjes
2020-06-29 20:24   ` Mike Rapoport
2020-06-30  2:02     ` 苏辉
2020-06-30  2:06       ` David Rientjes
2020-06-30  2:37         ` 苏辉
2020-06-30 10:28 ` kernel test robot [this message]
2020-06-30 10:28   ` kernel test robot
2020-06-30 11:52 ` kernel test robot
2020-06-30 11:52   ` kernel test robot
2020-06-30 12:39 ` David Hildenbrand
2020-06-30 13:49   ` 苏辉

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=202006301807.ODS5tScL%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.