]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/apic: Remove pointless NULL initializations
authorThomas Gleixner <tglx@linutronix.de>
Tue, 8 Aug 2023 22:04:13 +0000 (15:04 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 9 Aug 2023 18:58:32 +0000 (11:58 -0700)
Wasted space for no value.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
arch/x86/kernel/apic/apic_flat_64.c
arch/x86/kernel/apic/apic_noop.c
arch/x86/kernel/apic/apic_numachip.c
arch/x86/kernel/apic/probe_32.c
arch/x86/kernel/apic/x2apic_phys.c
arch/x86/kernel/apic/x2apic_uv_x.c

index 1e268a0251f88adcc116cc832969e5808af20d79..f65419dfdb0f741e110f8d1415e9ae387d0543cf 100644 (file)
@@ -87,9 +87,7 @@ static struct apic apic_flat __ro_after_init = {
 
        .disable_esr                    = 0,
 
-       .check_apicid_used              = NULL,
        .init_apic_ldr                  = default_init_apic_ldr,
-       .ioapic_phys_id_map             = NULL,
        .cpu_present_to_apicid          = default_cpu_present_to_apicid,
        .phys_pkg_id                    = flat_phys_pkg_id,
 
index bd6a95ce75de054f85d1b6c3b8cda3c189b8b643..28b693b0f72d1826f089b750efedfb8cc64ac1bd 100644 (file)
@@ -65,7 +65,6 @@ static void noop_apic_write(u32 reg, u32 val)
 struct apic apic_noop __ro_after_init = {
        .name                           = "noop",
        .probe                          = noop_probe,
-       .acpi_madt_oem_check            = NULL,
 
        .delivery_mode                  = APIC_DELIVERY_MODE_FIXED,
        .dest_mode_logical              = true,
@@ -80,7 +79,6 @@ struct apic apic_noop __ro_after_init = {
 
        .max_apic_id                    = 0xFE,
        .get_apic_id                    = noop_get_apic_id,
-       .set_apic_id                    = NULL,
 
        .calc_dest_apicid               = apic_flat_calc_apicid,
 
index 39ebe1a3458b851985af05bf3a53fcbcba43d3e8..9df018716dcd878f03ff43d1cd39e74d9394c91f 100644 (file)
@@ -227,8 +227,6 @@ static const struct apic apic_numachip1 __refconst = {
 
        .disable_esr                    = 0,
 
-       .check_apicid_used              = NULL,
-       .ioapic_phys_id_map             = NULL,
        .cpu_present_to_apicid          = default_cpu_present_to_apicid,
        .phys_pkg_id                    = numachip_phys_pkg_id,
 
@@ -266,8 +264,6 @@ static const struct apic apic_numachip2 __refconst = {
 
        .disable_esr                    = 0,
 
-       .check_apicid_used              = NULL,
-       .ioapic_phys_id_map             = NULL,
        .cpu_present_to_apicid          = default_cpu_present_to_apicid,
        .phys_pkg_id                    = numachip_phys_pkg_id,
 
index d9f52f2f3e161a8f151175c2035e6fb18be9b755..5facf4266bc557b2d8580b313608d8d6bdf1e67e 100644 (file)
@@ -48,7 +48,6 @@ static struct apic apic_default __ro_after_init = {
 
        .max_apic_id                    = 0xFE,
        .get_apic_id                    = default_get_apic_id,
-       .set_apic_id                    = NULL,
 
        .calc_dest_apicid               = apic_flat_calc_apicid,
 
index fcb96b9652ba18f5a60739ece7ab422a316a682f..47ee5c679a45c7ee78b75176b3e44909c64aacf7 100644 (file)
@@ -150,8 +150,6 @@ static struct apic apic_x2apic_phys __ro_after_init = {
 
        .disable_esr                    = 0,
 
-       .check_apicid_used              = NULL,
-       .ioapic_phys_id_map             = NULL,
        .cpu_present_to_apicid          = default_cpu_present_to_apicid,
        .phys_pkg_id                    = x2apic_phys_pkg_id,
 
index 26891ac881f9559a1fdcb398c4b988335dead16a..56925147d8ac1b0c8a6764cf2a1ab6198138094d 100644 (file)
@@ -811,8 +811,6 @@ static struct apic apic_x2apic_uv_x __ro_after_init = {
 
        .disable_esr                    = 0,
 
-       .check_apicid_used              = NULL,
-       .ioapic_phys_id_map             = NULL,
        .cpu_present_to_apicid          = default_cpu_present_to_apicid,
        .phys_pkg_id                    = uv_phys_pkg_id,