Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2524053rbb; Wed, 28 Feb 2024 04:48:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWhDVBER78EJhLlP0tcru+fz+tCGfdKWKCV0E5MD15OUix1fQHdUY2bToy1KBKcXO3G1T7ntqO1VwrRoFEciYLQbSebZlja0OLTzsMatA== X-Google-Smtp-Source: AGHT+IFb+Ji6601B3Ptey8nukUNPhL91S3rcJQg/Pjr9AhlTJKK+n04/cHZfx0G9X5zjeegtx8AC X-Received: by 2002:a05:6a20:e68e:b0:1a1:ebd:12a9 with SMTP id mz14-20020a056a20e68e00b001a10ebd12a9mr5111469pzb.1.1709124489184; Wed, 28 Feb 2024 04:48:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709124489; cv=pass; d=google.com; s=arc-20160816; b=JzcFg3mxLkyLM3qrJxx7zShZIVDQEqkvvlJLyb0BqQVwKQHYesbID35exJBvZhbfFC cep8GNOK+zxyBNuunYheuhtOWi/4WZT78BdjIjeEfmKhAQPuLX2REIlSbs85nI0hK0Hc mmZAEC0Bu/5cBTzD9urm4Fd1x4HAOnY5v0yC2zW3LiHgwYkB3r3R4srodAmnFqMzzEY+ Y3ds/hXjUQEL5/zERSQwsqwrOtHG59dPGrfxIPx6e4BzZDlO+ACR1pGr7e34lttGLWaQ nXzGoOS+q/age3Ly2akagLOx9Z7rrkfiqQUeV3srRVIVC6BTUwJEoS3IKMw3t9r7cxNO 2t+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=lGM94D1Y9KaMa4+5MpXCg8UZ8Cs37hE/EgCxTT7V6JQ=; fh=flxBg4tfuBqA3IeR4FdXHaPhaAZd5oJQpUO/B4d2Wao=; b=n9kWlpxwZTMQKvG/8LI8M3Dw3w3RZ2FLtWp4RKEiE1GMioDEzhv2lfCi4sdsdNrFx+ ONOZOm0fAfhxomJCOinONJW1uXC7+SHwq8JSDRvP4Syw9u1mssQ9DRGqUzTixB1LfibP xPUxKfp6m/Rs8tFLbwkLX6QfsDPApBf+LFv7PJuSQnujfL7cHC0Lsb4ZC9ji0XTVMW7m T9LCMwsJZpwIXCrbaX58b6STLlMD2u83KNbfOPyg/Yvwn5uFDGkPX4LyGlt5EGwOWLy+ lXEEwmaW4pipfhRg0ZH1vUi90mNDOtUO9W4OPA1M8c8Ur/EqoKW6y9CZchkNuDZJFNgG IWTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hz9H3awJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-85027-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85027-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j190-20020a6380c7000000b005dc95ff00bdsi7212009pgd.834.2024.02.28.04.48.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 04:48:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85027-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hz9H3awJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-85027-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85027-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B26C6B218D8 for ; Wed, 28 Feb 2024 12:39:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9800E145FE6; Wed, 28 Feb 2024 12:38:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hz9H3awJ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C30BC208C5 for ; Wed, 28 Feb 2024 12:38:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709123935; cv=none; b=VMRTpM2n95O70iYr4vUaJLzGJGmCx4b0HcqKQEZ91tyRfjztY65OKeVqa+mVCf3kPzxA/E3SX3x4kBwlIqTxHjyus70BTMhjV9jbM9xLbZ1dsejmZR0G5WdE/t6PU2y93OmKFoCtYYb8Q5eSy6cbMspIzN/U5dQHvZx4iARlyw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709123935; c=relaxed/simple; bh=7cnjA/uqqVLDP9FxayoqBzFTuC1LUGy1jPcMo2DDjj8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=kqw/2bmSJEqCyXtCBeB6qXrlN3sWS5S9Q50+nC7PwF3r2q1ZZp/3gM2br21StCeucLzIdKcsTBBkNT8E+/9DHPer6ntS6Gygi2bd/kA0MuJ4EKaiFVioy/+wG2bAKrVDlLA/H4FwRrK24i77+rj6FgNxTMKsT3hy+Xrh5RNE+/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hz9H3awJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3E2DC433F1; Wed, 28 Feb 2024 12:38:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709123935; bh=7cnjA/uqqVLDP9FxayoqBzFTuC1LUGy1jPcMo2DDjj8=; h=From:To:Cc:Subject:Date:From; b=hz9H3awJAnI9uvaFM0/Gwz1pYgLWsWCnIBjb1ZS3C5a4aOJW0PSgkzIF5I9OJneZ6 OUHspRCcUfoLp/5F6rKm/Bzk6S3DHrG7qK0uSotcgMF2WQvIABS8rdV0fmTFk50cyX Nhf5T0yeo3xWzyExErIfUrScaLqj4XoWaJpd3c7JWsgDo7Vt5L42hLHRgiKcSmKic+ 7HtG3W9RipPcS/76NCWlG5OE9tmKp6Zlk/nsO2Xsrgrpqz6IfeOyZd6auf8jSLAYbt UUWU6sHY2aZ+2Ia4DLq+1Wz+wEdE2OeZuTXVK1PP8mlf426Om5j7lNqDvzNjp36LT1 /aQPhBppuTlYg== From: Arnd Bergmann To: Frederic Weisbecker , Thomas Gleixner , Ingo Molnar Cc: Arnd Bergmann , "Peter Zijlstra (Intel)" , Peng Liu , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] tick/sched: fix build failure for CONFIG_NO_HZ_COMMON=n Date: Wed, 28 Feb 2024 13:38:41 +0100 Message-Id: <20240228123850.3499024-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann In configurations with CONFIG_TICK_ONESHOT but no CONFIG_NO_HZ or CONFIG_HIGH_RES_TIMERS, tick_sched_timer_dying() is stubbed out, but still defined as a global function as well: kernel/time/tick-sched.c:1599:6: error: redefinition of 'tick_sched_timer_dying' 1599 | void tick_sched_timer_dying(int cpu) | ^ kernel/time/tick-sched.h:111:20: note: previous definition is here 111 | static inline void tick_sched_timer_dying(int cpu) { } | ^ This configuration only appears with ARM CONFIG_ARCH_BCM_MOBILE, which should not actually select CONFIG_TICK_ONESHOT. Adjust the #ifdef for the stub to match the condition for building the tick-sched.c file for consistency with the definition and to avoid the build regression. Fixes: 3aedb7fcd88a ("tick/sched: Remove useless oneshot ifdeffery") Signed-off-by: Arnd Bergmann --- kernel/time/tick-sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/tick-sched.h b/kernel/time/tick-sched.h index 58d8d1c49dd3..e11c4dc65bcb 100644 --- a/kernel/time/tick-sched.h +++ b/kernel/time/tick-sched.h @@ -105,7 +105,7 @@ struct tick_sched { extern struct tick_sched *tick_get_tick_sched(int cpu); extern void tick_setup_sched_timer(bool hrtimer); -#if defined CONFIG_NO_HZ_COMMON || defined CONFIG_HIGH_RES_TIMERS +#if defined CONFIG_TICK_ONESHOT extern void tick_sched_timer_dying(int cpu); #else static inline void tick_sched_timer_dying(int cpu) { } -- 2.39.2