From nobody Sun Feb 8 20:00:14 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4880C0015E for ; Mon, 17 Jul 2023 23:20:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231202AbjGQXUq (ORCPT ); Mon, 17 Jul 2023 19:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbjGQXUp (ORCPT ); Mon, 17 Jul 2023 19:20:45 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D686134 for ; Mon, 17 Jul 2023 16:20:00 -0700 (PDT) Message-ID: <20230717223226.297124390@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1689635759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=cOCeYzZlZQBijmmlwD90S/EyiYlmy0xrZba4W3Pw3yw=; b=gaLKj7OKk74d7dKsCAAq7iQL33bF5KOQHpAirffn2nbDIIuBzBtnshkDVGTF32x1xIVXfT LX3O50t4S2wv9IHgf3zrr5gdye+KbDjqzKwAuwiT0zbljANQHJyiJmNm7Qr1V8hP31xQWa bZbK89/vR5cpBemdihkFd0b+8ZAZ1qKKdgsbMR+/eLUdbZBb5t87k8C6sNYIcnutq3UACy T8YUZMvV7eihKLODdI2+oRaEXmt7rLdAzXfmXxDnAdScRZaIxI4thHsPEY6xJtZ2Qrt8IG yOOK9KXY4jTB02SimLzFHp8GNC45fVqza5ArahhrQjrcAMkODa0OeJAYNCIAxA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1689635759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=cOCeYzZlZQBijmmlwD90S/EyiYlmy0xrZba4W3Pw3yw=; b=/0Z+SKoUfHQfzCGrNIiYa+mNxhfgHweJlWYXN3rENFQkGK2JhDXuQhwiFm+3p08Oy+yRgU R2Tg+Nr2LiXSuyDw== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Linus Torvalds , Andrew Cooper , Tom Lendacky , Paolo Bonzini , Wei Liu , Arjan van de Ven , Juergen Gross Subject: [patch 54/58] x86/xen/apic: Mark apic __ro_after_init References: <20230717223049.327865981@linutronix.de> MIME-Version: 1.0 Date: Tue, 18 Jul 2023 01:15:58 +0200 (CEST) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Nothing can change it post init. While at it mop up the whitespace damage which causes eyebleed due to an editor which is highlighting it. Signed-off-by: Thomas Gleixner Cc: Juergen Gross --- arch/x86/xen/apic.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) --- a/arch/x86/xen/apic.c +++ b/arch/x86/xen/apic.c @@ -123,9 +123,9 @@ static int xen_cpu_present_to_apicid(int return BAD_APICID; } =20 -static struct apic xen_pv_apic =3D { - .name =3D "Xen PV", - .probe =3D xen_apic_probe_pv, +static struct apic xen_pv_apic __ro_after_init =3D { + .name =3D "Xen PV", + .probe =3D xen_apic_probe_pv, .acpi_madt_oem_check =3D xen_madt_oem_check, =20 /* .delivery_mode and .dest_mode_logical not used by XENPV */ @@ -138,24 +138,24 @@ static struct apic xen_pv_apic =3D { .phys_pkg_id =3D xen_phys_pkg_id, /* detect_ht */ =20 .max_apic_id =3D UINT_MAX, - .get_apic_id =3D xen_get_apic_id, - .set_apic_id =3D xen_set_apic_id, /* Can be NULL on 32-bit. */ + .get_apic_id =3D xen_get_apic_id, + .set_apic_id =3D xen_set_apic_id, /* Can be NULL on 32-bit. */ =20 .calc_dest_apicid =3D apic_flat_calc_apicid, =20 #ifdef CONFIG_SMP - .send_IPI_mask =3D xen_send_IPI_mask, - .send_IPI_mask_allbutself =3D xen_send_IPI_mask_allbutself, - .send_IPI_allbutself =3D xen_send_IPI_allbutself, - .send_IPI_all =3D xen_send_IPI_all, - .send_IPI_self =3D xen_send_IPI_self, + .send_IPI_mask =3D xen_send_IPI_mask, + .send_IPI_mask_allbutself =3D xen_send_IPI_mask_allbutself, + .send_IPI_allbutself =3D xen_send_IPI_allbutself, + .send_IPI_all =3D xen_send_IPI_all, + .send_IPI_self =3D xen_send_IPI_self, #endif .read =3D xen_apic_read, .write =3D xen_apic_write, .eoi =3D xen_apic_eoi, =20 - .icr_read =3D xen_apic_icr_read, - .icr_write =3D xen_apic_icr_write, + .icr_read =3D xen_apic_icr_read, + .icr_write =3D xen_apic_icr_write, }; =20 static void __init xen_apic_check(void)