Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp50221lqg; Fri, 26 Apr 2024 08:29:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0Tu4S/LXgA9umB7EERgNPOaHwLubX1U0hf/vAJJZd5Qxop+s3ie1jeb50CvJNmtEOD0QRb4vmOlQKbzsZlWMwvKt0Tf4JtYX/7DBhEg== X-Google-Smtp-Source: AGHT+IFEXoQIcnh5o1vQNRSzG8IVEyWqhVyg59sBnX+hsUC+WfnD6bUK+y5+DR8fzgcoSVXT5VWf X-Received: by 2002:a17:902:9f88:b0:1ea:42d1:1421 with SMTP id g8-20020a1709029f8800b001ea42d11421mr2878325plq.68.1714145345936; Fri, 26 Apr 2024 08:29:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714145345; cv=pass; d=google.com; s=arc-20160816; b=Q+LWcW8s+bLYd41bXIzEZXYfXz7ORDU6j21SLPMs+Ftu/pxWt4qbqflKQfdOXt3Tt/ q39dR5gia24xDa3qGhNLdIf1Fbbr0b5NdndBlIP6SgWmWb7rtfpzRQ4pUQ3S8OM6NBG4 jurYdtoBDjUbyRhJINKyKFgPBDvNRY2gSsMkZOp6MjtMXiASocLGKyJHAgO7FTHsCHDM hRdmRnKkb/eN4EiiaLlA96RbIGW3ggVQOPmwBHuHmrNCZFt2uIhtZG5EU1ykc0CWLwUT VOuburdE7eEXF2f48UhphQ/a8hGYMYL6NbOgDxHLR9bOjqs+62gnM+ZHS2shs1IdPVQS 8mmg== ARC-Message-Signature: i=2; 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=cDV4WzbEUrK7mNs44f7nwDpan/jkR2HsdhDMDpKH43Y=; fh=Vo4MxA0u7CmSKYL/GjcyKHwusyvU+nKR43bqJem+vcY=; b=pI6tBN8SCdfHqfGzG7RabDFaYky9PbFdA6+bFj+KdBgwmKZxaylPQ9g9hebpvFikNe Rm2xI9nm2+GqMA8nJGN171YAAeo0rGl/apvzOCFHTmKeyppiU+P6C+a603ujHTGq2eKT mCi3rEdn+lAQz0s3OvczQyTKoFyNEE4Eq1mSzP7hTdaiqayG6rqYx2/yaIrGy/Z8+5Lf gEMRnnJ7ja1S/xIAeKf9e6z8vve4N8xFy4FeaqryZFqbPDYPbEyCo99f2Pp6N31mWtzb Ii2zQquJoNUJe0RyO2okl8Elxz/K5ZEh/DT9ow0WvfrAO74/u0VZs/OBqqrZyCUQjchv 5irw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-160250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p2-20020a170902e34200b001dc6699f553si14745319plc.360.2024.04.26.08.29.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 08:29:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-160250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CF49DB25398 for ; Fri, 26 Apr 2024 15:16:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8857173352; Fri, 26 Apr 2024 15:10:54 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16CFD17334D for ; Fri, 26 Apr 2024 15:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714144254; cv=none; b=cvCyHpbt+q+NZPjFKiOZv8jjvTViofYQlpsnI3nqj9hUhgkxgUWAc3wFw8Q/1RXamSn4w41p8KePDyjJC/BFuIQBRMhHbFL9D30JivgSWezq7/d7jSlHpZH3geyXSo63AsHdgfuB/UpmD/m8OxoXRBYuX6hJuU/8z0z+C73qIYY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714144254; c=relaxed/simple; bh=v30SD7r0A+NWheIktLlNyz+vpEpB4J+JxYkc303vXcg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BX7haE4knCU4ZUyXRRdlcaZVHbBfWDTeqBftMrrYn/6YjcCBMHcn0r93a7wBgVUez2vi7Ci0eR5KuSaH6fR65S7OkJos6RcKtnu5P2b++cGzARiFzaZf1YEdVOhBXsJQZAL+t9XFTzCI2ubn9T7vCH+tDC+p0+X4pnZvEgEK05c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BA1C11596; Fri, 26 Apr 2024 08:11:20 -0700 (PDT) Received: from e133380.cambridge.arm.com (e133380.arm.com [10.1.197.52]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D53FE3F73F; Fri, 26 Apr 2024 08:10:49 -0700 (PDT) From: Dave Martin To: x86@kernel.org, linux-kernel@vger.kernel.org Cc: James Morse , Fenghua Yu , Reinette Chatre , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, "Shaopeng Tan (Fujitsu)" , baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , Peter Newman , dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Rex Nie Subject: [PATCH v2 32/35] x86/resctrl: Relax some asm #includes Date: Fri, 26 Apr 2024 16:09:01 +0100 Message-Id: <20240426150904.8854-32-Dave.Martin@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240426150904.8854-1-Dave.Martin@arm.com> References: <20240426150537.8094-1-Dave.Martin@arm.com> <20240426150904.8854-1-Dave.Martin@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit checkpatch.pl identifies some direct #includes of asm headers that can be satisfied by including the corresponding header instead. Fix them. No intentional functional change. Signed-off-by: Dave Martin --- Changes in v2: * New patch. --- arch/x86/kernel/cpu/resctrl/internal.h | 3 +-- arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 4 ++-- arch/x86/kernel/cpu/resctrl/rdtgroup.c | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h index 56218193a8ba..3707f5ccfeda 100644 --- a/arch/x86/kernel/cpu/resctrl/internal.h +++ b/arch/x86/kernel/cpu/resctrl/internal.h @@ -7,10 +7,9 @@ #include #include #include +#include #include -#include - #define L3_QOS_CDP_ENABLE 0x01ULL #define L2_QOS_CDP_ENABLE 0x01ULL diff --git a/arch/x86/kernel/cpu/resctrl/pseudo_lock.c b/arch/x86/kernel/cpu/resctrl/pseudo_lock.c index ba51ab1f70e6..41eea46e62aa 100644 --- a/arch/x86/kernel/cpu/resctrl/pseudo_lock.c +++ b/arch/x86/kernel/cpu/resctrl/pseudo_lock.c @@ -11,6 +11,7 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt +#include #include #include #include @@ -19,12 +20,11 @@ #include #include #include +#include #include #include -#include #include -#include #include #include "../../events/perf_event.h" /* For X86_CONFIG() */ diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/resctrl/rdtgroup.c index b797dc4804d3..6de33de5fa9b 100644 --- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -29,7 +30,6 @@ #include -#include #include "internal.h" DEFINE_STATIC_KEY_FALSE(rdt_enable_key); -- 2.34.1