Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1526520ybb; Fri, 29 Mar 2019 06:20:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0QfRfd1ldDYYX+SEz9N49krOMWY/mhnONzPx8tKFikhm1YLTGFHbz/ToEt6YuHJ3LDalG X-Received: by 2002:aa7:928d:: with SMTP id j13mr47956710pfa.112.1553865622819; Fri, 29 Mar 2019 06:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553865622; cv=none; d=google.com; s=arc-20160816; b=g1BW/0wMNDe+7NoWawk4VGj8GL7MwVSpUH3VVu0J/0uEY222wCQaDQCn3ccMBRjVhp 3UeGniZttYgIGd43eDdz1z2z9kZ1WLdhDjVIa5Il42K8vReyO+wWpWdlxXnGcAQnGUQr GuuKkVPoGaeNwYwPyQbb+eFpzM3t/KTsQ98WkBxqFwBkdi1RcHL9ZtkUR2wBwQx7o8Lu ZzBIQqHOH0jjI4022qdpMV2fNSIgAHvsIfbakVDsr7KIUtalzOtT8rNyg6EyC5x5lxmL nFa0dG2TQm2vz+niOX8GKBBYYGhgYy7lTedM25vC/fxJPRQGLSbbb7yNJXQgPfmj6g5H VOMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=l1kxrQTfTcyv/cO8ourZPQeOoNbe3mIXqgNOnmhxqzY=; b=XjuG6ievTvynfF6GWgvGfRy70/M9yskvHZkeyCIO5bjrNWPnYomoE/rz53gmimUdnJ 13Snr3cVpRCqyK+mIo6w6NgkBK0VCy7Sw2h5p054KUw7e93UtsFcjD29H3BlL5y0IqJD JRTsXjyq6h3/0PCB/glCzgmvmrDKfEJLFQI4JU10YfpbMRePE/CnYius/SjuFW9LbsPj X69GlYk1o3jTf8tphRhEZp0uZkKe5lWx1izUd4VdYBOsfF4r2mh57px7z/MueeTOHBu/ uUlUppjGpcFOJ1ECJlT7yFptbnC5qdr8v+l+wjA0xvkjTLudMtbFX3OIYscrYky9UX2j CtmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91si1953150ple.299.2019.03.29.06.20.06; Fri, 29 Mar 2019 06:20:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729628AbfC2NTc (ORCPT + 99 others); Fri, 29 Mar 2019 09:19:32 -0400 Received: from terminus.zytor.com ([198.137.202.136]:51365 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729583AbfC2NTb (ORCPT ); Fri, 29 Mar 2019 09:19:31 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x2TDJHSn3797645 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 29 Mar 2019 06:19:18 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x2TDJHWu3797637; Fri, 29 Mar 2019 06:19:17 -0700 Date: Fri, 29 Mar 2019 06:19:17 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Borislav Petkov Message-ID: Cc: linux-kernel@vger.kernel.org, fweisbec@gmail.com, bp@suse.de, tglx@linutronix.de, mingo@kernel.org, valentin.schneider@arm.com, mojha@codeaurora.org, hpa@zytor.com Reply-To: tglx@linutronix.de, linux-kernel@vger.kernel.org, fweisbec@gmail.com, bp@suse.de, valentin.schneider@arm.com, mojha@codeaurora.org, hpa@zytor.com, mingo@kernel.org In-Reply-To: <20190329110508.6621-1-bp@alien8.de> References: <20190329110508.6621-1-bp@alien8.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/core] tick/broadcast: Fix warning about undefined tick_broadcast_oneshot_offline() Git-Commit-ID: aba0954327c831f593702e3a81ef3ad4bec7a838 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, FREEMAIL_FORGED_REPLYTO autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: aba0954327c831f593702e3a81ef3ad4bec7a838 Gitweb: https://git.kernel.org/tip/aba0954327c831f593702e3a81ef3ad4bec7a838 Author: Borislav Petkov AuthorDate: Fri, 29 Mar 2019 11:28:52 +0100 Committer: Borislav Petkov CommitDate: Fri, 29 Mar 2019 14:13:44 +0100 tick/broadcast: Fix warning about undefined tick_broadcast_oneshot_offline() Randconfig builds with CONFIG_TICK_ONESHOT=y CONFIG_HOTPLUG_CPU=n trigger kernel/time/tick-broadcast.c:39:13: warning: ‘tick_broadcast_oneshot_offline’ \ declared ‘static’ but never defined [-Wunused-function] due to that function's definition missing. Move the CONFIG_HOTPLUG_CPU ifdeffery around its declaration too. Fixes: 1b72d4323798 ("tick: Remove outgoing CPU from broadcast masks") Signed-off-by: Borislav Petkov Acked-by: Thomas Gleixner Reviewed-by: Mukesh Ojha Cc: Valentin Schneider Cc: Frederic Weisbecker Cc: x86@kernel.org Link: https://lkml.kernel.org/r/20190329110508.6621-1-bp@alien8.de --- kernel/time/tick-broadcast.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index 0283523de045..7541cbca695e 100644 --- a/kernel/time/tick-broadcast.c +++ b/kernel/time/tick-broadcast.c @@ -36,12 +36,16 @@ static __cacheline_aligned_in_smp DEFINE_RAW_SPINLOCK(tick_broadcast_lock); static void tick_broadcast_setup_oneshot(struct clock_event_device *bc); static void tick_broadcast_clear_oneshot(int cpu); static void tick_resume_broadcast_oneshot(struct clock_event_device *bc); +# ifdef CONFIG_HOTPLUG_CPU static void tick_broadcast_oneshot_offline(unsigned int cpu); +# endif #else static inline void tick_broadcast_setup_oneshot(struct clock_event_device *bc) { BUG(); } static inline void tick_broadcast_clear_oneshot(int cpu) { } static inline void tick_resume_broadcast_oneshot(struct clock_event_device *bc) { } +# ifdef CONFIG_HOTPLUG_CPU static inline void tick_broadcast_oneshot_offline(unsigned int cpu) { } +# endif #endif /*