Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp459583pxb; Fri, 3 Sep 2021 06:08:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQX6lQLZyUAuqvEcpJtxZ8S0kkywVByISLYxLywobEP/GTTaI5UNL+/OGE7Qt87qGER8ep X-Received: by 2002:a17:906:4f04:: with SMTP id t4mr941217eju.568.1630674480207; Fri, 03 Sep 2021 06:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630674480; cv=none; d=google.com; s=arc-20160816; b=AibPCf0YL9BAft6i2tG17IdvCx6toXqsRopepFRqen68jwMQgRf/2vD95bKhOwp2LJ N/3MADP7mgmI/xREeGeWmTQVu5SKLFwOvefgAwEwFez0QLqK+n6XmUWdRaLXHMZkgRxj 6s6ILYvK8Ro8skeBXmsrLAbHjowPYXBfsIiNIXBocz6A6xTy7QtDfKqGL5en6xE/sb7L mVht3Wn0GLbRwK+W4KrZBPLuzEz/sYrCKBdcqdAL+/msNKULYIUyIlM5F+5z4atffodD jkt4kf6Y6WUtHVRgLjW10DYU27PesGQrpreJPw1v9HxoiXVBr9sGBamIgE8oz591TBJz PAJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:references:in-reply-to :message-id; bh=2RUMEu0AGnGv+4uGSU0L2uXM8Wf5gGEzd4rR+38QWRY=; b=mE8R7oonG9GRZX5Jple5RMefP4PvRc6BNBBtydeseTxOmajsDi/b59GKCCO4pc4f6X ZLwAb99MzRfza42YuhotpwTvD1rMTed+/EBKzR+BLtLdPcNY8UEv+P3keI+EWvJX5dGD 9nDPI8Lxp74uKVhyGLGktWK2e9zWOISXtLVcwUXvQFyiMNLS0PF5lRq0ovny5U5AVtqK PZaowzXnML5azPLIGr/7kgsnLL8DA3pP+cBVpmRyDtb7q9ZekTNM+6zNeQV9nAS3M33b 79tywFPjAXoXwdl1LRGT9QzLhLuq9+hCbwnx0knWEbszkQeQKhpOJtqz6AP42JQhHK5Z w5/Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si5568229edq.72.2021.09.03.06.07.31; Fri, 03 Sep 2021 06:08:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349180AbhICLTu (ORCPT + 99 others); Fri, 3 Sep 2021 07:19:50 -0400 Received: from pegase2.c-s.fr ([93.17.235.10]:51003 "EHLO pegase2.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240932AbhICLTq (ORCPT ); Fri, 3 Sep 2021 07:19:46 -0400 Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4H1FfS58gHz9sTr; Fri, 3 Sep 2021 13:18:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eVOx43PML7-t; Fri, 3 Sep 2021 13:18:40 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4H1FfR41GGz9sT0; Fri, 3 Sep 2021 13:18:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 756EA8B8E3; Fri, 3 Sep 2021 13:18:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Ln7IZKXzGoEC; Fri, 3 Sep 2021 13:18:39 +0200 (CEST) Received: from po18078vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 480398B764; Fri, 3 Sep 2021 13:18:39 +0200 (CEST) Received: by po18078vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 1963B63D74; Fri, 3 Sep 2021 11:18:39 +0000 (UTC) Message-Id: In-Reply-To: References: From: Christophe Leroy Subject: [RFC PATCH v1 04/11] powerpc/machdep: Make probe_machine() static To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 3 Sep 2021 11:18:39 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit b1923caa6e64 ("powerpc: Merge 32-bit and 64-bit setup_arch()") probe_machine has only been called from the file in which it is defined. So it can be static. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/machdep.h | 2 -- arch/powerpc/kernel/setup-common.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h index f6f8344f4a0c..a50aed6170c3 100644 --- a/arch/powerpc/include/asm/machdep.h +++ b/arch/powerpc/include/asm/machdep.h @@ -230,8 +230,6 @@ extern struct machdep_calls *machine_id; machine_id == &mach_##name; \ }) -extern void probe_machine(void); - #ifdef CONFIG_PPC_PMAC /* * Power macintoshes have either a CUDA, PMU or SMU controlling diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 0b7894eed58d..96e88209e605 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -582,7 +582,7 @@ static __init int add_pcspkr(void) device_initcall(add_pcspkr); #endif /* CONFIG_PCSPKR_PLATFORM */ -void probe_machine(void) +static void probe_machine(void) { extern struct machdep_calls __machine_desc_start; extern struct machdep_calls __machine_desc_end; -- 2.25.0