From patchwork Fri Jul 28 08:21:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 127434 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp298712vqg; Fri, 28 Jul 2023 02:08:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlEmSj5ywJraSaWWWkVoxdO5QqFIkAYBv+nRccpJTyFFH1+tNacm+fXrrRQd0487QgrVTjrG X-Received: by 2002:a05:6402:34c5:b0:51e:4218:b91b with SMTP id w5-20020a05640234c500b0051e4218b91bmr5245768edc.1.1690535335151; Fri, 28 Jul 2023 02:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690535335; cv=none; d=google.com; s=arc-20160816; b=yp6WAzQmCRDDVUkPqfr91BPxaDZimWSZlrECWm/g+cKAqAcqMWjtCYCcBKs6bEuQj0 37B7HYJvFsn1yO3XPVy91foQ1ojCjrv+ksWjk+0jKq0KhzlusHXjDAncozPMGhp+4noY ZfK5M3cySzJyvWAquRAM+cRK9dvvPmpH5IEcIJIqVbfrx/lHrofyhsQNNIbWhKTgZsZZ qjp4mSU8gKDXPWVrUYpl5S8d+y4+DfbMGWk85/u9VWz29oHMdaIAeBxMeF2w4j24BhNy gtSp/E4VfQGf6OBmLzyz0WTnPc9mi6mKR1EYev/w9ULlEV1OEGdlxkuTu0ERq3BJhRdn h9+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=LMfd0HelnlVjNH3W4Qx7FiKgivaaAG98nFZrasSoh3k=; fh=x7LrESRZSncmuzg71q80qTubzaARBhqhhTJQojIQNbY=; b=JCnQjJ1Pj9od3wIynO198bI1ZWKTtd1g2eb6blRpjfqVG5SQyqMll+CLrJ6ec5GyyW LH6ZuzSi05dTOrPnBMNNNXRzKt6lIZ15oBaVsSqDkqaIL3TuhQCfPuBkIKg6PYhvEauI UtcEndYC0u3Li2Fz/e6qg5nqTKmUutRgEtkTZglTclRkZIQamABc5z01W/iopA1UEeoD XEGtOUouC8tU/x70p/a94fTRZ1TRVk25kKP9z9LZH6RlYniQGESpSoUITOdTydsV6HaU CgrI1vFIbcb/ZZeIHNgno9iqC+QJaNvzidX5gHjlMx1cx6G6dit6Rtv97AHkDdNYRAOn BjsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vGW8b2dE; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf14-20020a0564021a4e00b005222709bc35si2267760edb.197.2023.07.28.02.08.31; Fri, 28 Jul 2023 02:08:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vGW8b2dE; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234916AbjG1IX2 (ORCPT + 99 others); Fri, 28 Jul 2023 04:23:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234935AbjG1IW2 (ORCPT ); Fri, 28 Jul 2023 04:22:28 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D64F41FF2; Fri, 28 Jul 2023 01:21:22 -0700 (PDT) Date: Fri, 28 Jul 2023 08:21:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690532481; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LMfd0HelnlVjNH3W4Qx7FiKgivaaAG98nFZrasSoh3k=; b=vGW8b2dEOtvSfOI9UVMDi8XG7jCGBKutFCDW+bAgRsDeAUDKTfcp0bS51qrLcSlhB9cda4 IL+GF9mJQQ+cMAbUgfYxkJowiIj/20F/4EsaBs3A0vZetpqw6skMAYC0hUVF4sokr7bumx kCdYLYksm3oORVIjJW7zc8lz+6HsS56SUF1jzIEZBNHzuOd0MV04dqLO/yBd1tUfhsZbeV S/qBF5iFyQaH7VVXML8FB7c7JYHjADwru+EuvPATyuu2zFE0tiuzG4v7GSc1ZJpyLc8CD2 zqX3AEHnhXmTXqqJc8KWMvtJ2eFjGKf7FeT8pSCezHm7FHakDaZKmXdKQBqJ9Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690532481; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LMfd0HelnlVjNH3W4Qx7FiKgivaaAG98nFZrasSoh3k=; b=/71fy/Q5QFqSXJqoFPYLv1J7i9VSGzLty/4et+VaFMGOD7rIm6rkkvI+lJKPe2iB3K8ExA xY3kpHpGNArJVdBw== From: "tip-bot2 for Sohil Mehta" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/core] x86/smpboot: Change smp_store_boot_cpu_info() to static Cc: Sohil Mehta , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230727180533.3119660-4-sohil.mehta@intel.com> References: <20230727180533.3119660-4-sohil.mehta@intel.com> MIME-Version: 1.0 Message-ID: <169053248069.28540.9487948211210505000.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772602696101320911 X-GMAIL-MSGID: 1772654779623353554 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 AuthorDate: Thu, 27 Jul 2023 18:05:33 Committer: Thomas Gleixner 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 Signed-off-by: Thomas Gleixner 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);