Re: [PATCH 4/7] rtc: m41t93: Add alarm support
From: kernel test robot <hidden>
Date: 2025-09-04 05:08:07
Also in:
linux-rtc, lkml, llvm, oe-kbuild-all
Hi Akhilesh, kernel test robot noticed the following build warnings: [auto build test WARNING on abelloni/rtc-next] [also build test WARNING on linus/master v6.17-rc4 next-20250903] [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/Akhilesh-Patil/rtc-m41t93-add-device-tree-support/20250903-223155 base: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next patch link: https://lore.kernel.org/r/4f78f8fa113d4262e162972f5c15155410a64e8b.1756908788.git.akhilesh%40ee.iitb.ac.in patch subject: [PATCH 4/7] rtc: m41t93: Add alarm support config: loongarch-randconfig-002-20250904 (https://download.01.org/0day-ci/archive/20250904/202509041246.7GqISV63-lkp@intel.com/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 2e122990391b2ba062e6308a12cfedf7206270ba) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250904/202509041246.7GqISV63-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 [off-list ref] | Closes: https://lore.kernel.org/oe-kbuild-all/202509041246.7GqISV63-lkp@intel.com/ (local) All warnings (new ones prefixed by >>):
quoted
drivers/rtc/rtc-m41t93.c:244:3: warning: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551455 to 4294967135 [-Wconstant-conversion]
243 | val = enabled ? M41T93_BIT_A1IE | M41T93_BIT_ABE :
| ~
244 | ~(M41T93_BIT_A1IE | M41T93_BIT_ABE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +244 drivers/rtc/rtc-m41t93.c
236
237 static int m41t93_alarm_irq_enable(struct device *dev, unsigned int enabled)
238 {
239 struct m41t93_data *m41t93 = dev_get_drvdata(dev);
240 unsigned int val;
241 int ret;
242
243 val = enabled ? M41T93_BIT_A1IE | M41T93_BIT_ABE :
> 244 ~(M41T93_BIT_A1IE | M41T93_BIT_ABE);
245
246 ret = regmap_update_bits(m41t93->regmap, M41T93_REG_AL1_MONTH,
247 M41T93_BIT_A1IE | M41T93_BIT_ABE, val);
248 if (ret)
249 return ret;
250
251 return 0;
252 }
253
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki