From nobody Fri Nov 22 13:54:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1719001206; cv=none; d=zohomail.com; s=zohoarc; b=lE/D7u2Oiyf0tOwqFcmaOr+rqpxoYaWBRfErXzHyJFGhLiPaqO3+LOUbll1YAuZz5moJIuOyPQfVlNuAd9cpx9tOL7J8cvZqfePpVDEeXN0qJAM8SqeXHXOgvpiKN+CqMY7VIVx5lKVli/bPP/jpVgFjow9jwSlkjmO+ncQK3fc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1719001206; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=RNg2DzwYEol0Dd/MIahRG8oCTZpkXejfnW6xOn3sPPQ=; b=Zk8BvZaHVxL6zHW6OaSWZD7S48hTgDkUqybVNl/JhMkhxtKGnxsSB0R1agPDfK7ye6UcDCj0At/bT3S1JzELvanqMGnK0DETeC9etoUQylHMTCvHilXjE1esyGDbUY4dQaJEI6uSXGOmo7MncDLFslovl2MxTHRFR1eqQUmcSo4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1719001206511111.52105478285068; Fri, 21 Jun 2024 13:20:06 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.745528.1152662 (Exim 4.92) (envelope-from ) id 1sKkjS-0006mQ-2I; Fri, 21 Jun 2024 20:19:38 +0000 Received: by outflank-mailman (output) from mailman id 745528.1152662; Fri, 21 Jun 2024 20:19:38 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sKkjR-0006mJ-Vw; Fri, 21 Jun 2024 20:19:37 +0000 Received: by outflank-mailman (input) for mailman id 745528; Fri, 21 Jun 2024 20:19:36 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sKkjQ-0006Xk-Kl for xen-devel@lists.xenproject.org; Fri, 21 Jun 2024 20:19:36 +0000 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [2a00:1450:4864:20::62f]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 940913f6-300b-11ef-90a3-e314d9c70b13; Fri, 21 Jun 2024 22:19:36 +0200 (CEST) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a6ef793f4b8so252384666b.1 for ; Fri, 21 Jun 2024 13:19:36 -0700 (PDT) Received: from andrewcoop.eng.citrite.net ([160.101.139.1]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6fcf48b3a6sm116947466b.87.2024.06.21.13.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 13:19:33 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 940913f6-300b-11ef-90a3-e314d9c70b13 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1719001175; x=1719605975; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RNg2DzwYEol0Dd/MIahRG8oCTZpkXejfnW6xOn3sPPQ=; b=QTNoX5U6rmpJICA0jNsaTU8eA0+ISQhdY8RNztrrt+NdDZKTpQ3AsuZrss63UxYXAy q/XVtRUgAq57Ok6wpfL3I7ZLk98ZSCuWMxToMFk+/6KMcFO3SfPvLgVeV+oxGrliuF10 aij2VZyjFLkbh27aylC9RW1IEiEhhcvwOepiM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719001175; x=1719605975; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RNg2DzwYEol0Dd/MIahRG8oCTZpkXejfnW6xOn3sPPQ=; b=kZLjqjeMilmo5YofW8g8aDXj51yXgJCLk5B1359fBBD3Q3urp7+u+reVQrKg928SoB aP5zIBVY/7OoUniL5qeF2A3Hq1ogV0042R7Nrz3QN1DUzjNzguN/3+6zGZRvRkvEPs1l h6UzdQ7b/6weCzHOinKW2MDGvwaSlJTR+kcNB+CsgLRJwbLX6y34NbRcvxALxoEc5gqH J3CK5rck203zN6x3TKPupJcA5EBog2xXwmf+L0wFTdH2lKuCrFecsT4FlJjNCVnHMq+G dbcUQZyf339vC9q/yP/SkT+vzXXVegCal5uUGkKChQZqRbdXH8Hc1Eq7aA/w0jSAE9s8 efxQ== X-Gm-Message-State: AOJu0YynFIHRzBxLEhZoMeD7s/EZMPUK0hSkLcghngVuoTNWBlG0SZ8p LvJhz+tzuOiNH9lg6uEMYeOQyjBqBH22MVuE+t0GpkjHUxcQwksQB80d1ZIhT5FK2U2CEO809y1 v38E= X-Google-Smtp-Source: AGHT+IGHl4OM1ru7y/HT5MSJYwiduCg/9TtIS6T/sCUpcaB58OFHVIFvYyPaAgoCqMBV1HBaeivDLA== X-Received: by 2002:a17:907:910d:b0:a6f:dd94:c53d with SMTP id a640c23a62f3a-a6fdd94c91amr21152666b.75.1719001174723; Fri, 21 Jun 2024 13:19:34 -0700 (PDT) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Shawn Anastasio , Oleksii Kurochko , George Dunlap , Jan Beulich , Stefano Stabellini , Julien Grall Subject: [PATCH 1/3] xen/riscv: Drop legacy __ro_after_init definition Date: Fri, 21 Jun 2024 21:19:26 +0100 Message-Id: <20240621201928.319293-2-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240621201928.319293-1-andrew.cooper3@citrix.com> References: <20240621201928.319293-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1719001207597100001 Content-Type: text/plain; charset="utf-8" Hide the legacy __ro_after_init definition in xen/cache.h for RISC-V, to av= oid its use creeping in. Only mm.c needs adjusting as a consequence No functional change. Signed-off-by: Andrew Cooper Reviewed-by: Oleksii Kurochko --- CC: Shawn Anastasio CC: Oleksii Kurochko CC: George Dunlap CC: Jan Beulich CC: Stefano Stabellini CC: Julien Grall https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1342686294 --- xen/arch/riscv/mm.c | 2 +- xen/include/xen/cache.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/arch/riscv/mm.c b/xen/arch/riscv/mm.c index 053f043a3d2a..3ebaf6da01cc 100644 --- a/xen/arch/riscv/mm.c +++ b/xen/arch/riscv/mm.c @@ -1,11 +1,11 @@ /* SPDX-License-Identifier: GPL-2.0-only */ =20 -#include #include #include #include #include #include +#include =20 #include #include diff --git a/xen/include/xen/cache.h b/xen/include/xen/cache.h index 55456823c543..82a3ba38e3e7 100644 --- a/xen/include/xen/cache.h +++ b/xen/include/xen/cache.h @@ -15,7 +15,9 @@ #define __cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES))) #endif =20 +#if defined(CONFIG_ARM) || defined(CONFIG_X86) || defined(CONFIG_PPC64) /* TODO: Phase out the use of this via cache.h */ #define __ro_after_init __section(".data.ro_after_init") +#endif =20 #endif /* __LINUX_CACHE_H */ --=20 2.39.2