From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BA32C07CB1 for ; Mon, 27 Nov 2023 15:23:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233866AbjK0PXb (ORCPT ); Mon, 27 Nov 2023 10:23:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbjK0PX1 (ORCPT ); Mon, 27 Nov 2023 10:23:27 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E4EFC3 for ; Mon, 27 Nov 2023 07:23:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701098613; x=1732634613; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=EnDvBPuazEfSjeWkUtPf7XPfvKhlYUr9bvcl9ELm30c=; b=SxP4VtLIdfCaQMXpI3E6pV7rw3Rn+FlBO5wV7QWJ59XqZeBg4TjlTk33 nrzccdTJaDFUccjNsxx4b7sO1vT4CP70b6tSqyLzEHEkvAqDbhVlpKiI2 xmj6bFeLfpv+2ai/Sxvpefj7iCrusWj9hQozMREpPYmPgIgjr752kHaCl 5KIk3VTJ8yoIlB/IYNGuSEalNDZnoKVHLhelkSSC4DxozTKxNugFuEMvW 7QVi75mP7bX5VQb5VZaQUaWBdNPmSonSwU89TP7Fpj7yWic9dU9bYtWVH RS2uSI4DNlNC8h9OIr7UNTk+AXR5eVnu4O6sMdbfrKZ0uGjiPinqj8lNS g==; X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="5976922" X-IronPort-AV: E=Sophos;i="6.04,231,1695711600"; d="scan'208";a="5976922" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 07:23:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="744596165" X-IronPort-AV: E=Sophos;i="6.04,231,1695711600"; d="scan'208";a="744596165" Received: from lkp-server01.sh.intel.com (HELO d584ee6ebdcc) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 27 Nov 2023 07:23:29 -0800 Received: from kbuild by d584ee6ebdcc with local (Exim 4.96) (envelope-from ) id 1r7dSJ-0006Me-23; Mon, 27 Nov 2023 15:23:27 +0000 Date: Mon, 27 Nov 2023 23:22:33 +0800 From: kernel test robot To: Peng Liu Cc: oe-kbuild-all@lists.linux.dev, frederic@kernel.org, tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, liupeng17@lenovo.com Subject: Re: [PATCH 1/2] tick/nohz: Remove duplicate between tick_nohz_switch_to_nohz() and tick_setup_sched_timer() Message-ID: <202311272126.Q2ZeFW5e-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peng, kernel test robot noticed the following build errors: [auto build test ERROR on tip/timers/core] [also build test ERROR on linus/master v6.7-rc3 next-20231127] [cannot apply to tip/timers/nohz] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Peng-Liu/tick-nohz-Remove-duplicate-between-tick_nohz_lowres_handler-and-tick_nohz_highres_handler/20231127-163637 base: tip/timers/core patch link: https://lore.kernel.org/r/TYCP286MB21464B3653B956AF71806931C6BDA%40TYCP286MB2146.JPNP286.PROD.OUTLOOK.COM patch subject: [PATCH 1/2] tick/nohz: Remove duplicate between tick_nohz_switch_to_nohz() and tick_setup_sched_timer() config: i386-buildonly-randconfig-004-20231127 (https://download.01.org/0day-ci/archive/20231127/202311272126.Q2ZeFW5e-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231127/202311272126.Q2ZeFW5e-lkp@intel.com/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 | Closes: https://lore.kernel.org/oe-kbuild-all/202311272126.Q2ZeFW5e-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/time/tick-sched.c: In function 'tick_setup_sched_timer': kernel/time/tick-sched.c:1546:44: error: 'tick_nohz_highres_handler' undeclared (first use in this function); did you mean 'tick_nohz_lowres_handler'? 1546 | ts->sched_timer.function = tick_nohz_highres_handler; | ^~~~~~~~~~~~~~~~~~~~~~~~~ | tick_nohz_lowres_handler kernel/time/tick-sched.c:1546:44: note: each undeclared identifier is reported only once for each function it appears in >> kernel/time/tick-sched.c:1552:13: error: 'sched_skew_tick' undeclared (first use in this function); did you mean 'scheduler_tick'? 1552 | if (sched_skew_tick) { | ^~~~~~~~~~~~~~~ | scheduler_tick vim +1552 kernel/time/tick-sched.c 62cf20b32aee4a Thomas Gleixner 2012-05-25 1533 de667c3b095eed Peng Liu 2023-11-27 1534 #if defined CONFIG_NO_HZ_COMMON || defined CONFIG_HIGH_RES_TIMERS 79bf2bb335b85d Thomas Gleixner 2007-02-16 1535 /** 79bf2bb335b85d Thomas Gleixner 2007-02-16 1536 * tick_setup_sched_timer - setup the tick emulation timer 79bf2bb335b85d Thomas Gleixner 2007-02-16 1537 */ de667c3b095eed Peng Liu 2023-11-27 1538 void tick_setup_sched_timer(int mode) 79bf2bb335b85d Thomas Gleixner 2007-02-16 1539 { 22127e93c587af Christoph Lameter 2014-08-17 1540 struct tick_sched *ts = this_cpu_ptr(&tick_cpu_sched); 79bf2bb335b85d Thomas Gleixner 2007-02-16 1541 ktime_t now = ktime_get(); 79bf2bb335b85d Thomas Gleixner 2007-02-16 1542 6c774377359923 Ingo Molnar 2023-09-28 1543 /* Emulate tick processing via per-CPU hrtimers: */ 902a9f9c509053 Sebastian Andrzej Siewior 2019-07-26 1544 hrtimer_init(&ts->sched_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD); de667c3b095eed Peng Liu 2023-11-27 1545 if (mode == NOHZ_MODE_HIGHRES) dba428a678c726 Frederic Weisbecker 2023-09-12 1546 ts->sched_timer.function = tick_nohz_highres_handler; 79bf2bb335b85d Thomas Gleixner 2007-02-16 1547 0de7611a1031f2 Ingo Molnar 2016-07-01 1548 /* Get the next period (per-CPU) */ cc584b213f252b Arjan van de Ven 2008-09-01 1549 hrtimer_set_expires(&ts->sched_timer, tick_init_jiffy_update()); 79bf2bb335b85d Thomas Gleixner 2007-02-16 1550 6c774377359923 Ingo Molnar 2023-09-28 1551 /* Offset the tick to avert 'jiffies_lock' contention. */ 5307c9556bc17e Mike Galbraith 2012-05-08 @1552 if (sched_skew_tick) { b9965449164299 Thomas Gleixner 2020-11-17 1553 u64 offset = TICK_NSEC >> 1; 5307c9556bc17e Mike Galbraith 2012-05-08 1554 do_div(offset, num_possible_cpus()); 5307c9556bc17e Mike Galbraith 2012-05-08 1555 offset *= smp_processor_id(); 5307c9556bc17e Mike Galbraith 2012-05-08 1556 hrtimer_add_expires_ns(&ts->sched_timer, offset); 5307c9556bc17e Mike Galbraith 2012-05-08 1557 } 5307c9556bc17e Mike Galbraith 2012-05-08 1558 b9965449164299 Thomas Gleixner 2020-11-17 1559 hrtimer_forward(&ts->sched_timer, now, TICK_NSEC); de667c3b095eed Peng Liu 2023-11-27 1560 if (mode == NOHZ_MODE_HIGHRES) 902a9f9c509053 Sebastian Andrzej Siewior 2019-07-26 1561 hrtimer_start_expires(&ts->sched_timer, HRTIMER_MODE_ABS_PINNED_HARD); de667c3b095eed Peng Liu 2023-11-27 1562 else de667c3b095eed Peng Liu 2023-11-27 1563 tick_program_event(hrtimer_get_expires(&ts->sched_timer), 1); de667c3b095eed Peng Liu 2023-11-27 1564 tick_nohz_activate(ts, mode); 79bf2bb335b85d Thomas Gleixner 2007-02-16 1565 } 3c4fbe5e01d7e5 Miao Xie 2008-08-20 1566 #endif /* HIGH_RES_TIMERS */ 79bf2bb335b85d Thomas Gleixner 2007-02-16 1567 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki