From: "tip-bot2 for Sohil Mehta" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Sohil Mehta <sohil.mehta@intel.com>,
Thomas Gleixner <tglx@linutronix.de>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: x86/core] x86/smpboot: Change smp_store_boot_cpu_info() to static
Date: Fri, 28 Jul 2023 08:21:20 -0000 [thread overview]
Message-ID: <169053248069.28540.9487948211210505000.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20230727180533.3119660-4-sohil.mehta@intel.com>
The following commit has been merged into the x86/core branch of tip:
Commit-ID: d7114f83ee051dfeac82546d7ba03d74f8b92af3
Gitweb: https://git.kernel.org/tip/d7114f83ee051dfeac82546d7ba03d74f8b92af3
Author: Sohil Mehta <sohil.mehta@intel.com>
AuthorDate: Thu, 27 Jul 2023 18:05:33
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Fri, 28 Jul 2023 10:17:53 +02:00
x86/smpboot: Change smp_store_boot_cpu_info() to static
The function is only used locally. Convert it to a static one.
Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230727180533.3119660-4-sohil.mehta@intel.com
---
arch/x86/include/asm/smp.h | 2 --
arch/x86/kernel/smpboot.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h
index 094f31d..cf7217a 100644
--- a/arch/x86/include/asm/smp.h
+++ b/arch/x86/include/asm/smp.h
@@ -134,8 +134,6 @@ void native_send_call_func_ipi(const struct cpumask *mask);
void native_send_call_func_single_ipi(int cpu);
bool smp_park_other_cpus_in_init(void);
-
-void smp_store_boot_cpu_info(void);
void smp_store_cpu_info(int id);
asmlinkage __visible void smp_reboot_interrupt(void);
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 6a09a02..28c590b 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -422,7 +422,7 @@ found:
return 0;
}
-void __init smp_store_boot_cpu_info(void)
+static void __init smp_store_boot_cpu_info(void)
{
int id = 0; /* CPU 0 */
struct cpuinfo_x86 *c = &cpu_data(id);
prev parent reply other threads:[~2023-07-28 8:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-27 18:05 [PATCH v2 0/3] x86/smpboot: Minor cleanup Sohil Mehta
2023-07-27 18:05 ` [PATCH v2 1/3] x86/smpboot: Remove a stray comment about CPU hotplug Sohil Mehta
2023-07-28 8:21 ` [tip: x86/core] " tip-bot2 for Sohil Mehta
2023-07-27 18:05 ` [PATCH v2 2/3] x86/smp: Remove a non-existent function declaration Sohil Mehta
2023-07-28 8:21 ` [tip: x86/core] " tip-bot2 for Sohil Mehta
2023-07-27 18:05 ` [PATCH v2 3/3] x86/smpboot: Change smp_store_boot_cpu_info() to static Sohil Mehta
2023-07-28 8:21 ` tip-bot2 for Sohil Mehta [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=169053248069.28540.9487948211210505000.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=sohil.mehta@intel.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®