Skip to contentSkip to conversation

drivers/rtc/rtc-at91rm9200.c:561:13: warning: 'at91_rtc_remove' defined but not used

PATCH kernel test robot 1 participant 1 message Oct 15, 2023

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next
head:   dc71c03b0a2937545d2c6ff89d2275890a309618
commit: 48bc8830fbed98dff905fdbcaa424d59bb312043 [10/25] rtc: at91rm9200: Convert to platform remove callback returning void
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20231016/[email protected]/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231016/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/rtc/rtc-at91rm9200.c:561:13: warning: 'at91_rtc_remove' defined but not used [-Wunused-function]

561 | static void at91_rtc_remove(struct platform_device *pdev)
| ^~~~~~~~~~~~~~~

vim +/at91_rtc_remove +561 drivers/rtc/rtc-at91rm9200.c

557
558 /*
559 * Disable and remove the RTC driver
560 */

 > 561	static void at91_rtc_remove(struct platform_device *pdev)

562 {
563 /* Disable all interrupts */
564 at91_rtc_write_idr(AT91_RTC_ACKUPD | AT91_RTC_ALARM |
565 AT91_RTC_SECEV | AT91_RTC_TIMEV |
566 AT91_RTC_CALEV);
567
568 clk_disable_unprepare(sclk);
569 }
570

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki