All of lore.kernel.org
 help / color / mirror / Atom feed
* include/linux/compiler_attributes.h:208:41: warning: attribute 'fallthrough' not preceding a case label or default label
@ 2021-05-10 16:51 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-10 16:51 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
TO: Hermann Lauer <Hermann.Lauer@iwr.uni-heidelberg.de>
CC: 0day robot <lkp@intel.com>
CC: Hermann.Lauer(a)uni-heidelberg.de

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210510-214807/Hermann-Lauer-uni-heidelberg-de/axp209-PMIC-setting-constant_charge_current-to-0-disables-battery-charging/20210421-171248
head:   3da345dce6430016b047ab98cecf82f56c74f2e8
commit: 3da345dce6430016b047ab98cecf82f56c74f2e8 power: supply: axp20x_battery: implement writeable status to enable/disable battery charging
date:   3 hours ago
:::::: branch date: 3 hours ago
:::::: commit date: 3 hours ago
config: nios2-randconfig-p002-20210510 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.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/3da345dce6430016b047ab98cecf82f56c74f2e8
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20210510-214807/Hermann-Lauer-uni-heidelberg-de/axp209-PMIC-setting-constant_charge_current-to-0-disables-battery-charging/20210421-171248
        git checkout 3da345dce6430016b047ab98cecf82f56c74f2e8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=nios2 

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/power/supply/axp20x_battery.c: In function 'axp20x_battery_set_prop':
   drivers/power/supply/axp20x_battery.c:473:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
     473 |   switch (val->intval) {
         |   ^~~~~~
   drivers/power/supply/axp20x_battery.c:484:2: note: here
     484 |  default:
         |  ^~~~~~~
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
>> include/linux/compiler_attributes.h:208:41: warning: attribute 'fallthrough' not preceding a case label or default label
     208 | # define fallthrough                    __attribute__((__fallthrough__))
         |                                         ^~~~~~~~~~~~~
   drivers/power/supply/axp20x_battery.c:482:3: note: in expansion of macro 'fallthrough'
     482 |   fallthrough;
         |   ^~~~~~~~~~~


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

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* include/linux/compiler_attributes.h:208:41: warning: attribute 'fallthrough' not preceding a case label or default label
@ 2021-05-10 16:20 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-10 16:20 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210510-214807/Hermann-Lauer-uni-heidelberg-de/axp209-PMIC-setting-constant_charge_current-to-0-disables-battery-charging/20210421-171248
head:   3da345dce6430016b047ab98cecf82f56c74f2e8
commit: 3da345dce6430016b047ab98cecf82f56c74f2e8 power: supply: axp20x_battery: implement writeable status to enable/disable battery charging
date:   3 hours ago
config: m68k-randconfig-r026-20210510 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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/3da345dce6430016b047ab98cecf82f56c74f2e8
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20210510-214807/Hermann-Lauer-uni-heidelberg-de/axp209-PMIC-setting-constant_charge_current-to-0-disables-battery-charging/20210421-171248
        git checkout 3da345dce6430016b047ab98cecf82f56c74f2e8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=m68k 

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/power/supply/axp20x_battery.c: In function 'axp20x_battery_set_prop':
   drivers/power/supply/axp20x_battery.c:473:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
     473 |   switch (val->intval) {
         |   ^~~~~~
   drivers/power/supply/axp20x_battery.c:484:2: note: here
     484 |  default:
         |  ^~~~~~~
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
>> include/linux/compiler_attributes.h:208:41: warning: attribute 'fallthrough' not preceding a case label or default label
     208 | # define fallthrough                    __attribute__((__fallthrough__))
         |                                         ^~~~~~~~~~~~~
   drivers/power/supply/axp20x_battery.c:482:3: note: in expansion of macro 'fallthrough'
     482 |   fallthrough;
         |   ^~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
   Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
   Selected by
   - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC


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

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-10 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 16:51 include/linux/compiler_attributes.h:208:41: warning: attribute 'fallthrough' not preceding a case label or default label kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-05-10 16:20 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.