Message ID | 20230516193549.544673-4-arnd@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AA40C7EE23 for <linux-mm@archiver.kernel.org>; Tue, 16 May 2023 19:36:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 69296280002; Tue, 16 May 2023 15:36:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6418F280001; Tue, 16 May 2023 15:36:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 50B6A280002; Tue, 16 May 2023 15:36:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 43230280001 for <linux-mm@kvack.org>; Tue, 16 May 2023 15:36:29 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 13421C02B6 for <linux-mm@kvack.org>; Tue, 16 May 2023 19:36:29 +0000 (UTC) X-FDA: 80797124898.03.0A31055 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf13.hostedemail.com (Postfix) with ESMTP id 32F8120012 for <linux-mm@kvack.org>; Tue, 16 May 2023 19:36:26 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="bB9/JNuG"; spf=pass (imf13.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684265787; a=rsa-sha256; cv=none; b=73zI4CZWbOPmaDg/igw9XOnQS+uF6taL3/Mpn4UBSeRl4o1O6JC+/yI+N8ny0kTHXP/ohO EZ4dxjjqkYCzb1FMpd+5IsGBHciGfS5QayagxNa2qQoV18IDMdiHtK6CfjBUzkXN0YmzQE 0UpU/91sx758P63byLSiaOGOqWL3gfo= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="bB9/JNuG"; spf=pass (imf13.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684265787; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=5SFDBgTtU0UkBX0Cd+2aksijeEM0RruAc8g90Vv6tdM=; b=VqhD3lCAZgLTXnOKieW5ixmW3PkS85VkykK90A3C0f1hS53j9k7Ss092WRrNXubyqHW5rl 6S17bjEwHAbdmc66oGuZhrQJZfyFq9xkdpWZpXrWXWO6kMXrfZ50x29eT5F/uEs5hXV1cI 5HUeL7Ytva+tKdpd9OVQ6Q+/J1tpe1c= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 26E8E63E90; Tue, 16 May 2023 19:36:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50CFDC433D2; Tue, 16 May 2023 19:36:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265786; bh=L/Qp31ZARnIa1bxC1DyJGeKMdFS5Wgtrq4kpQkQu2zw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bB9/JNuGXy+CuuSmBA1mIJQRdm3PDhpA4MNWL9vDjPPUv0Axx1Q2VLtiOmu5h4wlO ZIiveTA4vEzmvtg6jqHfnB2IA/KyFoLv58fU1C/G4RLxDtlLb+qWaDnPLIHqxp+uJN YuIEMEzwPeJyaUbpe/498ig/Aj8SroIALwN5a9JdhgsmlVncnEE6j0ApQr0CD6wwpG uayon8hFFnce7FZ+xk3f501jDfoYnSDBCEasqeaP9EuAKAaVBUhLY0N+aATStZTdOq FxWM3nrGI7ppoWHfghhJ25EqNePfkhNvOQNgYm+lOBRhMsfTshiuFBM/UygrVqzdJr FaoOyV2QyNahg== From: Arnd Bergmann <arnd@kernel.org> To: x86@kernel.org Cc: Arnd Bergmann <arnd@arndb.de>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com>, Andy Lutomirski <luto@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Masami Hiramatsu <mhiramat@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Juergen Gross <jgross@suse.com>, "Srivatsa S. Bhat (VMware)" <srivatsa@csail.mit.edu>, Alexey Makhalov <amakhalov@vmware.com>, VMware PV-Drivers Reviewers <pv-drivers@vmware.com>, Peter Zijlstra <peterz@infradead.org>, Darren Hart <dvhart@infradead.org>, Andy Shevchenko <andy@infradead.org>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, "Rafael J. Wysocki" <rafael@kernel.org>, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-pci@vger.kernel.org, platform-driver-x86@vger.kernel.org, xen-devel@lists.xenproject.org, linux-pm@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 03/20] x86: apic: hide unused safe_smp_processor_id on UP Date: Tue, 16 May 2023 21:35:32 +0200 Message-Id: <20230516193549.544673-4-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516193549.544673-1-arnd@kernel.org> References: <20230516193549.544673-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: t8fcteboqqe3scoamumceug85gmw8idy X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 32F8120012 X-HE-Tag: 1684265786-15899 X-HE-Meta: U2FsdGVkX19U55xbYD2vYlslq27pBdWrEbx7y4zrW7N5bDKDj8Ynz2RGS+dh1PfoiU3XfEetsWB5pfgpdfAO1Xc3uHJ0BLzMaWU0lP9tYottbNKOwMHO7t39paiyAwTVJfHYeeyVCteylxZVSX3jLCqwetP8CYvLTk6Ud78093gsSsN4SfCsx7cYO4POkXVZKvHmMORUk/1U1ffBIVFOSugfH0s5ZRGwkweSLpk3mM+pwg2uBTpix92aUGahTE3PXDCjOH9B2+asyqM4cpUieVtfX8+MUGAzVZ4qv78GvNLcpUAc9WOVhJOhCS8RwD5JOQ0A+TJr3Xl5QguKKg4L2zOtjzSzj99r0LEyQyVUzRFEnh798aUeMPmpE0XOjMUznK/gFYrOjGnpbtZnZOVTuFCbVhlVIrVPP+qdO4IynFBPxoArwIQ9i6iTGEjJk0I/SSPz2Tw/GYayHl/m6BQD2Br+i16Wf2uWKYMLWf+EZsJTbjDHu26sbVhcy/yyoqTRin2xhSh8mbOh95xsACMDq4+TyUrNs3AgtYHHQE5+dO419EmiNJbX7rGwNWrFo5CVczBz7WrtrX9nGnFf6JEm3jKTnbzRb4+9Of05N9Z1Bo6PYbmIxufIFD+HbNxu645byYUcnCPC2xau8bqahY0vXSUX6l/A70NgO7aowtdbIA2vPqGgQSx67q/j/wAvKTWpGxLllCsqaWQkb7X544qxuQK/xeTWDS2byHc2gwHQgFVsDvQXKb7TEVbbcZDMRjpIpYmbQhg5660h8ngySo8QrdUJ7LsoCgou/HabKXSu2RszHaoGWhvgbZoe1OW69F6/awkyElgDiUAaoq9EBOurWbyB6GsM1B86vT6TWs4Bteg3mqDFbKDiLXmquyqRE0NITN9YACCv/ZV5CFFHLLRez6ZVR7g9zQI6UPT0kMja6jjmMjEGQvGUuSIVyGzPvBxku4ahE8f47l0NiNZmV1R upl3VtC6 nPq+lO87YrHgh27jPlwva9uVPzJ0JWrhABbpzbh2ZI5688GQ2844cOuGevPVuVfvQyg60ZCiaSSOKXwSRb7yTnFTKnaer4WS8wTuLDT2WxL/kjCf5gfmCPLEfLeOJhDPmFEj9sc0ZEuvVlclJnDG0IbggLwwQLygpLLlyqGkK3affXHnSA/smk9KAUmDSEPTr+kptLewAWqHV07dhdBuy9K/Xc0QmMlQMWBH2lg7Osy1s0f9DLGlIgsJ0/Aa3deHz0kq8sXewj4hjFntpBJZrlGSm2IEuVkk3O4hKTshhajHYmoAgGXK2IqOSYXhEiJoRB5Pb0NFtoTY4ZUU= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
x86: address -Wmissing-prototype warnings
|
expand
|
diff --git a/arch/x86/kernel/apic/ipi.c b/arch/x86/kernel/apic/ipi.c index 2a6509e8c840..9bfd6e397384 100644 --- a/arch/x86/kernel/apic/ipi.c +++ b/arch/x86/kernel/apic/ipi.c @@ -301,6 +301,7 @@ void default_send_IPI_mask_logical(const struct cpumask *cpumask, int vector) local_irq_restore(flags); } +#ifdef CONFIG_SMP /* must come after the send_IPI functions above for inlining */ static int convert_apicid_to_cpu(int apic_id) { @@ -329,3 +330,4 @@ int safe_smp_processor_id(void) return cpuid >= 0 ? cpuid : 0; } #endif +#endif