From nobody Sun Feb 8 17:43: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 34617EB64DC for ; Mon, 17 Jul 2023 23:43:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229766AbjGQXnO (ORCPT ); Mon, 17 Jul 2023 19:43:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231153AbjGQXk6 (ORCPT ); Mon, 17 Jul 2023 19:40:58 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78568170A for ; Mon, 17 Jul 2023 16:40:35 -0700 (PDT) Message-ID: <20230717223225.754957545@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1689635745; 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=AWaEZw8abvCPdN4y6ge3RbIG2SvdzHbMvIezw0K7Xt4=; b=xGjM4LiVIbDvVJpkJPrQjEaRdgsQZ5akQT26sx1478B5xJtClRWnFpiaKg73W7rzbSZpmu 9cb7VLiK5CNVLJ5SHYsYbijnVeRnYRWCVGZPuPNVABGDN6I316EFSYjcFOKx6ciTTNfR3n a4fJw5/BrbUnbDa1uZqrO3gk2aue9kBShZmUFi4KcEScPYmBEcz39LIzG4h+18Tmw0J+AV plvIkhV8AXnsb6I7C/fh75Q1t84rIyI0vtbIOhwrFOs82rOUbvUDPvhEHNC/Ngmc8B3SqC A8zsj2dI2QBlNMn4UuoXUR4vFt2nDiZeJj3AIF9IOED0DEFurHtRBNJcH2cCEw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1689635745; 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=AWaEZw8abvCPdN4y6ge3RbIG2SvdzHbMvIezw0K7Xt4=; b=h2M38jF60O41a5q3PzJBQp7a2b8q3FvZ1CwUp7sKuTEdAmME2dg2o+DJ2A9C7h8M3Z6mqd JhNoR9No5x4mSIAQ== 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 45/58] x86/apic: Remove pointless NULL initializations References: <20230717223049.327865981@linutronix.de> MIME-Version: 1.0 Date: Tue, 18 Jul 2023 01:15:44 +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" Wasted space for no value. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/apic_flat_64.c | 2 -- arch/x86/kernel/apic/apic_noop.c | 2 -- arch/x86/kernel/apic/apic_numachip.c | 4 ---- arch/x86/kernel/apic/probe_32.c | 1 - arch/x86/kernel/apic/x2apic_phys.c | 2 -- arch/x86/kernel/apic/x2apic_uv_x.c | 2 -- 6 files changed, 13 deletions(-) --- a/arch/x86/kernel/apic/apic_flat_64.c +++ b/arch/x86/kernel/apic/apic_flat_64.c @@ -87,9 +87,7 @@ static struct apic apic_flat __ro_after_ =20 .disable_esr =3D 0, =20 - .check_apicid_used =3D NULL, .init_apic_ldr =3D default_init_apic_ldr, - .ioapic_phys_id_map =3D NULL, .cpu_present_to_apicid =3D default_cpu_present_to_apicid, .phys_pkg_id =3D flat_phys_pkg_id, =20 --- a/arch/x86/kernel/apic/apic_noop.c +++ b/arch/x86/kernel/apic/apic_noop.c @@ -65,7 +65,6 @@ static void noop_apic_write(u32 reg, u32 struct apic apic_noop __ro_after_init =3D { .name =3D "noop", .probe =3D noop_probe, - .acpi_madt_oem_check =3D NULL, =20 .delivery_mode =3D APIC_DELIVERY_MODE_FIXED, .dest_mode_logical =3D true, @@ -80,7 +79,6 @@ struct apic apic_noop __ro_after_init =3D =20 .max_apic_id =3D 0xFE, .get_apic_id =3D noop_get_apic_id, - .set_apic_id =3D NULL, =20 .calc_dest_apicid =3D apic_flat_calc_apicid, =20 --- a/arch/x86/kernel/apic/apic_numachip.c +++ b/arch/x86/kernel/apic/apic_numachip.c @@ -227,8 +227,6 @@ static const struct apic apic_numachip1 =20 .disable_esr =3D 0, =20 - .check_apicid_used =3D NULL, - .ioapic_phys_id_map =3D NULL, .cpu_present_to_apicid =3D default_cpu_present_to_apicid, .phys_pkg_id =3D numachip_phys_pkg_id, =20 @@ -266,8 +264,6 @@ static const struct apic apic_numachip2 =20 .disable_esr =3D 0, =20 - .check_apicid_used =3D NULL, - .ioapic_phys_id_map =3D NULL, .cpu_present_to_apicid =3D default_cpu_present_to_apicid, .phys_pkg_id =3D numachip_phys_pkg_id, =20 --- a/arch/x86/kernel/apic/probe_32.c +++ b/arch/x86/kernel/apic/probe_32.c @@ -48,7 +48,6 @@ static struct apic apic_default __ro_aft =20 .max_apic_id =3D 0xFE, .get_apic_id =3D default_get_apic_id, - .set_apic_id =3D NULL, =20 .calc_dest_apicid =3D apic_flat_calc_apicid, =20 --- a/arch/x86/kernel/apic/x2apic_phys.c +++ b/arch/x86/kernel/apic/x2apic_phys.c @@ -150,8 +150,6 @@ static struct apic apic_x2apic_phys __ro =20 .disable_esr =3D 0, =20 - .check_apicid_used =3D NULL, - .ioapic_phys_id_map =3D NULL, .cpu_present_to_apicid =3D default_cpu_present_to_apicid, .phys_pkg_id =3D x2apic_phys_pkg_id, =20 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c @@ -811,8 +811,6 @@ static struct apic apic_x2apic_uv_x __ro =20 .disable_esr =3D 0, =20 - .check_apicid_used =3D NULL, - .ioapic_phys_id_map =3D NULL, .cpu_present_to_apicid =3D default_cpu_present_to_apicid, .phys_pkg_id =3D uv_phys_pkg_id,