All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kees Cook <keescook@chromium.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Arnd Bergmann <arnd@arndb.de>,
	Nathan Chancellor <nathan@kernel.org>,
	Nick Desaulniers <ndesaulniers@google.com>,
	Masahiro Yamada <masahiroy@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: drivers/macintosh/via-pmu.c:1758: undefined reference to `rtc_tm_to_time64'
Date: Wed, 6 Apr 2022 20:44:43 +0800	[thread overview]
Message-ID: <202204062028.JBkAuoVN-lkp@intel.com> (raw)

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


                 reply	other threads:[~2022-04-06 12:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202204062028.JBkAuoVN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=kbuild-all@lists.01.org \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=masahiroy@kernel.org \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.