From patchwork Fri Jun 16 09:24:45 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: 108981 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1197607vqr; Fri, 16 Jun 2023 02:31:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ihQwQbpDUysdMwp8Pqd3bLrCOJHF92n2Og/0gIx4L4vhy+ae2rZpBLnqsxQkLD7cihuex X-Received: by 2002:a05:6808:f0d:b0:39e:8678:4058 with SMTP id m13-20020a0568080f0d00b0039e86784058mr1824144oiw.41.1686907863353; Fri, 16 Jun 2023 02:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686907863; cv=none; d=google.com; s=arc-20160816; b=y/T6XbhDWZGFIzy0TZJDdhIbY/fHY8sBXqKnYsUjhdZkxyr1TBOgax4OzPKnvMTcq8 JiIz8UGCD111lhT+CFePMfGC1GaUHzaXfulfp0IkzehqVSIDr1rRB+q9ZXxXxtYA0xj5 9IjyLU9O+N3UcapETL8J/uNZoVRoSnwH7Ea4IfNXCfU4f7M5HuhuK6win3l5ZePy+ihn kfIDW2Wowuotrtw2FFOIn0Rg/s540Marq738lvMEAeVIB9gRzyCf24M0w7EblwS36FKb kUkH5f0lCnhbzEaCL6yWJPQsrck3bOWu2S/cRxlYEJCFquzGrr+ftIAyPTQEM4R84n7m ykvQ== 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=+mL3QMF2j8SJISmK4/qknqDlQf1IQcpG/IDVIlueffE=; b=PGuN6xZsQZFRDLQ6p7P0K4g34RsYqdLTFAU0uzFH1ccKMPUJJfbuaS1AjGt7rvuATE IhMNS/hrgY/SmCTKyMAJkmOioBmHKZHPbyRVfYFVoMmJ0HH1Wvme2TrQClhzfA2yuBnd +119Ad8drkn8EFoRcL6o2Id+3BGRRvRrdgSfZH1XbjlKayMsaSp4cOLLdgtlxyZOpfZX 8xe+lKhRx7kimPxFPp050+aQ2IOiHnkGCl0zo16NQ2A32rmRN5Nj77CYx5RAyTKFfk6t jNNUb53hLbqhIwU6iHjnr3YsXrEZw/haSXC52fHG6Z/WdhqNKZ0PZMwmnTGEk6/i7Dp2 6PZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="Os+Tlmc/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=vZ5UCN+D; 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 e14-20020a17090a728e00b0025eb091e51esi1219302pjg.84.2023.06.16.02.30.46; Fri, 16 Jun 2023 02:31:03 -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="Os+Tlmc/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=vZ5UCN+D; 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 S1344267AbjFPJZe (ORCPT + 99 others); Fri, 16 Jun 2023 05:25:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344120AbjFPJYx (ORCPT ); Fri, 16 Jun 2023 05:24:53 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2003C26BE; Fri, 16 Jun 2023 02:24:51 -0700 (PDT) Date: Fri, 16 Jun 2023 09:24:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686907486; 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=+mL3QMF2j8SJISmK4/qknqDlQf1IQcpG/IDVIlueffE=; b=Os+Tlmc/Ntxb2VNy9Lr87lcoIZG2EpYjnbuRHVEbVE9Ir2dKEG4YomX2+e1/eeiv2F3DVg vxW3BgAs9IZXoLbIS6s/mtMI2vy85tJ9RTTASa67DtAZN07o8Ap063FXcmD/LDWXalKevT sTQCvHwyhycmsmkX9UhXovUFJuVDvofvSarGn5ehOaJd1gmHJ3IkMwFYFk5KHRj1nJlAd1 LMhHxgMiTBkj2EeXH2sy1ZdHP+JxsdXXxnltc1P/+yHpUEOsGx2VtJSNQlvDjSpySdVPmt nzh/jko/InMbI74URiaRRKYKf5jHA52Zkeo8+ZxNweeqK95WnkWtD0UQkA7Ktw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686907486; 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=+mL3QMF2j8SJISmK4/qknqDlQf1IQcpG/IDVIlueffE=; b=vZ5UCN+D7lXnnDgEKqgodXMknwzAFR8mV3AiJxSixoYsHC1zuqnxO9i1cUr0mA+wJmk8kv HwfD2SzGSC9qSYDQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/boot] um/cpu: Switch to arch_cpu_finalize_init() Cc: Thomas Gleixner , Richard Weinberger , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230613224545.493148694@linutronix.de> References: <20230613224545.493148694@linutronix.de> MIME-Version: 1.0 Message-ID: <168690748579.404.16291691505743551206.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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768632840306595139?= X-GMAIL-MSGID: =?utf-8?q?1768851099644479115?= The following commit has been merged into the x86/boot branch of tip: Commit-ID: 9349b5cd0908f8afe95529fc7a8cbb1417df9b0c Gitweb: https://git.kernel.org/tip/9349b5cd0908f8afe95529fc7a8cbb1417df9b0c Author: Thomas Gleixner AuthorDate: Wed, 14 Jun 2023 01:39:36 +02:00 Committer: Thomas Gleixner CommitterDate: Fri, 16 Jun 2023 10:16:00 +02:00 um/cpu: Switch to arch_cpu_finalize_init() check_bugs() is about to be phased out. Switch over to the new arch_cpu_finalize_init() implementation. No functional change. Signed-off-by: Thomas Gleixner Acked-by: Richard Weinberger Link: https://lore.kernel.org/r/20230613224545.493148694@linutronix.de --- arch/um/Kconfig | 1 + arch/um/include/asm/bugs.h | 7 ------- arch/um/kernel/um_arch.c | 3 ++- 3 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 arch/um/include/asm/bugs.h diff --git a/arch/um/Kconfig b/arch/um/Kconfig index 541a9b1..887cfb6 100644 --- a/arch/um/Kconfig +++ b/arch/um/Kconfig @@ -6,6 +6,7 @@ config UML bool default y select ARCH_EPHEMERAL_INODES + select ARCH_HAS_CPU_FINALIZE_INIT select ARCH_HAS_FORTIFY_SOURCE select ARCH_HAS_GCOV_PROFILE_ALL select ARCH_HAS_KCOV diff --git a/arch/um/include/asm/bugs.h b/arch/um/include/asm/bugs.h deleted file mode 100644 index 4473942..0000000 --- a/arch/um/include/asm/bugs.h +++ /dev/null @@ -1,7 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __UM_BUGS_H -#define __UM_BUGS_H - -void check_bugs(void); - -#endif diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index 0a23a98..918fed7 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c @@ -3,6 +3,7 @@ * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ +#include #include #include #include @@ -430,7 +431,7 @@ void __init setup_arch(char **cmdline_p) } } -void __init check_bugs(void) +void __init arch_cpu_finalize_init(void) { arch_check_bugs(); os_check_bugs();