From nobody Fri Oct 31 03:41:54 2025 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=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1750238028; cv=none; d=zohomail.com; s=zohoarc; b=Zc+8a2lfVTWxbj+/qKZcojFpHbsT/EAgjZOzHfrht+1BSeFBmatVFVQsjkCUMIA5vQXUjB33mC5E09p84b/6i9qR9ntB8gL7ih+NWCDGHpopi2f1M+fAyQL2PSjKPH2yLBTbirc+V8lNtQCvawq4LtmR5c9+YiaeO3QfTLYbUF0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1750238028; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=SimK3Vzm4oopunXcaB2KG1naXZ0rung4wUt4Ht0KGxk=; b=cka1GCWqfoYhvX00DtgNkxA1ABkYP5ew918ssina09GuFPlgwhxBp6UXobjFnKuxzZvofw9YqZR5AgTxv542y/sc1bqOO1EA1AU2VHUiTz6dlFmy/fCLRLRb9sx4Tk/QD41u60PfRQRo636BfC/El9HmNvrcc7hIvrc18KkMvNI= 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=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 175023802846973.89892638422532; Wed, 18 Jun 2025 02:13:48 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1018980.1395860 (Exim 4.92) (envelope-from ) id 1uRorH-0003um-Gu; Wed, 18 Jun 2025 09:13:27 +0000 Received: by outflank-mailman (output) from mailman id 1018980.1395860; Wed, 18 Jun 2025 09:13:27 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uRorH-0003uf-EJ; Wed, 18 Jun 2025 09:13:27 +0000 Received: by outflank-mailman (input) for mailman id 1018980; Wed, 18 Jun 2025 09:13:25 +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 1uRorF-0003uZ-He for xen-devel@lists.xenproject.org; Wed, 18 Jun 2025 09:13:25 +0000 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [2a00:1450:4864:20::629]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 7c03e442-4c24-11f0-a30a-13f23c93f187; Wed, 18 Jun 2025 11:13:23 +0200 (CEST) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-adb2bb25105so1133818466b.0 for ; Wed, 18 Jun 2025 02:13:23 -0700 (PDT) Received: from fedora.. (user-109-243-64-38.play-internet.pl. [109.243.64.38]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-adec8982f4esm1037154766b.176.2025.06.18.02.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jun 2025 02:13:21 -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: 7c03e442-4c24-11f0-a30a-13f23c93f187 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750238002; x=1750842802; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SimK3Vzm4oopunXcaB2KG1naXZ0rung4wUt4Ht0KGxk=; b=L3o50coiDgKqya0gaoswyG3te/PQHDCOfdu0x7txPRQXOkjVkLUkjVDC/V6tkQJn9q SS8wiPfE1Jl0R/xeaPyI8HckOYhXqhBtcfTsGShGpxPXhKlJ3T4S3eT2d6CsP+9wKRsR fGXz7/eWM6cprCzJ6OXb1iCPJ2ug3031c1jFoON+t5cNKBI6ef6TAZ/1wwODlKC9Tl91 yVDtgZzv/ylnfEv/ud909uwTgzGB92fXMnH7uEvVeGWX/hCLKoBsyntA6/e9O1YfxTqV dNka/TEPbQSc++yD0Au/xiumz+eTh7cJQrbVTo0kRV6E40ftWQBomVknwDijDatlpAjC +XtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750238002; x=1750842802; 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=SimK3Vzm4oopunXcaB2KG1naXZ0rung4wUt4Ht0KGxk=; b=KgYUN3hsiG0HRu1+4W0/wyj0VLcXYWvEy/HB9MILjbE7AxMPf94NZRdPtg/RL4tkN6 rRRBRax6qtUkMEhKsLnW4v8bi2MEzztHJaf3/UOv82n51UcKc85dC9sCmvhC7NmqoT30 iKO5XndZ9NYGKmTxmfaIvBxHyp9CZE0p2FJsF62097aA3FQaco3a7ld+2mmoo6dL7OS8 Iow8lAYCVWLfaAy1XQuB9uvTjzCDLHfarRM995zaTGiHHheM1vRMmYuB/KtqS/vmw1qa 4oiZNrheutkWuMgqoTipqLkA5w8H1r8aRM5n0nGcW2PIHP3fMupAz8K3X2tSSNd/an1L m11A== X-Gm-Message-State: AOJu0YxZhM4Q5ZTJBogP4vOwtYZSDuUstg6c74bSOU+aQ5D4LIBkF6j4 lgJpa6Ey5F68mjJs8HpAxjDXvtltrTOHE+QHozLRqQ8OhuM9rQwNOs8I+R8Ngw== X-Gm-Gg: ASbGncuL7IPhTsQNi1Bf9zXZz738PAIqTdvP0O41DYm/cMSxnEstBq2CdOy2xIOUMok 83NNjdlq8+4KrpayZU/XQMW5P2nEHE2SruSPTaIGaCl5nzn66g2GjryzWuRqWiy+MUEVbROs6Dw BK6eHLi142ouy+bB9CFDfTgUFaNJyYaZXSsDc+SO0pbpu+4J5Allr+JHBO9WADAcPmSqTR0mVIY Qq/n37khfgWbdoIFU+TCNEAXmBZRELrOy2FVrxPjYG2BP9gtfIlA4x1bajrnlUh++eqprZ4FFyo iK6IKr0DctzlPAruBsmamCEypNXlOfbQ4XTAhLtDGWFL97WvtZ0sPjVl3Rfbgiuj8IbXlFb1lX8 MdKn23XZ704UgMPTcZso16aAqsP/c X-Google-Smtp-Source: AGHT+IFdMBkSD1M9vseqf9WvEBR79tIc3p05InTdbTzOF7W1VRUmTy/CA32y9BgsSVUHZtr50zKO2w== X-Received: by 2002:a17:906:4fd5:b0:ad8:8efe:3205 with SMTP id a640c23a62f3a-adfad4f585fmr1196891066b.55.1750238002216; Wed, 18 Jun 2025 02:13:22 -0700 (PDT) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Oleksii Kurochko , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Andrew Cooper , Anthony PERARD , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH v1] xen: move __ro_after_init section symbols to xen/sections.h Date: Wed, 18 Jun 2025 11:13:16 +0200 Message-ID: <1254ad9fd9f9fefc71ff8a5f5d23f5037d854943.1750237599.git.oleksii.kurochko@gmail.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1750238028979116600 Content-Type: text/plain; charset="utf-8" Instead of declaring __ro_after_init_{start,end} in each architecture's asm/setup.h, move these declarations to the common header xen/sections.h. This centralizes the declarations and reduces duplication across architectures. No functional change intended. Signed-off-by: Oleksii Kurochko Acked-by: Jan Beulich Acked-by: Julien Grall --- CI tests: https://gitlab.com/xen-project/people/olkur/xen/-/pipelines/1875993985 =20 --- xen/arch/arm/include/asm/setup.h | 2 -- xen/arch/x86/include/asm/setup.h | 1 - xen/include/xen/sections.h | 3 +++ 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/include/asm/setup.h b/xen/arch/arm/include/asm/se= tup.h index 2b58549c1a..b199d92a42 100644 --- a/xen/arch/arm/include/asm/setup.h +++ b/xen/arch/arm/include/asm/setup.h @@ -65,8 +65,6 @@ int map_irq_to_domain(struct domain *d, unsigned int irq, int map_range_to_domain(const struct dt_device_node *dev, uint64_t addr, uint64_t len, void *data); =20 -extern const char __ro_after_init_start[], __ro_after_init_end[]; - struct init_info { /* Pointer to the stack, used by head.S when entering in C */ diff --git a/xen/arch/x86/include/asm/setup.h b/xen/arch/x86/include/asm/se= tup.h index ac34c69855..b01e83a8ed 100644 --- a/xen/arch/x86/include/asm/setup.h +++ b/xen/arch/x86/include/asm/setup.h @@ -5,7 +5,6 @@ #include =20 extern const char __2M_text_start[], __2M_text_end[]; -extern const char __ro_after_init_start[], __ro_after_init_end[]; extern const char __2M_rodata_start[], __2M_rodata_end[]; extern char __2M_init_start[], __2M_init_end[]; extern char __2M_rwdata_start[], __2M_rwdata_end[]; diff --git a/xen/include/xen/sections.h b/xen/include/xen/sections.h index fe49d7d0e6..cd542bfe10 100644 --- a/xen/include/xen/sections.h +++ b/xen/include/xen/sections.h @@ -5,6 +5,9 @@ =20 #include =20 +/* SAF-0-safe */ +extern const char __ro_after_init_start[], __ro_after_init_end[]; + /* SAF-0-safe */ extern char __init_begin[], __init_end[]; #define is_init_section(p) ({ \ --=20 2.49.0