From patchwork Tue Aug 1 10:47:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 129220 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2602656vqg; Tue, 1 Aug 2023 04:31:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlEFDfLJD/zT72Wi7hvo1sRDCCBptT5o3Rrtxi21b7pTT41eRmMwlCTsephDBaYCTIf8PEL6 X-Received: by 2002:a17:902:f80d:b0:1b9:e8e4:620e with SMTP id ix13-20020a170902f80d00b001b9e8e4620emr8805635plb.47.1690889503325; Tue, 01 Aug 2023 04:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690889503; cv=none; d=google.com; s=arc-20160816; b=ik55ueJJkrMLlr9XfrLA+ZexNug8ipF89ZZEDu+MeFFAzDmpZszUeDoUusVVFbFWtw O5u1acgpmrUCC9G/DXgxGyVsaQLccP77d+Fdt4gPzILqwjppSPJs2+2cYDMuLD9g4E0i InAhX2soJ+hui6QGdIAR3D127T7m+49c70zHStdSGmEPgqLwLI8i8TuhWWzxCnSgaBTa PO2gk5O1hCfvsOrDNxB7Cjgq9cN9Acshr9FAlSH7nWtNNDzjdAVBTeEd3zoW7UXM12u0 cLKn6IEeLkap542VeFu58pR8t5ovZRy9xwlCKf0xifoOpzhXM6a45PUVV1sRzzlTlxC7 A+fw== 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.s=2020e 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: 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.31.28; Tue, 01 Aug 2023 04:31:43 -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.s=2020e 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 S232346AbjHAK7H (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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773026152147996050 X-GMAIL-MSGID: 1773026152147996050 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,