From patchwork Wed Jul 12 03:30:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hou Wenlong X-Patchwork-Id: 118797 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp889936vqm; Tue, 11 Jul 2023 20:43:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlEDIP6x6cV/kDLUJTvpQO99qpTecL24DLDxJDiFHJiIfYZi2jfIBqXrpEWtSHFWIJtsK6Hp X-Received: by 2002:a17:906:198:b0:97e:17cc:cc95 with SMTP id 24-20020a170906019800b0097e17cccc95mr939147ejb.36.1689133405123; Tue, 11 Jul 2023 20:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689133405; cv=none; d=google.com; s=arc-20160816; b=o5lfKu85W+FKzK+eAZL/lEBTVRh85er7n2Bv0kI3mqR78MQSqxj36yT1Ne/Kodm9Tv njZ7tqlcCBOXEKlheBAAA7Hx+r/35j/S1onPc0Bbd5eWCLQo2rNhhdHUPRU1tgCSDArx bUUSP1KH785mxuZB60PToqz1JJyGMknMjRsKqX/sYznSHxeNlGXOUSZh06OjB/ILngHz FTARUesjGa5BhCQx7yc73Rd7iOirX9xefKMAZHYzQdeecRKfPDJijnBIJVTHmil07Pq4 M6A3KqlQZrp5/XnSznGVgdUSHTq3YE3VKlLt3A/TRLRzJdPdErFBYtMaCw0pm4x1Hlrn qeVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IaoklsihpDsBuHcsyx3jZ7HlSLTZPfM4KhOkH70o93E=; fh=H+xol+m9/22gljVAiQKilKMt6BHHgyiL3H+/V9q01Lk=; b=zFifVn2jj3dTbXh5pokrl4SIAZpvlbuzo1lXimdPymOWMhSd3mt+ZztBBrOaRTBwvO 8fnfQFJAhadg/9v6qVOiRU4x7qBNFCMFMIps/jpbKWmGNOvQ1ILFf65SGSLd1z30qpFM SmsAE9ADEMmMbZZuF7PUEdWAhcQNe5RU8rpPR+pABtAU7l9uv4OaynTVV/dhKEkvTjYj gJB8ZOB2vSGERQSy/x+iJIMeqA/d91ubtkY6DyUm/B22ksuLgNJ6Ol+iZtU9gcQ5GFBU LoOqjE2+egCStzTVv9z+q4IKsb4NUkj061PMXi/5zVRL1cEYeMSVOWdUOV8OMfGUJAEW 8eyw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a170906264d00b00993860a6d38si3712465ejc.314.2023.07.11.20.43.02; Tue, 11 Jul 2023 20:43:25 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231741AbjGLDbc (ORCPT + 99 others); Tue, 11 Jul 2023 23:31:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231494AbjGLDbZ (ORCPT ); Tue, 11 Jul 2023 23:31:25 -0400 Received: from out0-195.mail.aliyun.com (out0-195.mail.aliyun.com [140.205.0.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67663E5F for ; Tue, 11 Jul 2023 20:31:24 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R431e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047201;MF=houwenlong.hwl@antgroup.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---.TrdQGkX_1689132675; Received: from localhost(mailfrom:houwenlong.hwl@antgroup.com fp:SMTPD_---.TrdQGkX_1689132675) by smtp.aliyun-inc.com; Wed, 12 Jul 2023 11:31:16 +0800 From: "Hou Wenlong" To: linux-kernel@vger.kernel.org Cc: "Lai Jiangshan" , "Hou Wenlong" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , " =?utf-8?q?maintainer=3AX86_A?= =?utf-8?q?RCHITECTURE_32-BIT_AND_64-BIT?= " , "H. Peter Anvin" , "Josh Poimboeuf" , "Anshuman Khandual" , "Mike Rapoport" , "Pasha Tatashin" Subject: [PATCH RFC 2/7] x86/head/64: Add missing __head annotation to startup_64_load_idt() Date: Wed, 12 Jul 2023 11:30:06 +0800 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY 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: 1771184749455733302 X-GMAIL-MSGID: 1771184749455733302 This function is currently only used in the head code and is only called from startup_64_setup_env(). Although it would be inlined by the compiler, it would be better to mark it as __head too. Signed-off-by: Hou Wenlong --- arch/x86/kernel/head64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index dd357807ffb5..5066189b00ac 100644 --- a/arch/x86/kernel/head64.c +++ b/arch/x86/kernel/head64.c @@ -588,7 +588,7 @@ static void set_bringup_idt_handler(gate_desc *idt, int n, void *handler) } /* This runs while still in the direct mapping */ -static void startup_64_load_idt(unsigned long physbase) +static void __head startup_64_load_idt(unsigned long physbase) { struct desc_ptr *desc = fixup_pointer(&bringup_idt_descr, physbase); gate_desc *idt = fixup_pointer(bringup_idt_table, physbase);