driverdev-devel.linuxdriverproject.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Leon Krieg <info@madcow.dev>,
	gregkh@linuxfoundation.org,
	driverdev-devel@linuxdriverproject.org
Cc: kbuild-all@lists.01.org
Subject: Re: [PATCH] staging/ks7010: Fix coding style problems [Version 2]
Date: Tue, 17 Aug 2021 06:00:42 +0800	[thread overview]
Message-ID: <202108170515.51oGWruN-lkp@intel.com> (raw)
In-Reply-To: <20210816180447.GA17851@mad-cln-mothership-1.local>

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

Hi Leon,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on staging/staging-testing]

url:    https://github.com/0day-ci/linux/commits/Leon-Krieg/staging-ks7010-Fix-coding-style-problems-Version-2/20210817-020702
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git ff63261978ee1f00758f447d63276a6f180a81dc
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
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
        # https://github.com/0day-ci/linux/commit/be523ea1038288a8b2c8e5cf10bb2e6a02830a0a
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Leon-Krieg/staging-ks7010-Fix-coding-style-problems-Version-2/20210817-020702
        git checkout be523ea1038288a8b2c8e5cf10bb2e6a02830a0a
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/staging/ks7010/

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

All errors (new ones prefixed by >>):

   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   drivers/staging/ks7010/ks_wlan_net.c: In function 'ks_wlan_set_freq':
>> include/linux/compiler_attributes.h:210:41: error: invalid use of attribute 'fallthrough'
     210 | # define fallthrough                    __attribute__((__fallthrough__))
         |                                         ^~~~~~~~~~~~~
   drivers/staging/ks7010/ks_wlan_net.c:191:17: note: in expansion of macro 'fallthrough'
     191 |                 fallthrough;
         |                 ^~~~~~~~~~~


vim +/fallthrough +210 include/linux/compiler_attributes.h

294f69e662d1570 Joe Perches   2019-10-05  197  
294f69e662d1570 Joe Perches   2019-10-05  198  /*
294f69e662d1570 Joe Perches   2019-10-05  199   * Add the pseudo keyword 'fallthrough' so case statement blocks
294f69e662d1570 Joe Perches   2019-10-05  200   * must end with any of these keywords:
294f69e662d1570 Joe Perches   2019-10-05  201   *   break;
294f69e662d1570 Joe Perches   2019-10-05  202   *   fallthrough;
ca0760e7d79e2bb Wei Ming Chen 2021-05-06  203   *   continue;
294f69e662d1570 Joe Perches   2019-10-05  204   *   goto <label>;
294f69e662d1570 Joe Perches   2019-10-05  205   *   return [expression];
294f69e662d1570 Joe Perches   2019-10-05  206   *
294f69e662d1570 Joe Perches   2019-10-05  207   *  gcc: https://gcc.gnu.org/onlinedocs/gcc/Statement-Attributes.html#Statement-Attributes
294f69e662d1570 Joe Perches   2019-10-05  208   */
294f69e662d1570 Joe Perches   2019-10-05  209  #if __has_attribute(__fallthrough__)
294f69e662d1570 Joe Perches   2019-10-05 @210  # define fallthrough                    __attribute__((__fallthrough__))
294f69e662d1570 Joe Perches   2019-10-05  211  #else
294f69e662d1570 Joe Perches   2019-10-05  212  # define fallthrough                    do {} while (0)  /* fallthrough */
a3f8a30f3f0079c Miguel Ojeda  2018-08-30  213  #endif
a3f8a30f3f0079c Miguel Ojeda  2018-08-30  214  

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

[-- Attachment #3: Type: text/plain, Size: 169 bytes --]

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

  parent reply	other threads:[~2021-08-16 22:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-16 18:04 [PATCH] staging/ks7010: Fix coding style problems [Version 2] Leon Krieg
2021-08-16 19:18 ` Greg KH
2021-08-16 21:11 ` kernel test robot
2021-08-16 22:00 ` kernel test robot [this message]
2021-08-23 15:32 ` Dan Carpenter

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=202108170515.51oGWruN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=driverdev-devel@linuxdriverproject.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=info@madcow.dev \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).