lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204062028.JBkAuoVN-lkp@intel.com>
Date:   Wed, 6 Apr 2022 20:44:43 +0800
From:   kernel test robot <lkp@...el.com>
To:     Kees Cook <keescook@...omium.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Arnd Bergmann <arnd@...db.de>,
        Nathan Chancellor <nathan@...nel.org>,
        Nick Desaulniers <ndesaulniers@...gle.com>,
        Masahiro Yamada <masahiroy@...nel.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>
Subject: drivers/macintosh/via-pmu.c:1758: undefined reference to
 `rtc_tm_to_time64'

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@...el.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@...egraphics.com.au>
:::::: CC: Michael Ellerman <mpe@...erman.id.au>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ