Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4153778pxb; Sun, 24 Oct 2021 21:28:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUrYnbx5su9K4NlIHszXKPVOu27/eOxgVBe5lenwTaAWKB7UlKZsVe/JUrlY3iHLCZ5tp1 X-Received: by 2002:a17:90b:17d0:: with SMTP id me16mr33047470pjb.152.1635136133431; Sun, 24 Oct 2021 21:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635136133; cv=none; d=google.com; s=arc-20160816; b=ZVaAHHLJP1Fewxqmp6XhVEq/b2nCnFLmoEQG/C9i/3ApObX2CZ8y4lQndVa6BmPnMg t8m+7OT1kMv0UvMWAmsxWs+8p8JLtgMQBc4TkqNvu4wPAVdC8vj9zsrLlSiV0Ievmruw L7tNHWdBMb6vKFgBbQG9/86SAP2Dz/pHj6mMMOmae4oLeqNrvc8iY3nXZNmnC8/AqUSg MdAau5zVR77iYFCLyUY7Vsw8sd8NN+IYNWn5ZP37xn+ILwMfdN6w8uE2qH8R5AvMSeeF czlY/0jonsfg17PlTWwdbD6uYpM5isSssZND1Si+321ktIigfKz2NOfsXrWYFtofqf3R gwiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=5/7//GT6K8saLNYnBNTIJ2rcr8YYQPDQMp7BriZDIdQ=; b=XlxExsZIPWLmBFQviA1O/qwQFQswjjBzIKhLk3anPOhlX9wSmpRnK4h/7psMrxOpTv TvYRsZ7wpsoNy7Np0XG4OUhHEnq9GYdyz/9wP0j4iNvkabV1QrhZI+pMkg4zEuhakPo/ maQ9Qt4ZRF6VT9w25Zr1XalTJVgesghQeDdl5w5UdANoToBwvt+3D15fmQbmS4Fi14PZ e6S129w4GU9vaDyeCPfVOm1UwyvzB7u5Ccuw44Ec7rxOJSq7yr3dy0+9/g4XMsysvsAB 11mKoOiZOmITJUND1vfZr/UU6xPZTtybZKC0mld+cPmYcbfbOEIfgtfsT74jo28uIbf1 6DfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PF93yZdW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si5459696pgv.388.2021.10.24.21.28.40; Sun, 24 Oct 2021 21:28:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PF93yZdW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232185AbhJYE3W (ORCPT + 99 others); Mon, 25 Oct 2021 00:29:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbhJYE3W (ORCPT ); Mon, 25 Oct 2021 00:29:22 -0400 Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67CAAC061745; Sun, 24 Oct 2021 21:27:00 -0700 (PDT) Received: by mail-qv1-xf32.google.com with SMTP id x13so2462587qvk.2; Sun, 24 Oct 2021 21:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=5/7//GT6K8saLNYnBNTIJ2rcr8YYQPDQMp7BriZDIdQ=; b=PF93yZdWy59wvO7+IDGCd9/qPOo9E+BIGJxY72VRssbYKljmV/ct/V9u/8oaml6F9c deO58GNFIypSR5gXlKfQ+o70gXgMYWWJ+ccCDzOlNFYBCMOz02r30wON1dEYxkc6V5qV OpgMuVTc8EnCrNu/A5qp2z97Pv00i2h1TN/QFknKhdx/zhHyY1JWpZfFY0wQRTexGRWo CvDzEcDAhtJRzL2tkIp8sJDMpeAgaXjtGgD0YOq5VB/ig1xRNEe82+lxcAWlKKb4cmzc Me92O4vu5Mjx3TYIs6CvU7kGvx0SYeT7xMJ6F8LGRhT7hGHUodlP6fR07KiW3GyNlhad K2RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5/7//GT6K8saLNYnBNTIJ2rcr8YYQPDQMp7BriZDIdQ=; b=bc/4XsT06vVubBhU/RTmrC4yXTDpwbJ9tQl/Mr7OXLZiXkbo/fVUUwF09YO7cEBnNh Y51WCoSLFeq3TJWuoPr9XFyFuViE2Bc3zp0Kn/r6Rh45XNnu5hnH4opzE9epS3EB5Xss CD2GqwUrQEl2/4ZsIh2JtkW4jRRw7Hlkmnodcqq2e/FGA8wcTqvfYLJqYSDbgGnYz/eo fz5WFLfk4/Q7pfozjX7LklnA1vbR2ExV/NR/vJzbCY1yIjVxKp8bAeV22p5LajlJj8qH 2FRHNnryX8L7u8RX50vvucqAwn0ihN4+IT+2773M/WPlMJZLsYKnXIVekA49EE5lS4k1 H60Q== X-Gm-Message-State: AOAM533SkQxlVRj7P2DO8zZDL+Mp/2sP1XYUJiY5PWjbm5dWC2ZTr62j SHZkE+FAjTpezY9cLR9moJQ= X-Received: by 2002:a0c:b4c9:: with SMTP id h9mr13402579qvf.6.1635136019605; Sun, 24 Oct 2021 21:26:59 -0700 (PDT) Received: from [192.168.1.49] (c-67-187-90-124.hsd1.tn.comcast.net. [67.187.90.124]) by smtp.gmail.com with ESMTPSA id v7sm7940111qkd.41.2021.10.24.21.26.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 24 Oct 2021 21:26:59 -0700 (PDT) Subject: Re: [PATCH] x86: of: Kill unused early_init_dt_scan_chosen_arch() To: Rob Herring , x86@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" References: <20211022164642.2815706-1-robh@kernel.org> From: Frank Rowand Message-ID: Date: Sun, 24 Oct 2021 23:26:58 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211022164642.2815706-1-robh@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/22/21 11:46 AM, Rob Herring wrote: > There are no callers for early_init_dt_scan_chosen_arch(), so remove it. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: x86@kernel.org > Cc: "H. Peter Anvin" > Cc: Frank Rowand > Signed-off-by: Rob Herring > --- > arch/x86/kernel/devicetree.c | 5 ----- > include/linux/of_fdt.h | 1 - > 2 files changed, 6 deletions(-) > > diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c > index 3aa1e99df2a9..5cd51f25f446 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_scan_chosen_arch(unsigned long node) > -{ > - BUG(); > -} > - > void __init early_init_dt_add_memory_arch(u64 base, u64 size) > { > BUG(); > diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h > index cf6a65b94d40..cf48983d3c86 100644 > --- a/include/linux/of_fdt.h > +++ b/include/linux/of_fdt.h > @@ -65,7 +65,6 @@ extern int early_init_dt_scan_memory(unsigned long node, const char *uname, > extern int early_init_dt_scan_chosen_stdout(void); > extern void early_init_fdt_scan_reserved_mem(void); > extern void early_init_fdt_reserve_self(void); > -extern void __init early_init_dt_scan_chosen_arch(unsigned long node); > extern void early_init_dt_add_memory_arch(u64 base, u64 size); > extern u64 dt_mem_next_cell(int s, const __be32 **cellp); > > Reviewed-by: Frank Rowand