From: kbuild test robot <lkp@intel.com>
To: Shawn Landden <shawn@git.icu>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
"Gustavo A . R . Silva" <gustavo@embeddedor.com>,
Joe Perches <joe@perches.com>, Andy Whitcroft <apw@canonical.com>,
Shawn Landden <shawn@git.icu>
Subject: Re: [PATCH] Use fall-through attribute rather than magic comments
Date: Mon, 18 Mar 2019 20:30:07 +0800 [thread overview]
Message-ID: <201903182034.UO1g2tNv%lkp@intel.com> (raw)
In-Reply-To: <20190316033841.7659-1-shawn@git.icu>
[-- Attachment #1: Type: text/plain, Size: 3334 bytes --]
Hi Shawn,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.1-rc1]
[cannot apply to next-20190318]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Shawn-Landden/Use-fall-through-attribute-rather-than-magic-comments/20190318-194548
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=xtensa
All errors (new ones prefixed by >>):
In file included from include/linux/compiler_types.h:59,
from <command-line>:
drivers/infiniband/hw/i40iw/i40iw_main.c: In function 'i40iw_deinit_device':
include/linux/compiler_attributes.h:261:43: warning: attribute 'fallthrough' not preceding a case label or default label
# define __fallthrough __attribute__((__fallthrough__))
^~~~~~~~~~~~~
drivers/infiniband/hw/i40iw/i40iw_main.c:1498:3: note: in expansion of macro '__fallthrough'
__fallthrough;
^~~~~~~~~~~~~
>> include/linux/compiler_attributes.h:261:43: error: invalid use of attribute 'fallthrough'
# define __fallthrough __attribute__((__fallthrough__))
^~~~~~~~~~~~~
drivers/infiniband/hw/i40iw/i40iw_main.c:1499:3: note: in expansion of macro '__fallthrough'
__fallthrough;
^~~~~~~~~~~~~
--
In file included from include/linux/compiler_types.h:59,
from <command-line>:
drivers/infiniband//hw/i40iw/i40iw_main.c: In function 'i40iw_deinit_device':
include/linux/compiler_attributes.h:261:43: warning: attribute 'fallthrough' not preceding a case label or default label
# define __fallthrough __attribute__((__fallthrough__))
^~~~~~~~~~~~~
drivers/infiniband//hw/i40iw/i40iw_main.c:1498:3: note: in expansion of macro '__fallthrough'
__fallthrough;
^~~~~~~~~~~~~
>> include/linux/compiler_attributes.h:261:43: error: invalid use of attribute 'fallthrough'
# define __fallthrough __attribute__((__fallthrough__))
^~~~~~~~~~~~~
drivers/infiniband//hw/i40iw/i40iw_main.c:1499:3: note: in expansion of macro '__fallthrough'
__fallthrough;
^~~~~~~~~~~~~
vim +/fallthrough +261 include/linux/compiler_attributes.h
255
256 /*
257 * gcc: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-fallthrough
258 * gcc: https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
259 */
260 #if __has_attribute(__fallthrough__)
> 261 # define __fallthrough __attribute__((__fallthrough__))
262 #else
263 # define __fallthrough
264 #endif
265
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 56764 bytes --]
next prev parent reply other threads:[~2019-03-18 12:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-16 3:38 Shawn Landden
2019-03-16 8:08 ` Joe Perches
2019-03-16 21:42 ` Gustavo A. R. Silva
2019-03-18 12:22 ` kbuild test robot
2019-03-18 12:30 ` kbuild test robot [this message]
2019-03-19 10:34 ` kbuild test robot
2019-03-19 10:34 ` [PATCH] fix semicolon.cocci warnings kbuild test robot
2019-06-17 15:56 ` [PATCH] Use fall-through attribute rather than magic comments Pavel Machek
2019-06-17 16:25 ` Joe Perches
2019-06-17 16:41 ` David Laight
2019-06-18 7:34 ` Pavel Machek
2019-06-18 9:30 ` Joe Perches
2019-06-18 10:45 ` Pavel Machek
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=201903182034.UO1g2tNv%lkp@intel.com \
--to=lkp@intel.com \
--cc=apw@canonical.com \
--cc=gustavo@embeddedor.com \
--cc=joe@perches.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shawn@git.icu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®