tree:
https://github.com/0day-ci/linux/commits/UPDATE-20210510-214807/Hermann-L...
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/3da345dce6430016b047ab98cecf82f56...
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(a)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-At...
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@lists.01.org