From patchwork Fri Dec 2 14:04:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 28922 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp875991wrr; Fri, 2 Dec 2022 06:06:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf45obVVhCX3X1vZeYsDBHiLnxjedGWEH9izfDJAQwPgaVOJcKOrmTGPG+6LJMKyv//a75hR X-Received: by 2002:a17:902:e0cd:b0:189:b0a3:cf49 with SMTP id e13-20020a170902e0cd00b00189b0a3cf49mr9750339pla.77.1669989963883; Fri, 02 Dec 2022 06:06:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669989963; cv=none; d=google.com; s=arc-20160816; b=ol/Fn1Ts6Xxhm4UExeR85NeEFygAf6X+bRskGB51G/FiH4wjZpBtlrqFfIRRlOPqlP yp0OzPuR2rxqBOaRCErLO+I4LqOFqxtRSrkhLz5DTyEyybMHMJtjg+ez5tsOQ72iAYzt 2YS8hR5VhaL0W4tsTyj1+L+ien753269dthUYkgF5S0e15dQbrXNFFCV4/2tpJJgwI27 nyUStEaianvHTSPr7fK+r9bzGNefOxCItGlp3kwfNqbtkCD8U/DR1LiTtKGmE7LQSvXm UrpYCiDnZVh2t6PMvMD+Y6YftG+5ikKcOpngUlWoNNZ2Un2VF//ZiHW20FWCjkuoJrKO vvFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=Q3vvwrGOWdRjoGVQ6sVEK4/+4iKXVaWVSNwYOLo/UTA=; b=F7qTooljTGzSyDMsR67k24CAPCpJL8ubWLkdi3m6b9iYRaPKAfRyy17Cy5q3p8k5LX l1QgQzW0dWmyyhM0Iuds35BFa8cpdskC671ZRhyMREyaGgwg/+QwaBSoqDzMD1i890we AZ8cnioU3w/gvXT7Y16pAzqvbJVrwkeoePjB5i9E/QS7gb8OickzBUHK4zTdJ/9OHhC2 DV6WFUNSSJ9aU7iq3y2vxWfOVZnkPxCVJa4DW4Fq6ApqN1sTvK4Ys2Vd508TWQ6DXpNd jcr9Ej/PT8F01vgyVHkUbfyTT1kbVt26JWtXxa5znvP6eAPUksnWMm0xNz4du4rXNP2C jDzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VQhAgBuM; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=fHkZbly2; 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 e128-20020a636986000000b004780b7aea61si7484052pgc.416.2022.12.02.06.05.31; Fri, 02 Dec 2022 06:06:03 -0800 (PST) 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=VQhAgBuM; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=fHkZbly2; 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 S233583AbiLBOES (ORCPT + 99 others); Fri, 2 Dec 2022 09:04:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233463AbiLBOEG (ORCPT ); Fri, 2 Dec 2022 09:04:06 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAC0ADB0E1; Fri, 2 Dec 2022 06:04:04 -0800 (PST) Date: Fri, 02 Dec 2022 14:04:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669989843; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q3vvwrGOWdRjoGVQ6sVEK4/+4iKXVaWVSNwYOLo/UTA=; b=VQhAgBuMYV9N02ol9psTzuroagwbBgWV9MeX1YHRsWI3oD4+4l1qQCbQQZsqKD0ZaKq9xd bp2MfkMz0epMvSWSPZ1pcfNFw6PWclxv6ooFqVQKRToGeadGL+EFzVfqxCtFH5WFx0uyUW MyRGaRAGnyDjoauqTsGaqvT+j93+pO7pYP+UzauyogMaN3S2z+OEKYXqwBsT+POWfMyoTy WA8HR+7xXcXe521s5IlhzFipIImriwiUegDcD1ZNGicmYGF6ndTMhWIWBTXT377ldV+oZy pblxgIE+XFYdRIiOhbvFk1UzSPSSEjhyxryOlV2ZyPYqYAHJDQDPDD7TFNf9MQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669989843; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q3vvwrGOWdRjoGVQ6sVEK4/+4iKXVaWVSNwYOLo/UTA=; b=fHkZbly2G7iCw7iWLmQtJ8iWHUnjo3hTqAyYrYtGvw+q09hTBzF/0ymEPKfvgNImR2Dsuy WfD1fQDOX+bqqtBA== From: "tip-bot2 for Andy Shevchenko" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] x86/of: Remove unused early_init_dt_add_memory_arch() Cc: Andy Shevchenko , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221124184824.9548-1-andriy.shevchenko@linux.intel.com> References: <20221124184824.9548-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Message-ID: <166998984219.4906.12144964269143777509.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails 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 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750405717846428383?= X-GMAIL-MSGID: =?utf-8?q?1751111396653580250?= The following commit has been merged into the x86/apic branch of tip: Commit-ID: 9b09927c0cdec4d4e75f7f9e621eaec179a888fd Gitweb: https://git.kernel.org/tip/9b09927c0cdec4d4e75f7f9e621eaec179a888fd Author: Andy Shevchenko AuthorDate: Thu, 24 Nov 2022 20:48:24 +02:00 Committer: Thomas Gleixner CommitterDate: Fri, 02 Dec 2022 14:57:13 +01:00 x86/of: Remove unused early_init_dt_add_memory_arch() Recently objtool started complaining about dead code in the object files, in particular vmlinux.o: warning: objtool: early_init_dt_scan_memory+0x191: unreachable instruction when CONFIG_OF=y. Indeed, early_init_dt_scan() is not used on x86 and making it compile (with help of CONFIG_OF) will abrupt the code flow since in the middle of it there is a BUG() instruction. Remove the pointless function. Signed-off-by: Andy Shevchenko Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20221124184824.9548-1-andriy.shevchenko@linux.intel.com --- arch/x86/kernel/devicetree.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c index 5cd51f2..59438d2 100644 --- a/arch/x86/kernel/devicetree.c +++ b/arch/x86/kernel/devicetree.c @@ -31,11 +31,6 @@ char __initdata cmd_line[COMMAND_LINE_SIZE]; int __initdata of_ioapic; -void __init early_init_dt_add_memory_arch(u64 base, u64 size) -{ - BUG(); -} - void __init add_dtb(u64 data) { initial_dtb = data + offsetof(struct setup_data, data);