From nobody Sun May 19 03:02:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1564175411; cv=none; d=zoho.com; s=zohoarc; b=KmDN+mXm+LUMpqP1uzw95eP3kTd0pN2zaC+5UQylQVVibS1OeVmnnKf5t4eix5KaI9OO4lCOKl94/EdFw5Kduc+ko/Osmm4cKk2aXianyqZEWGIq/7Y603fMEn4l3FF984y34cZ1fO1dFvHRWJPrdfROlaF9wV6F8LSIDmYwtas= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564175411; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=XnoLzOAOnb6MNH3lFluMI6VqanzD4/I04j0bOgmAOBw=; b=f4GplXg6UJZKeMUo+AJRRzhv6utIEjjfw5WL5yjYKU4NxkOW9IA0rcW2dRDD9JClknOU4bjkG81lnJKcjzHMcpHKcgOLRoueyfDjjFDWLCdPUJb345gGJKl2T7JPgnLM6fNfrefwrjOmN1yfWEtMkFh+UxrB37Gh9U2AeND3008= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1564175411305938.4047594921491; Fri, 26 Jul 2019 14:10:11 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hr7Sb-0001Pg-Mx; Fri, 26 Jul 2019 21:09:05 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hr7Sa-0001PG-68 for xen-devel@lists.xenproject.org; Fri, 26 Jul 2019 21:09:04 +0000 Received: from esa6.hc3370-68.iphmx.com (unknown [216.71.155.175]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 958944ea-afe9-11e9-9a6a-bf56f8ed891f; Fri, 26 Jul 2019 21:08:58 +0000 (UTC) X-Inumbo-ID: 958944ea-afe9-11e9-9a6a-bf56f8ed891f Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa6.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: dHzP8NI7TRlgccmHeDRAroNjZ1OH8ViuzLIQsgJEkZvz3Qv1zQAnEqifUxz2CmqDJy1mZJlu1Q f8ir+zR2of+2UmP1ge63imVn/Z1YnGoQOwz/H/aXbZ5FtKBsXD7yr/sKwTt7GSrgkzij30kiSI hCm6Wlg60UfJp2PhR46PheBWv850l4XemE8g3RVzH32/BG2yuqw2hCKp4aLy0+6ljfIvjYAlB1 SHYoeH0hMh3CenD3X/jnHGS9xv/Uhy5nNbwENmow27lnX3X9gqOSQ6lrTzQwrqNnQAOtgh1dzI VRA= X-SBRS: 2.7 X-MesageID: 3613655 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,312,1559534400"; d="scan'208";a="3613655" From: Andrew Cooper To: Xen-devel Date: Fri, 26 Jul 2019 22:08:51 +0100 Message-ID: <20190726210854.6408-2-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190726210854.6408-1-andrew.cooper3@citrix.com> References: <20190726210854.6408-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 1/4] arm/percpu: Move {get, set}_processor_id() into smp.h X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" For cleanup purposes, it is necessary for asm/percpu.h to not use DECLARE_PER_CPU() itself. asm/smp.h is arguably a better place for it to live anyway. Signed-off-by: Andrew Cooper --- CC: Stefano Stabellini CC: Julien Grall CC: Volodymyr Babchuk --- xen/include/asm-arm/percpu.h | 6 ------ xen/include/asm-arm/smp.h | 8 ++++++++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/xen/include/asm-arm/percpu.h b/xen/include/asm-arm/percpu.h index 264120b192..5ce81a1707 100644 --- a/xen/include/asm-arm/percpu.h +++ b/xen/include/asm-arm/percpu.h @@ -25,12 +25,6 @@ void percpu_init_areas(void); =20 #define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name =20 -DECLARE_PER_CPU(unsigned int, cpu_id); -#define get_processor_id() (this_cpu(cpu_id)) -#define set_processor_id(id) do { \ - WRITE_SYSREG(__per_cpu_offset[id], TPIDR_EL2); \ - this_cpu(cpu_id) =3D (id); \ -} while(0) #endif =20 #endif /* __ARM_PERCPU_H__ */ diff --git a/xen/include/asm-arm/smp.h b/xen/include/asm-arm/smp.h index fdbcefa241..7d4edfa0a0 100644 --- a/xen/include/asm-arm/smp.h +++ b/xen/include/asm-arm/smp.h @@ -7,11 +7,19 @@ #include #endif =20 +DECLARE_PER_CPU(unsigned int, cpu_id); DECLARE_PER_CPU(cpumask_var_t, cpu_sibling_mask); DECLARE_PER_CPU(cpumask_var_t, cpu_core_mask); =20 #define cpu_is_offline(cpu) unlikely(!cpu_online(cpu)) =20 +#define get_processor_id() this_cpu(cpu_id) +#define set_processor_id(id) \ +do { \ + WRITE_SYSREG(__per_cpu_offset[(id)], TPIDR_EL2); \ + this_cpu(cpu_id) =3D (id); \ +} while ( 0 ) + #define raw_smp_processor_id() (get_processor_id()) =20 /* --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Sun May 19 03:02:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1564175416; cv=none; d=zoho.com; s=zohoarc; b=ohz+qpvv2Y4bSafekX6y+Pwkt8miyyctlUBV840kl/5sVJObKNfayU6wKxI1WuSRT7rNbhLiLXWVmcRCOwX04I3lHLVvbquuyHThHcBbVVYlupD21kUC29PIJemWIQctLmiI2NRrgsHXYWsSDpxFTs8/38heM6+hdncY3POGhV8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564175416; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=B6s+INMP69R27R26JSsMvsYYvSYTT8hNWXAE8eXuE5E=; b=B+RhOg6Y43NuqAOvu/gei4X5Iw98U84cuW0mQawEWpu3FkmKzYVwSiYF3xYoY0p4t/xBotd/uKQxfTPJycswA0psLkNd4XM2egJ3Suo6wnkizN5nsLubgQYvtCXfwRItXD8wAWoJx4sVj5bUjq4ltJ/uKGThsb1xXuIn/XzJGbI= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1564175416680235.5779313744997; Fri, 26 Jul 2019 14:10:16 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hr7Sd-0001Q9-MA; Fri, 26 Jul 2019 21:09:07 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hr7Sb-0001PX-C8 for xen-devel@lists.xenproject.org; Fri, 26 Jul 2019 21:09:05 +0000 Received: from esa6.hc3370-68.iphmx.com (unknown [216.71.155.175]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 9896f862-afe9-11e9-a538-af422943e65b; Fri, 26 Jul 2019 21:09:03 +0000 (UTC) X-Inumbo-ID: 9896f862-afe9-11e9-a538-af422943e65b Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa6.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: s6VJ7E6nyrRnEIgN2478Qx13OYDbRl6tJN21hxCerridkSYK002MZn4yiPWy9hVYGVddHnz5HN Iiv5/lwCQdqmKewQXzoNPfDIw1+7E1qz4Ko9K9/jjdUbMGutUyE22XyQUqSoxUWLZzPvFbGs0V xmEKxwwHpRMjM9hNaS7dEYPRusWPJ2B8LMbhZCSRUQRqdThwQSM77/dP3R4tCCOrOyDwLu1fio 3uv9t4mxE+9v8dgmPmPwp9AxSnjMci78LTCjfQt+azYKqrs8BQ3EagEbJ5Y2gupKIiA6QlyPJb WVw= X-SBRS: 2.7 X-MesageID: 3613657 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,312,1559534400"; d="scan'208";a="3613657" From: Andrew Cooper To: Xen-devel Date: Fri, 26 Jul 2019 22:08:52 +0100 Message-ID: <20190726210854.6408-3-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190726210854.6408-1-andrew.cooper3@citrix.com> References: <20190726210854.6408-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 2/4] xen/percpu: Drop unused xen/percpu.h includes X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Andrew Cooper , Julien Grall , Jan Beulich , Volodymyr Babchuk , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" None of these headers use any PER_CPU() infrastructure. xen/rwlock.h however does, and picked it up transitively via xen/spinlock.h, so include it properly. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich Reviewed-by: Roger Pau Monn=C3=A9 --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monn=C3=A9 CC: Stefano Stabellini CC: Julien Grall CC: Volodymyr Babchuk --- xen/include/asm-x86/i387.h | 1 - xen/include/xen/multicall.h | 1 - xen/include/xen/rcupdate.h | 1 - xen/include/xen/rwlock.h | 1 + xen/include/xen/spinlock.h | 1 - 5 files changed, 1 insertion(+), 4 deletions(-) diff --git a/xen/include/asm-x86/i387.h b/xen/include/asm-x86/i387.h index 434a7761a5..a783549db9 100644 --- a/xen/include/asm-x86/i387.h +++ b/xen/include/asm-x86/i387.h @@ -12,7 +12,6 @@ #define __ASM_I386_I387_H =20 #include -#include =20 /* Byte offset of the stored word size within the FXSAVE area/portion. */ #define FPU_WORD_SIZE_OFFSET 511 diff --git a/xen/include/xen/multicall.h b/xen/include/xen/multicall.h index d0aa52009c..ac8238660a 100644 --- a/xen/include/xen/multicall.h +++ b/xen/include/xen/multicall.h @@ -5,7 +5,6 @@ #ifndef __XEN_MULTICALL_H__ #define __XEN_MULTICALL_H__ =20 -#include #ifdef CONFIG_COMPAT #include #endif diff --git a/xen/include/xen/rcupdate.h b/xen/include/xen/rcupdate.h index 3402eb5caf..13850865ed 100644 --- a/xen/include/xen/rcupdate.h +++ b/xen/include/xen/rcupdate.h @@ -33,7 +33,6 @@ =20 #include #include -#include #include #include =20 diff --git a/xen/include/xen/rwlock.h b/xen/include/xen/rwlock.h index 35657c56c4..3dfea1ac2a 100644 --- a/xen/include/xen/rwlock.h +++ b/xen/include/xen/rwlock.h @@ -1,6 +1,7 @@ #ifndef __RWLOCK_H__ #define __RWLOCK_H__ =20 +#include #include =20 #include diff --git a/xen/include/xen/spinlock.h b/xen/include/xen/spinlock.h index a811b73bf3..2c7415e23a 100644 --- a/xen/include/xen/spinlock.h +++ b/xen/include/xen/spinlock.h @@ -4,7 +4,6 @@ #include #include #include -#include =20 #ifndef NDEBUG struct lock_debug { --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Sun May 19 03:02:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1564175423; cv=none; d=zoho.com; s=zohoarc; b=TqK9XtD6DOLK5pLCLoC9HULTxtkREIKa5AAiLrVunf1S7XFunMrxojuvDU1aUjqdXsVSpnBwsUl1tJZ6syGKuuAyoHClg/ZF5VBVATKWcNxJYoeCrFNS2Cj5KjvNZtBvM/cpGKyq8zAOYxM1xVDEuXnLg1yK4J0D+tNXlNz4O6Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564175423; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=F9X0B2Q7PXDeVSmDvrncLsNTOE2cijQCLzgC5k2KwRg=; b=mFpx1HdmWBoyKQlCwZ62cAAbk9eHFvOde3L71egeu4CNPK7utRwNrRXFxHLZGyLiQyETqmAFJQ5hiMc5HKUxuYSvhhGNlQvMf35tR3JqY0gB7euCWVLmlyrLeBrVcGF5UGBVHNlY+ccph6RjnSsMswXK6ETdKyhbUyWmx39a3VM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1564175423677270.1937913487958; Fri, 26 Jul 2019 14:10:23 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hr7Sa-0001PL-E3; Fri, 26 Jul 2019 21:09:04 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hr7SY-0001PB-UL for xen-devel@lists.xenproject.org; Fri, 26 Jul 2019 21:09:02 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 968a9cfe-afe9-11e9-b341-4fb6c9d206aa; Fri, 26 Jul 2019 21:09:00 +0000 (UTC) X-Inumbo-ID: 968a9cfe-afe9-11e9-b341-4fb6c9d206aa Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa3.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: aLiF5VPRwK3JWDL3LohE+JYAoXE9zpIfJbC5fD+jKvH/Ou5Ew6TTT8SB2HhjOTmKxk7MV37j6c gaqlKt1ORbWz+vyjC73wzoSBDyRqVaLhmEBXpjVWloD5gpm8q1CuegsGb1wH7QZFJEQHRTeOFs bb7GxdKNt7LVo8Ynurpv0h+mIZTyhEapOiUxgq6JjGUwLLWYf51jC3/8BNqntwcoie3k8HuBmj WkQIpyoksIqXRG7i9ZdfFTg6ExOZbBwE+WrCtBptmR0LxebD8lMoVWXt1URy6W/7YMJPosyi3X 2ho= X-SBRS: 2.7 X-MesageID: 3511831 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,312,1559534400"; d="scan'208";a="3511831" From: Andrew Cooper To: Xen-devel Date: Fri, 26 Jul 2019 22:08:53 +0100 Message-ID: <20190726210854.6408-4-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190726210854.6408-1-andrew.cooper3@citrix.com> References: <20190726210854.6408-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 3/4] xen/percpu: Drop unused asm/percpu.h includes X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Andrew Cooper , Julien Grall , Jan Beulich , Volodymyr Babchuk , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" These files either don't use any PER_CPU() infrastructure at all, or use DEFINE_PER_CPU_*(). This is declared in xen/percpu.h, not asm/percpu.h, wh= ich means that xen/percpu.h is included via a different path. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich Acked-by: Julien Grall Reviewed-by: Roger Pau Monn=C3=A9 --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monn=C3=A9 CC: Stefano Stabellini CC: Julien Grall CC: Volodymyr Babchuk --- xen/arch/arm/xen.lds.S | 1 - xen/arch/x86/acpi/cpufreq/cpufreq.c | 1 - xen/arch/x86/acpi/cpufreq/powernow.c | 1 - xen/arch/x86/crash.c | 1 - xen/arch/x86/xen.lds.S | 1 - xen/common/core_parking.c | 2 +- xen/drivers/cpufreq/cpufreq.c | 2 +- xen/include/asm-x86/asm_defns.h | 1 - xen/include/xen/kexec.h | 1 - 9 files changed, 2 insertions(+), 9 deletions(-) diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S index 07cbdf2543..09ec99baf5 100644 --- a/xen/arch/arm/xen.lds.S +++ b/xen/arch/arm/xen.lds.S @@ -4,7 +4,6 @@ =20 #include #include -#include #undef ENTRY #undef ALIGN =20 diff --git a/xen/arch/x86/acpi/cpufreq/cpufreq.c b/xen/arch/x86/acpi/cpufre= q/cpufreq.c index 7086d1aa15..f05275578d 100644 --- a/xen/arch/x86/acpi/cpufreq/cpufreq.c +++ b/xen/arch/x86/acpi/cpufreq/cpufreq.c @@ -38,7 +38,6 @@ #include #include #include -#include #include #include #include diff --git a/xen/arch/x86/acpi/cpufreq/powernow.c b/xen/arch/x86/acpi/cpufr= eq/powernow.c index 72ab6a1eba..3cf9c6cd05 100644 --- a/xen/arch/x86/acpi/cpufreq/powernow.c +++ b/xen/arch/x86/acpi/cpufreq/powernow.c @@ -32,7 +32,6 @@ #include #include #include -#include #include #include #include diff --git a/xen/arch/x86/crash.c b/xen/arch/x86/crash.c index a9f3e1890c..ce361afd7c 100644 --- a/xen/arch/x86/crash.c +++ b/xen/arch/x86/crash.c @@ -10,7 +10,6 @@ =20 #include #include -#include #include #include #include diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index c82e1e504a..fca25ad54c 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -3,7 +3,6 @@ =20 #include #include -#include #undef ENTRY #undef ALIGN =20 diff --git a/xen/common/core_parking.c b/xen/common/core_parking.c index 7ae5d6278e..c22710f94d 100644 --- a/xen/common/core_parking.c +++ b/xen/common/core_parking.c @@ -19,7 +19,7 @@ #include #include #include -#include + #include =20 #define CORE_PARKING_INCREMENT 1 diff --git a/xen/drivers/cpufreq/cpufreq.c b/xen/drivers/cpufreq/cpufreq.c index ba9897a22b..2d716abf72 100644 --- a/xen/drivers/cpufreq/cpufreq.c +++ b/xen/drivers/cpufreq/cpufreq.c @@ -41,7 +41,7 @@ #include #include #include -#include + #include #include =20 diff --git a/xen/include/asm-x86/asm_defns.h b/xen/include/asm-x86/asm_defn= s.h index 4fe5556a34..c4f49a35d3 100644 --- a/xen/include/asm-x86/asm_defns.h +++ b/xen/include/asm-x86/asm_defns.h @@ -7,7 +7,6 @@ #include #endif #include -#include #include #include #include diff --git a/xen/include/xen/kexec.h b/xen/include/xen/kexec.h index f5b9d165ae..1068f34c5b 100644 --- a/xen/include/xen/kexec.h +++ b/xen/include/xen/kexec.h @@ -4,7 +4,6 @@ #ifdef CONFIG_KEXEC =20 #include -#include #include #include =20 --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel From nobody Sun May 19 03:02:42 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1564175413; cv=none; d=zoho.com; s=zohoarc; b=QitlLs7j958lJ3pOJaTrnC2Q6daGEHVjoI7WIOVgbtDLq2Y74cdPeogCSFKI2VMEFpeYKGx8hWiTAnBbFflGAbJTsYBq7Hl8IFIVfhSeDUz6QGWadCvpzbiz7xmVWjPurWyAh0CBpGxCzEmlc3SjnKtrGemhVj8bMoJqYOOBeWE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564175413; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=M0Fbtp7Gy9UOBNJ3eSWV3IGSRMdAZ7Xv16/oxZhGs7c=; b=nZP+QicpK24e2TO+hrPvZ+d0BIboVXSFSfhziz9ypNN+cQtADX04AbgL6IA5ddVC3JFTVmrWDtAitkL3x720PFzs0EvoayeOhqMACM3j1SftV0ahfOMTCS3ai7B24xad6xq5mmMiAkOn7MTYxWz8HywcATLGRA3LZBqh5Tb86Hs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1564175413817124.2505359631823; Fri, 26 Jul 2019 14:10:13 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hr7Sd-0001Ps-07; Fri, 26 Jul 2019 21:09:07 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hr7Sb-0001PR-5E for xen-devel@lists.xenproject.org; Fri, 26 Jul 2019 21:09:05 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 9816f932-afe9-11e9-a62d-0305b2eb3a58; Fri, 26 Jul 2019 21:09:02 +0000 (UTC) X-Inumbo-ID: 9816f932-afe9-11e9-a62d-0305b2eb3a58 Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa3.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa3.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa3.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: nLfSvIWUAeJeqc1qom8x964S9G6ziYAPUQMteMYxkJvsO962ISb1O5dYE7j8kuv9eY6ZHl2PlB DjRNJ4upQFSB1A3QlsZnWgoaQGKa+APZxB6WeSQHnt3Xp9pNMDT+XL8Y8QZPtLWFirXDPqxCAf rv65aSKh/TVuW7ahkuaizAlzDFYlBiea45Zy5NCyv4gsWyBVMv6jSd0SwtPSYcSmclvkRQaxuz xXolUZzSLJkitTPXjhHxKsONGvBDBvZUbsm0wgLOtp0r/Dt41u5Yrc7mkisFE07B5gSfHT8u+z LhY= X-SBRS: 2.7 X-MesageID: 3511835 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,312,1559534400"; d="scan'208";a="3511835" From: Andrew Cooper To: Xen-devel Date: Fri, 26 Jul 2019 22:08:54 +0100 Message-ID: <20190726210854.6408-5-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190726210854.6408-1-andrew.cooper3@citrix.com> References: <20190726210854.6408-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 4/4] xen/percpu: Make DECLARE_PER_CPU() and __DEFINE_PER_CPU() common X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Andrew Cooper , Julien Grall , Jan Beulich , Volodymyr Babchuk , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" These macros are identical across the architectures, and shouldn't be separ= ate from the DEFINE_PER_CPU*() infrastructure. This converts the final asm/percpu.h includes, which were all using DECLARE_PER_CPU(), to include xen/percpu.h instead. Signed-off-by: Andrew Cooper Acked-by: Julien Grall Reviewed-by: Roger Pau Monn=C3=A9 --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monn=C3=A9 CC: Stefano Stabellini CC: Julien Grall CC: Volodymyr Babchuk --- xen/arch/x86/cpu/mcheck/mce.h | 3 ++- xen/include/asm-arm/percpu.h | 5 ----- xen/include/asm-x86/cpuid.h | 2 +- xen/include/asm-x86/irq.h | 2 +- xen/include/asm-x86/percpu.h | 5 ----- xen/include/xen/percpu.h | 6 ++++++ xen/xsm/flask/include/avc.h | 3 ++- 7 files changed, 12 insertions(+), 14 deletions(-) diff --git a/xen/arch/x86/cpu/mcheck/mce.h b/xen/arch/x86/cpu/mcheck/mce.h index f2cebccdd1..7dcea7b454 100644 --- a/xen/arch/x86/cpu/mcheck/mce.h +++ b/xen/arch/x86/cpu/mcheck/mce.h @@ -3,12 +3,13 @@ #define _MCE_H =20 #include +#include #include #include + #include #include #include -#include =20 #include "x86_mca.h" #include "mctelem.h" diff --git a/xen/include/asm-arm/percpu.h b/xen/include/asm-arm/percpu.h index 5ce81a1707..f1a8768080 100644 --- a/xen/include/asm-arm/percpu.h +++ b/xen/include/asm-arm/percpu.h @@ -10,9 +10,6 @@ extern char __per_cpu_start[], __per_cpu_data_end[]; extern unsigned long __per_cpu_offset[NR_CPUS]; void percpu_init_areas(void); =20 -#define __DEFINE_PER_CPU(attr, type, name) \ - attr __typeof__(type) per_cpu_ ## name - #define per_cpu(var, cpu) \ (*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu])) #define this_cpu(var) \ @@ -23,8 +20,6 @@ void percpu_init_areas(void); #define this_cpu_ptr(var) \ (*RELOC_HIDE(var, READ_SYSREG(TPIDR_EL2))) =20 -#define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name - #endif =20 #endif /* __ARM_PERCPU_H__ */ diff --git a/xen/include/asm-x86/cpuid.h b/xen/include/asm-x86/cpuid.h index 548108f948..1b00e832d6 100644 --- a/xen/include/asm-x86/cpuid.h +++ b/xen/include/asm-x86/cpuid.h @@ -2,11 +2,11 @@ #define __X86_CPUID_H__ =20 #include -#include =20 #ifndef __ASSEMBLY__ #include #include +#include =20 #include #include diff --git a/xen/include/asm-x86/irq.h b/xen/include/asm-x86/irq.h index bc0c0c15d2..d3124f7b5d 100644 --- a/xen/include/asm-x86/irq.h +++ b/xen/include/asm-x86/irq.h @@ -6,10 +6,10 @@ #include #include #include +#include #include #include #include -#include =20 extern unsigned int nr_irqs_gsi; extern unsigned int nr_irqs; diff --git a/xen/include/asm-x86/percpu.h b/xen/include/asm-x86/percpu.h index 5b6cef04c4..2b0c29a233 100644 --- a/xen/include/asm-x86/percpu.h +++ b/xen/include/asm-x86/percpu.h @@ -7,17 +7,12 @@ extern unsigned long __per_cpu_offset[NR_CPUS]; void percpu_init_areas(void); #endif =20 -#define __DEFINE_PER_CPU(attr, type, name) \ - attr __typeof__(type) per_cpu_ ## name - /* var is in discarded region: offset to particular copy we want */ #define per_cpu(var, cpu) \ (*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu])) #define this_cpu(var) \ (*RELOC_HIDE(&per_cpu__##var, get_cpu_info()->per_cpu_offset)) =20 -#define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name - #define this_cpu_ptr(var) \ (*RELOC_HIDE(var, get_cpu_info()->per_cpu_offset)) =20 diff --git a/xen/include/xen/percpu.h b/xen/include/xen/percpu.h index 71a31cc361..48a43f769d 100644 --- a/xen/include/xen/percpu.h +++ b/xen/include/xen/percpu.h @@ -3,6 +3,12 @@ =20 #include =20 +#define DECLARE_PER_CPU(type, name) \ + extern __typeof__(type) per_cpu__ ## name + +#define __DEFINE_PER_CPU(attr, type, name) \ + attr __typeof__(type) per_cpu_ ## name + /* * Separate out the type, so (int[3], foo) works. * diff --git a/xen/xsm/flask/include/avc.h b/xen/xsm/flask/include/avc.h index 93386bd7a1..c14bd07a2b 100644 --- a/xen/xsm/flask/include/avc.h +++ b/xen/xsm/flask/include/avc.h @@ -11,8 +11,9 @@ =20 #include #include +#include #include -#include + #include "flask.h" #include "av_permissions.h" #include "security.h" --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel