Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp378639rdh; Tue, 13 Feb 2024 22:25:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUMfu35f/Ew9sw459CwUqbYnUcquJdv/6f+Ow+GAMVDHA1pXqxqHpJGJx1jM4JosTxVIkDi9FVvDDeHXv47Y8hIXJagO1pk4IwnVph+Qg== X-Google-Smtp-Source: AGHT+IHB6h8O8/tcczNsmiE/HJ/aQzgP7ey2qHSsRi3sGl06yAe+LhwWdHAFKBK5gU6DG3FLN8iI X-Received: by 2002:ac8:5790:0:b0:42c:5f4d:1e5a with SMTP id v16-20020ac85790000000b0042c5f4d1e5amr1765392qta.11.1707891940837; Tue, 13 Feb 2024 22:25:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707891940; cv=pass; d=google.com; s=arc-20160816; b=rCUpMKt0Yb+Zr9rnFdSpI+6+Ptd1h4VxOF+pdAMIUeCPfnfm3kMz1KTSVEtQ7xfwEj WwI/ZGiKqpCjIQ4JDWl1Bngsl2KUkJA2xXrDBVkpfMef8EmqDP/gY7hJ9Ueyr+1DkgXx HpYbW7+skk3mHPTNryfjRHiaRZLXB5WHgWg0hgTfxidU79D06niBWditHAKAeDRlDaUj PNDO2QeQvx9RzjZuAtQU7oE2EWuSy4lVGxa7WJenoEtp25onxuTUvTWNhtFf13/hpe3W SlMif8C3RQpWotbSDA5lWz9gNrBnM8WzQegPkaA1c+R9E90D2YVlgIRUDvDMmGGSWpq5 XbzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=oVQZ44q+DfE2Xf9K6qFydaXNBn5/9ADE5jDZhZRmBtk=; fh=bb+B66oqLVXZxkONJ6cJTrZhg4oNMgXTUQBRq3aBNGw=; b=YgCO2ZnrpuvpcjJmsb5yMiUfLh6Cgx98LxWhSKKKv+wHn/nEANjcwt8wiaW7McWpzB ptS2gBLNw0l7Vaya/BRglsY3IWqsFViUnLcIwUvZAi+L1mlUeNSWixzT2b5tyS5wCmU5 HDb+cH1UzQwZWMqTr37Tn+3Xe1KBfyBE3rS9OCbmzqprVhMzzzBUF3pLLVjou+lmrbEY +JinzC1/p0x7bqcAI/tpTMqQr+aFx+p6Bjrl5m9BZhEBYv7dlQo0piARlTnNlaQ2QXja fdGGCNO+25kUAqJrnrh1kzeJsSRYwnDoF0K2Y6rNgX3I30Z+G09FI13dwr19Srk2ZNXd s8Sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EZE0FCLB; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-64782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCXZV7YTioGhp9ms2jnSEl1jymXJoj5zBEk39u9nfTrASLeBmNs/lYzARzrIrfnoGPfFDmY0yB+To8JPw/vKrUYbLVu7VaVeheOGYDnuRg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t11-20020a05622a01cb00b0042da7c0f3f5si4615240qtw.703.2024.02.13.22.25.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 22:25:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EZE0FCLB; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-64782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 441CE1C20DF0 for ; Wed, 14 Feb 2024 06:25:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E557A11705; Wed, 14 Feb 2024 06:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EZE0FCLB" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDF13111AD for ; Wed, 14 Feb 2024 06:25:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707891921; cv=none; b=f/jHzX4xYW3SLIsGJD38kzjjQQif/OFtF+e1z2+dC+zNrYiqrTYnvYVlkfp67SNVIy9YNIjC6NOVMyE0RBSrqISB35UNXlpvkV5Sx8b3/o0RctdVhdG21rPDBGDjWl6q6kcoywS5juppDhKsb5EnAKBWpx44CrtS5pr8CQGmOWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707891921; c=relaxed/simple; bh=JCLQwyKKczURua+OeVxn90sXLdCKa2iAwXHB5Pscyns=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Rmyf7OLoyt5E7a6PWccCsWy2FhYflkIZL9ynK7lQYKQ4oPdWPSTSZqKhkNMY2d1GPYcY2W4rd4XIaZSNAb+cAMS+0Po3UqH7kvyw2SbBBum2APXur0vZvC8wtfNwCGNK9gtTeWU93BOPXdhXdpdpZvghCvOznezxeaDtwYvGjVU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=EZE0FCLB; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707891919; x=1739427919; h=date:from:to:cc:subject:message-id:mime-version; bh=JCLQwyKKczURua+OeVxn90sXLdCKa2iAwXHB5Pscyns=; b=EZE0FCLBlKpUzc3X7S9cQGf3i7qGTFNM3hfyBmDJJSdBx2azdm7UPFJ1 K2K3qY6uldVPczV1Wv3tz7ELdhrA1yr4XnFcEGv8GX9qQLbDo3gN2Lj5H 3i7oHbvQ/IqVPHXxRivaIcOPImA/KIB9sZJilp0G+apIfdvfzJeZ8mpWa B9Ju3IvH/7SVPeiijf3ZLCj1H2DP/o1/yx/H9fbpmYHXCvukMwDtqXAnV leEPrqjiIpzjb0C5cwl2YKK3L3kEN+IKtolB1DGxXl8Mo74IfwgyMhf3q AgeSp2Cd5CpTrGYf2iAHtR7ODeb0Hrfb2lo8H374XHXu434yQKcFqlGJz A==; X-IronPort-AV: E=McAfee;i="6600,9927,10982"; a="1794453" X-IronPort-AV: E=Sophos;i="6.06,159,1705392000"; d="scan'208";a="1794453" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2024 22:25:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,159,1705392000"; d="scan'208";a="7754944" Received: from lkp-server01.sh.intel.com (HELO 01f0647817ea) ([10.239.97.150]) by orviesa005.jf.intel.com with ESMTP; 13 Feb 2024 22:25:16 -0800 Received: from kbuild by 01f0647817ea with local (Exim 4.96) (envelope-from ) id 1ra8hm-0008XA-09; Wed, 14 Feb 2024 06:25:14 +0000 Date: Wed, 14 Feb 2024 14:24:25 +0800 From: kernel test robot To: Costa Shulyupin Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Waiman Long , Frederic Weisbecker Subject: [tip:timers/core 3/3] kernel/time/hrtimer.c:2224:56: error: implicit declaration of function 'housekeeping' Message-ID: <202402141402.ktGAGpFN-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core head: 86342554e102b0d18d50abec43d40f4fc92f1993 commit: 86342554e102b0d18d50abec43d40f4fc92f1993 [3/3] hrtimer: Select housekeeping CPU during migration config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20240214/202402141402.ktGAGpFN-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240214/202402141402.ktGAGpFN-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/202402141402.ktGAGpFN-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/time/hrtimer.c:120:35: warning: initialized field overwritten [-Woverride-init] 120 | [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME, | ^~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:120:35: note: (near initialization for 'hrtimer_clock_to_base_table[0]') kernel/time/hrtimer.c:121:35: warning: initialized field overwritten [-Woverride-init] 121 | [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC, | ^~~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:121:35: note: (near initialization for 'hrtimer_clock_to_base_table[1]') kernel/time/hrtimer.c:122:35: warning: initialized field overwritten [-Woverride-init] 122 | [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME, | ^~~~~~~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:122:35: note: (near initialization for 'hrtimer_clock_to_base_table[7]') kernel/time/hrtimer.c:123:35: warning: initialized field overwritten [-Woverride-init] 123 | [CLOCK_TAI] = HRTIMER_BASE_TAI, | ^~~~~~~~~~~~~~~~ kernel/time/hrtimer.c:123:35: note: (near initialization for 'hrtimer_clock_to_base_table[11]') In file included from arch/loongarch/include/asm/processor.h:9, from arch/loongarch/include/asm/thread_info.h:15, from include/linux/thread_info.h:60, from include/asm-generic/current.h:6, from ./arch/loongarch/include/generated/asm/current.h:1, from include/linux/sched.h:12, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/node.h:18, from include/linux/cpu.h:17, from kernel/time/hrtimer.c:25: kernel/time/hrtimer.c: In function 'hrtimers_cpu_dying': >> kernel/time/hrtimer.c:2224:56: error: implicit declaration of function 'housekeeping' [-Werror=implicit-function-declaration] 2224 | int i, ncpu = cpumask_any_and(cpu_active_mask, housekeeping(HK_TYPE_TIMER)); | ^~~~~~~~~~~~ include/linux/cpumask.h:774:67: note: in definition of macro 'cpumask_any_and' 774 | #define cpumask_any_and(mask1, mask2) cpumask_first_and((mask1), (mask2)) | ^~~~~ >> kernel/time/hrtimer.c:2224:69: error: 'HK_TYPE_TIMER' undeclared (first use in this function) 2224 | int i, ncpu = cpumask_any_and(cpu_active_mask, housekeeping(HK_TYPE_TIMER)); | ^~~~~~~~~~~~~ include/linux/cpumask.h:774:67: note: in definition of macro 'cpumask_any_and' 774 | #define cpumask_any_and(mask1, mask2) cpumask_first_and((mask1), (mask2)) | ^~~~~ kernel/time/hrtimer.c:2224:69: note: each undeclared identifier is reported only once for each function it appears in 2224 | int i, ncpu = cpumask_any_and(cpu_active_mask, housekeeping(HK_TYPE_TIMER)); | ^~~~~~~~~~~~~ include/linux/cpumask.h:774:67: note: in definition of macro 'cpumask_any_and' 774 | #define cpumask_any_and(mask1, mask2) cpumask_first_and((mask1), (mask2)) | ^~~~~ cc1: some warnings being treated as errors vim +/housekeeping +2224 kernel/time/hrtimer.c 2221 2222 int hrtimers_cpu_dying(unsigned int dying_cpu) 2223 { > 2224 int i, ncpu = cpumask_any_and(cpu_active_mask, housekeeping(HK_TYPE_TIMER)); 2225 struct hrtimer_cpu_base *old_base, *new_base; 2226 2227 tick_cancel_sched_timer(dying_cpu); 2228 2229 old_base = this_cpu_ptr(&hrtimer_bases); 2230 new_base = &per_cpu(hrtimer_bases, ncpu); 2231 2232 /* 2233 * The caller is globally serialized and nobody else 2234 * takes two locks at once, deadlock is not possible. 2235 */ 2236 raw_spin_lock(&old_base->lock); 2237 raw_spin_lock_nested(&new_base->lock, SINGLE_DEPTH_NESTING); 2238 2239 for (i = 0; i < HRTIMER_MAX_CLOCK_BASES; i++) { 2240 migrate_hrtimer_list(&old_base->clock_base[i], 2241 &new_base->clock_base[i]); 2242 } 2243 2244 /* 2245 * The migration might have changed the first expiring softirq 2246 * timer on this CPU. Update it. 2247 */ 2248 __hrtimer_get_next_event(new_base, HRTIMER_ACTIVE_SOFT); 2249 /* Tell the other CPU to retrigger the next event */ 2250 smp_call_function_single(ncpu, retrigger_next_event, NULL, 0); 2251 2252 raw_spin_unlock(&new_base->lock); 2253 raw_spin_unlock(&old_base->lock); 2254 2255 return 0; 2256 } 2257 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki