linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* drivers/macintosh/via-pmu.c:1758: undefined reference to `rtc_tm_to_time64'
@ 2022-04-06 12:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-06 12:44 UTC (permalink / raw)
  To: Kees Cook
  Cc: kbuild-all, linux-kernel, Arnd Bergmann, Nathan Chancellor,
	Nick Desaulniers, Masahiro Yamada, Andrew Morton,
	Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3e732ebf7316ac83e8562db7e64cc68aec390a18
commit: f9b3cd24578401e7a392974b3353277286e49cee Kconfig.debug: make DEBUG_INFO selectable from a choice
date:   13 days ago
config: m68k-randconfig-p001-20220406 (https://download.01.org/0day-ci/archive/20220406/202204062028.JBkAuoVN-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f9b3cd24578401e7a392974b3353277286e49cee
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout f9b3cd24578401e7a392974b3353277286e49cee
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   m68k-linux-ld: drivers/macintosh/via-pmu.o: in function `pmu_set_rtc_time':
>> drivers/macintosh/via-pmu.c:1758: undefined reference to `rtc_tm_to_time64'
   m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `input_report_key':
>> include/linux/input.h:425: undefined reference to `input_event'
   m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `input_report_switch':
   include/linux/input.h:445: undefined reference to `input_event'
   m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `via_pmu_event_init':
>> drivers/macintosh/via-pmu-event.c:38: undefined reference to `input_allocate_device'
>> m68k-linux-ld: drivers/macintosh/via-pmu-event.c:53: undefined reference to `input_register_device'
>> m68k-linux-ld: drivers/macintosh/via-pmu-event.c:55: undefined reference to `input_free_device'
   m68k-linux-ld: drivers/macintosh/via-cuda.o: in function `cuda_set_rtc_time':
   drivers/macintosh/via-cuda.c:796: undefined reference to `rtc_tm_to_time64'


vim +1758 drivers/macintosh/via-pmu.c

0792a2c8e0bbda Finn Thain 2018-09-11  1752  
0792a2c8e0bbda Finn Thain 2018-09-11  1753  int pmu_set_rtc_time(struct rtc_time *tm)
0792a2c8e0bbda Finn Thain 2018-09-11  1754  {
0792a2c8e0bbda Finn Thain 2018-09-11  1755  	u32 now;
0792a2c8e0bbda Finn Thain 2018-09-11  1756  	struct adb_request req;
0792a2c8e0bbda Finn Thain 2018-09-11  1757  
0792a2c8e0bbda Finn Thain 2018-09-11 @1758  	now = lower_32_bits(rtc_tm_to_time64(tm) + RTC_OFFSET);
0792a2c8e0bbda Finn Thain 2018-09-11  1759  	if (pmu_request(&req, NULL, 5, PMU_SET_RTC,
0792a2c8e0bbda Finn Thain 2018-09-11  1760  	                now >> 24, now >> 16, now >> 8, now) < 0)
0792a2c8e0bbda Finn Thain 2018-09-11  1761  		return -ENXIO;
0792a2c8e0bbda Finn Thain 2018-09-11  1762  	pmu_wait_complete(&req);
0792a2c8e0bbda Finn Thain 2018-09-11  1763  	if (req.reply_len != 0)
0792a2c8e0bbda Finn Thain 2018-09-11  1764  		pr_err("%s: got %d byte reply\n", __func__, req.reply_len);
0792a2c8e0bbda Finn Thain 2018-09-11  1765  	return 0;
0792a2c8e0bbda Finn Thain 2018-09-11  1766  }
0792a2c8e0bbda Finn Thain 2018-09-11  1767  

:::::: The code at line 1758 was first introduced by commit
:::::: 0792a2c8e0bbda3605b8d42c6b9635be7b19982a macintosh: Use common code to access RTC

:::::: TO: Finn Thain <fthain@telegraphics.com.au>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-06 12:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-06 12:44 drivers/macintosh/via-pmu.c:1758: undefined reference to `rtc_tm_to_time64' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).