From patchwork Mon Oct 16 11:54:52 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: 153364 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3406223vqb; Mon, 16 Oct 2023 05:01:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlFRTOSUpy0wzhc9LsgpWC/Xf6MoB2N2Zdn20fMrhn22HtI5UdGC3Xczg/9I4ft5ypJ2vc X-Received: by 2002:a05:6a20:1595:b0:163:ab09:195d with SMTP id h21-20020a056a20159500b00163ab09195dmr38575055pzj.0.1697457699308; Mon, 16 Oct 2023 05:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697457699; cv=none; d=google.com; s=arc-20160816; b=v6/U9HC7qJbfU4aY5koEiDEiva/FkjlnVxL+rH648uxGWCGY0N2cia79fLLVZNi7aA f1ndOFnMsY1pCNP7qJWSa0o96KNL3NZcFaZt7DxT4TDMo6OExnJxKq0eXoySBSA1htga ZM2vmT3jnU5mzGOh5Q6imsTlR5tonVZNlqda4V6o/Rjj2yowsXrqQ16ZatdYUYFjEE4s HG899q+3dxn0eg9EvOLcXVAI0V5J19F4mph3JOQtLSLrqWIK93OWHHllrYui4GIrawG6 Shq3cZsTodEVndJxQOwbaaJ3pAgDv2cB1rbelsD2z+M2xkfgCdjinywKVD5i/Yxvxnor BAlw== 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=E5AEwqyUaSQMprccmuBfMfzneA7Pcuh09art5K3UwP8=; fh=7ceUX0iZe7PTEiqXflH57MwSIol+1JKVWPZm5EtuIbo=; b=M4S55izv7CXYL/bpXj3mC/sKxtGKGTQlNNW5/x41FlorFHHjvvFQHhdDuvDlYQ7KUa jwo1AF7jX8Vt11iTRqAvNGWPUMXqdWl+rBcEfLW0S1ycFZi1PRoY1q6xU1FRH06IbzFf o4g/3n4DWYKoJG9pRFVL35on2fZ10Fa6e8dCOdJqoJ6USExc7N1dBRZfYgaJh9XCp938 6tULCECtFnew2IqYrZnId+j2Fr7MyhkQQGfei+DrBwgW+81Ej7UiQo6FI7WGpR6RV/aI lWh6HApFp1nNvAteNLCuzAm9JJ6A4n2qKDR1wTtOmFvLhkJjnHQrP/zVuKnSfijad9ye lziw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=2sWpf2uk; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y15-20020a63e24f000000b0057828b85afdsi6867756pgj.795.2023.10.16.05.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 05:01:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=2sWpf2uk; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 05C3980A914A; Mon, 16 Oct 2023 05:01:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229621AbjJPMBI (ORCPT + 18 others); Mon, 16 Oct 2023 08:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232836AbjJPMBD (ORCPT ); Mon, 16 Oct 2023 08:01:03 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2FA318D; Mon, 16 Oct 2023 04:54:54 -0700 (PDT) Date: Mon, 16 Oct 2023 11:54:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697457293; 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=E5AEwqyUaSQMprccmuBfMfzneA7Pcuh09art5K3UwP8=; b=2sWpf2ukZGRl516wJQKne6b8QUEcIHTly1YlLtqhrmGpp71DSQtW7ynUY5Jx+v9P7OtH9o +k/wZJB4fLYtMwSete9FlPEAfxVYvYXxSOE2krgVuZeLB6Lt0cU2MfoHqh8fb72Lf29pHc xcGjNkdwOfZ4inUqxjXIrZPQLoiY+Yh58ZEnG3PlBYZKiC1GjzpeHKxplJpQc4OUWi06gj RCtUGpTppycIm6FztTOjWO312O/e6rMxmq9d3kc8fOk4zFhK1yzV6RmbL7eUO2PR1qxMcE OGT6PWNZ3l9BoAoOIG904inKcwBFcpisVo3+h7ih+8zW8Tz+mPtHsCf6zkuvTA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697457293; 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=E5AEwqyUaSQMprccmuBfMfzneA7Pcuh09art5K3UwP8=; b=Ih+QK2LXJdXmIfjsYySjHc/NU3QdTiresnrNdNvZEsqRJYbSQVvRq4VF10QNeTKNi2wTmG Na9HgORk7+oFlMAg== From: "tip-bot2 for Hou Wenlong" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/boot] x86/head/64: Add missing __head annotation to startup_64_load_idt() Cc: Hou Wenlong , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: =?utf-8?q?=3Cefcc5b5e18af880e415d884e072bf651c1fa7c34=2E1689130?= =?utf-8?q?310=2Egit=2Ehouwenlong=2Ehwl=40antgroup=2Ecom=3E?= References: =?utf-8?q?=3Cefcc5b5e18af880e415d884e072bf651c1fa7c34=2E16891303?= =?utf-8?q?10=2Egit=2Ehouwenlong=2Ehwl=40antgroup=2Ecom=3E?= MIME-Version: 1.0 Message-ID: <169745729291.3135.17224070349445193819.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 16 Oct 2023 05:01:37 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771184749455733302 X-GMAIL-MSGID: 1779913404041929947 The following commit has been merged into the x86/boot branch of tip: Commit-ID: 7f6874eddd81cb2ed784642a7a4321671e158ffe Gitweb: https://git.kernel.org/tip/7f6874eddd81cb2ed784642a7a4321671e158ffe Author: Hou Wenlong AuthorDate: Wed, 12 Jul 2023 11:30:06 +08:00 Committer: Ingo Molnar CommitterDate: Mon, 16 Oct 2023 13:38:24 +02:00 x86/head/64: Add missing __head annotation to startup_64_load_idt() 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 in case it doesn't. Signed-off-by: Hou Wenlong Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/efcc5b5e18af880e415d884e072bf651c1fa7c34.1689130310.git.houwenlong.hwl@antgroup.com --- 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 f41625d..f0efc22 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);