From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gnuweeb.org (Postfix) with ESMTPS id AC0E983016 for ; Sun, 5 Feb 2023 03:55:10 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=iO8EG5IW; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675569310; x=1707105310; h=date:from:to:cc:subject:message-id:mime-version; bh=ALu+o6UuED/MRLJEhc6XmS+16V6T+Hk4t+Tw9XmeJ5Y=; b=iO8EG5IWpV05W+6WBdaPagbzWTdJeQLg9Xip42Pw79vNnqKKD0QnnjOW 9K95E+o+O0Z4pTi24phfJvAPtZMMFPPUWJwt8iFLeq/OVXY+y1bavEfZt rDCjZJ2SAxZRVMtKlQ96JK4Q1lzaKBgXU9RLIHakreoKfxX0I+L5Lmhtp vLNEqSoS7ofLSr9JrwP7tdqCuiHX20tvOb0/151FT1zO1yjuAAy1RIvJW yhXU8LgwBpfaw+LwAKlXNG1y0cNecggBP4fn3M/yrgOe7IQNzdC9XVIqG M9Tg7aMwERKKKo36lPrs38Uch/m6wQcpYGK7roKFhO6Y4XsaTWTbNxCf7 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10611"; a="415231663" X-IronPort-AV: E=Sophos;i="5.97,274,1669104000"; d="scan'208";a="415231663" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2023 19:55:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10611"; a="643677814" X-IronPort-AV: E=Sophos;i="5.97,274,1669104000"; d="scan'208";a="643677814" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 04 Feb 2023 19:55:07 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pOW7O-0001ie-34; Sun, 05 Feb 2023 03:55:06 +0000 Date: Sun, 5 Feb 2023 11:54:35 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: oe-kbuild-all@lists.linux.dev Subject: [ammarfaizi2-block:google/android/kernel/common/android13-5.15-arcvm 94/138] kernel/time/timekeeping.c:1658:9: error: 'boot_delta' undeclared Message-ID: <202302051131.Q3oSuBVW-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: Hi Hikaru, FYI, the error/warning still remains. tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android13-5.15-arcvm head: 573344b8d137d3584c918c7efa8d4b949d0414d4 commit: 7833de03e339af4c25a58b24cc29ad75b98672fc [94/138] CHROMIUM: timekeeping: Remove CLOCK_BOOTTIME hack except for ARM64 config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20230205/202302051131.Q3oSuBVW-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.1.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://github.com/ammarfaizi2/linux-block/commit/7833de03e339af4c25a58b24cc29ad75b98672fc git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android13-5.15-arcvm git checkout 7833de03e339af4c25a58b24cc29ad75b98672fc # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): kernel/time/timekeeping.c: In function 'timekeeping_init': >> kernel/time/timekeeping.c:1658:9: error: 'boot_delta' undeclared (first use in this function) 1658 | boot_delta.tv_sec = 5; | ^~~~~~~~~~ kernel/time/timekeeping.c:1658:9: note: each undeclared identifier is reported only once for each function it appears in vim +/boot_delta +1658 kernel/time/timekeeping.c 1610 1611 /* 1612 * timekeeping_init - Initializes the clocksource and common timekeeping values 1613 */ 1614 void __init timekeeping_init(void) 1615 { 1616 struct timespec64 wall_time, boot_offset, wall_to_mono; 1617 struct timekeeper *tk = &tk_core.timekeeper; 1618 struct clocksource *clock; 1619 unsigned long flags; 1620 1621 read_persistent_wall_and_boot_offset(&wall_time, &boot_offset); 1622 if (timespec64_valid_settod(&wall_time) && 1623 timespec64_to_ns(&wall_time) > 0) { 1624 persistent_clock_exists = true; 1625 } else if (timespec64_to_ns(&wall_time) != 0) { 1626 pr_warn("Persistent clock returned invalid value"); 1627 wall_time = (struct timespec64){0}; 1628 } 1629 1630 if (timespec64_compare(&wall_time, &boot_offset) < 0) 1631 boot_offset = (struct timespec64){0}; 1632 1633 /* 1634 * We want set wall_to_mono, so the following is true: 1635 * wall time + wall_to_mono = boot time 1636 */ 1637 wall_to_mono = timespec64_sub(boot_offset, wall_time); 1638 1639 raw_spin_lock_irqsave(&timekeeper_lock, flags); 1640 write_seqcount_begin(&tk_core.seq); 1641 ntp_init(); 1642 1643 clock = clocksource_default_clock(); 1644 if (clock->enable) 1645 clock->enable(clock); 1646 tk_setup_internals(tk, clock); 1647 1648 tk_set_xtime(tk, &wall_time); 1649 tk->raw_sec = 0; 1650 1651 tk_set_wall_to_mono(tk, wall_to_mono); 1652 1653 #ifdef CONFIG_ARM64 1654 // TODO(b/162547792): Remove following CLOCK_BOOTTIME adjustment 1655 // once the underlying issue is resolved. 1656 // The gap added here is larger enough than 1657 // MIN_DELTA_BETWEEN_CLOCKS_MS which is expected by CTS Verifier. > 1658 boot_delta.tv_sec = 5; 1659 boot_delta.tv_nsec = 0; 1660 tk_update_sleep_time(tk, timespec64_to_ktime(boot_delta)); 1661 #endif 1662 1663 timekeeping_update(tk, TK_MIRROR | TK_CLOCK_WAS_SET); 1664 1665 write_seqcount_end(&tk_core.seq); 1666 raw_spin_unlock_irqrestore(&timekeeper_lock, flags); 1667 } 1668 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests