Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5542313rwb; Tue, 1 Aug 2023 04:30:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlHAZBM/lukvNHByIuzGSEzOvdbbI3ue/LlzgaMFteaQwepAqHN5mac3/IxS5OjSMqwonVzm X-Received: by 2002:a17:902:d355:b0:1bb:1523:b311 with SMTP id l21-20020a170902d35500b001bb1523b311mr10814211plk.41.1690889435014; Tue, 01 Aug 2023 04:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690889435; cv=none; d=google.com; s=arc-20160816; b=IxIAPGQ8XSCrXtbq6ReCq6JDkaB/dYsL7/Cz8Ttv4Zqyo/QXUq2hCgerYBc1FCIGff m5/O4JPzo3cOC4iOIt+XFRU+16xLSaFzDFA+5l9d/r7xabHSRQoUYi2MO/JvjRSDo/K+ cDE2IyDr0Z4IZeySuQFMuryPF1SuIL9eHgfHTIdirietMhlBfQycX6QO8udbDj+CsR8I qz+NUtqcLXAb/illtWzDt31w/z5MqBxJhTJb6FqTsYlC6IggrGeBijSR9OGzGybuUyMr MwtsYI8ww4GGtF6hPGJ/eMbqdQaaaguRbxbC/zipTfWmOk7at51UTGCFRyT0bfGfMbW4 enXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:references:subject:cc:to:from :dkim-signature:dkim-signature:message-id; bh=4kZ3PvNOs70jkSxz3FTMqFuUfjlVkf/AyOBE0F2Qscg=; fh=mE3iieUIZLcDfOLIULj9X6/p0bMDPZGFSVRsnyRUnTc=; b=nidrmcGlpChIyz/fNJSN1gexAXf624q+w2Mq/rx2Va5ZLf7Whw6U3a+uRi/AiPw5sp MSgG4NBMfaWQt/sAjg3xno45z5ab23u7dMok+Y0Q+CBEzkryjGEGQXoh9kbBQbFmj5jQ i22lWO6tHnaYlv83esRMRkxz+ctWMpRJK6CPQte6nHLvZKbczKoZ/Xc+pdxB/5NeSwpE uM9d09uwF6KLd7Pc3BCMSl8GndjPVX351nu65ZFvqhHCDdApMKmWf0OFxyeprVtGk8aF njetKvMi5Z9LXqHfnTdY+luVjhhR1y9jqc3tpNhan4GwB8809lv0NpgML6sdTz5MuajS C9bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=UIcfOxU3; dkim=neutral (no key) header.i=@linutronix.de header.b="RIdBkhb/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a170902650c00b001b3dd62b1dbsi8846938plk.560.2023.08.01.04.30.21; Tue, 01 Aug 2023 04:30:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=UIcfOxU3; dkim=neutral (no key) header.i=@linutronix.de header.b="RIdBkhb/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232022AbjHAK7H (ORCPT + 99 others); Tue, 1 Aug 2023 06:59:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234579AbjHAK6q (ORCPT ); Tue, 1 Aug 2023 06:58:46 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C698176A5 for ; Tue, 1 Aug 2023 03:53:46 -0700 (PDT) Message-ID: <20230801103817.678149419@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690886858; 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=4kZ3PvNOs70jkSxz3FTMqFuUfjlVkf/AyOBE0F2Qscg=; b=UIcfOxU3dh4M05uFkNRWpxWkaNlSgfyny0DDSYufqDoYX646Seaiyqylor6goZDVNwb1jb PYNF9Zbw8fFeuMJa4Go5JWDmrByyUXHMVMx1p2XMB1UvyuR7W5CUPuprJQ28/c4+cuGr98 NyBYT8eBxQKdPJCWFC+ESwopt6Jd4qWZD4rEPjCG16cMXkWs+f/nKYw5X5+/ebej2qwCrx 8DmSQPimPbZjuHJGoNx3bjRCuXnBSdEEAsrMFkndDxDTE/CcHqqJNq45d++fcpogE4v0LI aButKccbptN8I8rAq3DlZ06L7EWA+9onziYffwMZyumoDh7sbeotIqZg2hmAyA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690886858; 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=4kZ3PvNOs70jkSxz3FTMqFuUfjlVkf/AyOBE0F2Qscg=; b=RIdBkhb/np0mHP9Y4ZBm5Mv0UEVUdK7d1xCXMr2x2QcmOh11P+gU2TxRN3p/L3zFfIl9k9 MVP2wBVReGA1gSBw== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Andrew Cooper , Tom Lendacky , Paolo Bonzini , Wei Liu , Arjan van de Ven , Juergen Gross , Michael Kelley , Peter Keresztes Schmidt , "Peter Zijlstra (Intel)" Subject: [patch V3 46/60] x86/apic: Remove pointless NULL initializations References: <20230801103042.936020332@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Tue, 1 Aug 2023 12:47:38 +0200 (CEST) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wasted space for no value. Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra (Intel) --- 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_ .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, --- 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 = { .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, --- 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 .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 .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, --- 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 .max_apic_id = 0xFE, .get_apic_id = default_get_apic_id, - .set_apic_id = NULL, .calc_dest_apicid = apic_flat_calc_apicid, --- 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 .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, --- 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 .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,