Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1558796pxb; Tue, 26 Oct 2021 11:13:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU/RTP2o/USzn2fL7RazOnwNK2VimOrwQEtHZY7ZXXnRjY85S5E0NVXGdIY9kNwAxfYESC X-Received: by 2002:a63:b54a:: with SMTP id u10mr20110953pgo.69.1635272017253; Tue, 26 Oct 2021 11:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635272017; cv=none; d=google.com; s=arc-20160816; b=hPJrk/HA/5h0m1o4+YpXtxNcYWprL87N/UxpJ4TUkEaDPLnGSMpU9Hq4M4OsU3Iwjw bYm6iXqPxv2UnmLSFFahq87OVS1BZYgGYIkGHEP3BH0CtWf0ewZCvAlgnI3ZFNQ0j18X pWrepBliMOlVf28v5ee3nICPKPAx5KkVamaOiv3t0kOtVMiACer1JgMLKUmSCD1Z/YJa avGLJpH4ADMKpBa3jH9Z6wkq6gH2JSICotGnzujWW3+zafl1hAcR8jLdh6NWY7yGn57T kDdF4FiwuAOu4rwzrJn+Qnphsj/rK+DRq+iBZ6gwAaFZVb98l6Ek2BOJhr73fu2xgDdO NPTQ== 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 :dkim-signature; bh=hqSVKtYY8joyJkymwaNj/fS3ZI1plxGHSEK/zWKpCXw=; b=VLloc8SbgdAi0p/6qdoSUx7d5SG/N1cL1KUdSV5Rii1I77RFCJYMHJTa6+ViRi0DvW PJDZczGizA97ahFCG8JL9ViL+o0vGIo/qFtnNqSvD39gtd8k1i/ru0M1/okyGnnu/kk1 +tm6m0PRlb6+pVLqWaQ+lVSF09m+Wkv6iv6dm0oPTkrYKR0jmpinEOjnjgfVRPOU0IFR Mo96ZNH02VRGSD2XqD7RbNGuGFj7W9IAKmjBBQS8+oqkLfZ/fj3JDN334yE7FfsDFCKr 1eG2rRUe/4b8GGKRbmEeMH/jrgBQp8CTkGPewD8qQ+xBse4mS27M12tFQXPkZHzz/tZZ EtPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=feIJMHBD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me4si2122128pjb.69.2021.10.26.11.13.21; Tue, 26 Oct 2021 11:13:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=feIJMHBD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236570AbhJZObA (ORCPT + 99 others); Tue, 26 Oct 2021 10:31:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236536AbhJZOau (ORCPT ); Tue, 26 Oct 2021 10:30:50 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B4D1C061224 for ; Tue, 26 Oct 2021 07:28:26 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id v16so5073960ple.9 for ; Tue, 26 Oct 2021 07:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hqSVKtYY8joyJkymwaNj/fS3ZI1plxGHSEK/zWKpCXw=; b=feIJMHBDi8/IDYwu14a7GD3UQHnRH3fll7oK4OvB3eXnncrFwmlsi44f2W9uWGCUnw qsFXl199k//V/IlwzCeFZty6jIRFiKuJ8sJAZaBbMLXPZ8+858/REkATkQGKjerwu9ci E0voktqaC8gdGLy6psdo/6FSQT1eXc+3NVjevgYbnWWsKP/mslnR+nqJvz/zas/2eyVl iC+oQGQHsB0wgMNGOstY5ElYDKwh96QECA+rz5WobhWo2Z0J0nwioMTxIMs3o+5vm8ep wlhKPpMPRw9t3B0HTyavhCZOzdWZd4ACedAuW9tOPmMV8MKTARBEyXTXC6ZZMf7cNmBK typQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hqSVKtYY8joyJkymwaNj/fS3ZI1plxGHSEK/zWKpCXw=; b=j0SwEByxdj1FUblDdfVAvMgGa0HWJm5Qz5QpLG/sMMtuuQl3asCmiCVDWQBs/7QAKU Vd4DjK5nSoHSm/aZnN6VHY2Zuk2QQ9JxGTJOZroDbnp7oC5JInEWVzKIz6bW5nzb/FEw ldEIcYWvrUwM5YFFbbRvC+RYQlHPhnmo0/trHhYKKe+NnXbW+IC+bR+dkc+GkASNfDqW Ws0X/8g31RQ3fYIZYfQ8V+eqJM7Ca2zhL+BrMUJi4bOoaRXBVaCi9piWDhcR/N3XqcKK /cd0suav+XTgTHs6uW6oAYq6CEnJNKqwEEiL9VrA7KKa614V9H2RtZk/3Tf7a8n21X39 I37w== X-Gm-Message-State: AOAM5327XC7Ub5T17Egpflry9MPtQI8siXdSLoL7lstTaZ3OL3RzbxMj d3QqI1gC/g1Tnzugd3ibaU3aS75F7pk= X-Received: by 2002:a17:90b:2317:: with SMTP id mt23mr1604106pjb.53.1635258505932; Tue, 26 Oct 2021 07:28:25 -0700 (PDT) Received: from localhost ([47.88.5.130]) by smtp.gmail.com with ESMTPSA id w185sm22687481pfb.38.2021.10.26.07.28.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Oct 2021 07:28:25 -0700 (PDT) From: Lai Jiangshan To: linux-kernel@vger.kernel.org Cc: x86@kernel.org, Lai Jiangshan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Jan Kiszka , Joerg Roedel , Peter Zijlstra , Sean Christopherson Subject: [PATCH V4 12/50] x86/traps: Move the declaration of native_irq_return_iret into proto.h Date: Tue, 26 Oct 2021 22:27:44 +0800 Message-Id: <20211026142824.18362-2-jiangshanlai@gmail.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20211026141420.17138-1-jiangshanlai@gmail.com> References: <20211026141420.17138-1-jiangshanlai@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lai Jiangshan The declaration of native_irq_return_iret is used in exc_double_fault() only by now. But it will be used in other place later, so the declaration is moved to a header file for preparation. Signed-off-by: Lai Jiangshan --- arch/x86/include/asm/proto.h | 1 + arch/x86/kernel/traps.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/include/asm/proto.h b/arch/x86/include/asm/proto.h index 8c5d1910a848..ee07b3cae213 100644 --- a/arch/x86/include/asm/proto.h +++ b/arch/x86/include/asm/proto.h @@ -13,6 +13,7 @@ void syscall_init(void); #ifdef CONFIG_X86_64 void entry_SYSCALL_64(void); void entry_SYSCALL_64_safe_stack(void); +extern unsigned char native_irq_return_iret[]; long do_arch_prctl_64(struct task_struct *task, int option, unsigned long arg2); #endif diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index 43e38aa302d5..95ac6a9e5ebc 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -359,8 +359,6 @@ DEFINE_IDTENTRY_DF(exc_double_fault) #endif #ifdef CONFIG_X86_ESPFIX64 - extern unsigned char native_irq_return_iret[]; - /* * If IRET takes a non-IST fault on the espfix64 stack, then we * end up promoting it to a doublefault. In that case, take -- 2.19.1.6.gb485710b