[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202308300133.jtLeSGia-lkp@intel.com>
Date: Wed, 30 Aug 2023 02:00:34 +0800
From: kernel test robot <lkp@...el.com>
To: Fabrice Gasnier <fabrice.gasnier@...s.st.com>,
william.gray@...aro.org, lee@...nel.org
Cc: oe-kbuild-all@...ts.linux.dev, alexandre.torgue@...s.st.com,
fabrice.gasnier@...s.st.com, linux-iio@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 8/8] counter: stm32-timer-cnt: add support for events
Hi Fabrice,
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master]
[also build test WARNING on v6.5 next-20230829]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Fabrice-Gasnier/counter-chrdev-fix-getting-array-extensions/20230829-230111
base: linus/master
patch link: https://lore.kernel.org/r/20230829134029.2402868-9-fabrice.gasnier%40foss.st.com
patch subject: [PATCH 8/8] counter: stm32-timer-cnt: add support for events
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230830/202308300133.jtLeSGia-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230830/202308300133.jtLeSGia-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308300133.jtLeSGia-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/counter/stm32-timer-cnt.c: In function 'stm32_count_watch_validate':
>> drivers/counter/stm32-timer-cnt.c:524:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
524 | if (watch->channel >= priv->nchannels) {
| ^
drivers/counter/stm32-timer-cnt.c:528:9: note: here
528 | case COUNTER_EVENT_OVERFLOW_UNDERFLOW:
| ^~~~
vim +524 drivers/counter/stm32-timer-cnt.c
516
517 static int stm32_count_watch_validate(struct counter_device *counter,
518 const struct counter_watch *watch)
519 {
520 struct stm32_timer_cnt *const priv = counter_priv(counter);
521
522 switch (watch->event) {
523 case COUNTER_EVENT_CAPTURE:
> 524 if (watch->channel >= priv->nchannels) {
525 dev_err(counter->parent, "Invalid channel %d\n", watch->channel);
526 return -EINVAL;
527 }
528 case COUNTER_EVENT_OVERFLOW_UNDERFLOW:
529 return 0;
530 default:
531 return -EINVAL;
532 }
533 }
534
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists