Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5501508rdb; Sun, 31 Dec 2023 04:20:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGelFXaajgTOae1EhT0ggAur8ZwPF5Rf6xn0rsp2JcF7ol7xprvKmxq+vG8lx76EvLKdLF+ X-Received: by 2002:ac8:5795:0:b0:428:1de2:e591 with SMTP id v21-20020ac85795000000b004281de2e591mr426412qta.57.1704025256450; Sun, 31 Dec 2023 04:20:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704025256; cv=none; d=google.com; s=arc-20160816; b=H0z88rQfZwLl0zn/qr8aEfDPuis7PNFohkOSXol9eVt9Yi8cyy+NQWs0Iki/07vtvA EIFGope3nBFLqySyI531BFndbRYCsjFKuBmcTyiYTAejIvhMOsINZux8vXIroU8UhCRp Qi0V+QMh+FjhttqBIExjH0fewYchthEDH3a0oJqJD8NEUsh9uLDMcPC2ZVMDT2NGgwy7 /SszUraXaECtXN8UBPfz7tp7yt7t9xbwysPBVCnpXlVGm5Y3Rz9bohptcfzTnACk0Q7h ODNpFOTq2HFGlhioNyzpF7oJ4CH4ZuX+sXOuUF7PsPaADdbrvu/lh+ay0CXgm1l4zDXs bmPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=gwhX+cAV5A0hcUGz8xI0OEKJHWE3jawNxtgj/Y32ErQ=; fh=ufyi9uaZcH7ftZs4zigv2O1ZGe98T1QSchat7SxtGa8=; b=vlXbd+G3UjekeGN2U9n46daIYXkWFu+m8g1fVBA3SVmiDHeHygMV9BYl5kBUoRvlYt /i5nNF8pNHsXbRdx0rdjXMseEjzLmR2LydWUsf7Jl6PkCVoQkWwgp4l13rkZ9lS+dJPs FW78IhP8sZwfkW8DLaHv9J1xDZmxv/L6YFJqvE4v2ixBJL1lqoEFZcBGxdNyPDcaaI7u 9Vo3XHBeLieKgLAyFMVBlK4Ej4lT7ODTkKrdjZ0Y2hhn6Hsm82pa/AtM5uGJLijhZVi2 XHkDq/W67V9ht4XWWV+7d84h7aWnevDIJC7ThiKdq0GYpVRxaRIrPuLPbWEvq/Ifo5bt KOoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QlVpLuWU; spf=pass (google.com: domain of linux-kernel+bounces-13703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y16-20020a05622a121000b00427e838023dsi11145094qtx.269.2023.12.31.04.20.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Dec 2023 04:20:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QlVpLuWU; spf=pass (google.com: domain of linux-kernel+bounces-13703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3813A1C20F55 for ; Sun, 31 Dec 2023 12:20:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 047BD5390; Sun, 31 Dec 2023 12:20:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QlVpLuWU" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0478F4415 for ; Sun, 31 Dec 2023 12:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1d3dee5f534so58277755ad.1 for ; Sun, 31 Dec 2023 04:20:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704025247; x=1704630047; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gwhX+cAV5A0hcUGz8xI0OEKJHWE3jawNxtgj/Y32ErQ=; b=QlVpLuWUo3vf84T8DPP20qaOJkHym9Gmv6dN7v5NuxLH5h5lsBM0CKjAdFhruEwZVr F8mqXUI/7QW3xdn1CxKTCMfGhyBJ8UbjH8n8Eadm0RPchAxXjhXetiuKONx649HqEVD9 +6VlrlhhSAVDdwefzLgYo2/WbbybBP0uMc7Z4V/zA22YPuqLsbZCw0Fn5msHocUESaqa znShDDSV0hB9KJIaEjQwLPW65c1EV01V7bdbkGXGWzMmn9lwyF5cjE3EEHQvCxOwmk3T Y2lKfPKMb9f8mTHOtNGBxqYGN+l3EHQ/HX5NRyHQ0fh98GE2+EIuBbvtqBBa5HJO+z4n mJYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704025247; x=1704630047; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gwhX+cAV5A0hcUGz8xI0OEKJHWE3jawNxtgj/Y32ErQ=; b=gWyQ7zfGsaZYeJ9ArHYKfNcK7664WXNLBcvwgNtlDENya7nU7n8LjkBVQBk3SrSVo8 en6R4CCZkThVBO5r/6NhaGM048Y6zlPJc2LQgRl4EqNLCJ70SWzfZ8wKIg+ZyAXp3FyB wOia/fjgaVwcOo1RCM4IgCAQKrmwsxFlL20lZUTOG77wBhqeQL1WydTfbbNVH0kJteVk LkPG/TjD2xBZgt2vGe6lZCR6rnJjICXKhWhoZurpAugt2dizw3871LJBXO0JtnUuG1jb 7eLPbsAlCzLYVKiUJfGE36N07OjOxqSjXbhjIhoklvgZIDZUZTl89K2eZen3L52j/CpK BVhQ== X-Gm-Message-State: AOJu0YzOa+gVPZCLF7tJeY+GdK65m2TTGFKO1N0Uk23K8tRUVlKTXiNq 6IaMFBWc+9nhmJqUZ4wcWd2bsJeRxydCtA== X-Received: by 2002:a17:903:2285:b0:1d4:3aa8:fa37 with SMTP id b5-20020a170903228500b001d43aa8fa37mr14994904plh.29.1704025246965; Sun, 31 Dec 2023 04:20:46 -0800 (PST) Received: from code.. ([144.202.108.46]) by smtp.gmail.com with ESMTPSA id k24-20020a170902ba9800b001acae9734c0sm18352223pls.266.2023.12.31.04.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Dec 2023 04:20:46 -0800 (PST) From: Yuntao Wang To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Masahiro Yamada , David Woodhouse , Brian Gerst , Usama Arif , Josh Poimboeuf , Ard Biesheuvel , Tom Lendacky , Yuntao Wang Subject: [PATCH] x86/head: Simplify #include "../../x86/xen/xen-head.S" Date: Sun, 31 Dec 2023 20:19:04 +0800 Message-ID: <20231231121904.24622-1-ytcoode@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Since `kernel/head_32.S`, `kernel/head_64.S`, and `xen/xen-head.S` are all located in the same `arch/x86` directory, when `kernel/head_32.S` and `kernel/head_64.S` want to include `xen/xen-head.S`, we can directly use the `#include "../xen/xen-head.S"` directive rather than the more verbose `#include "../../x86/xen/xen-head.S"` directive. They point to the same file. Signed-off-by: Yuntao Wang --- arch/x86/kernel/head_32.S | 2 +- arch/x86/kernel/head_64.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index 487ac57e2c81..7804fff8bf8e 100644 --- a/arch/x86/kernel/head_32.S +++ b/arch/x86/kernel/head_32.S @@ -500,7 +500,7 @@ __INITRODATA int_msg: .asciz "Unknown interrupt or fault at: %p %p %p\n" -#include "../../x86/xen/xen-head.S" +#include "../xen/xen-head.S" /* * The IDT and GDT 'descriptors' are a strange 48-bit object diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 0f8103240fda..af31200a2ebe 100644 --- a/arch/x86/kernel/head_64.S +++ b/arch/x86/kernel/head_64.S @@ -748,7 +748,7 @@ SYM_DATA(smpboot_control, .long 0) SYM_DATA(phys_base, .quad 0x0) EXPORT_SYMBOL(phys_base) -#include "../../x86/xen/xen-head.S" +#include "../xen/xen-head.S" __PAGE_ALIGNED_BSS SYM_DATA_START_PAGE_ALIGNED(empty_zero_page) -- 2.43.0