Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp243741rdh; Thu, 23 Nov 2023 02:52:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFp3QmWQ0VBDqaYqieDMG5BCK0asmwiQ7Cd12drUNIilMx7NjMAr1/CKc8yCdrNkrdG3zQg X-Received: by 2002:aa7:88c3:0:b0:6be:1f19:e5f0 with SMTP id k3-20020aa788c3000000b006be1f19e5f0mr6511633pff.25.1700736761700; Thu, 23 Nov 2023 02:52:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700736761; cv=none; d=google.com; s=arc-20160816; b=ArtMNiNf0eZ5xUDqyK2EzDkLiE46kK88VJKEbhRO9xG3sQXfKij7XIXqHiqSUiw+iR WHgoqX0fipiNaAKEqgkiVkiCpSqJOFT1Vjc2wrfEwy7IDLugW4ube6dn4340q89v3l0p BvMS669CzEIiJSMYbMFAS/Yx5HN2y2Tfqq88IPr5ogNmPavLdKXGA5HTQQyPkRFUTC3A EQl4z/Xf1+qeiTuwmE12OM675+1RNzEAay4uExl4cduV1h+rkAyvwY3hJclWa2MXbMMc h27ntCDMU8VOaC9hrzOPwolO+B38zMavuQmNZ3WuAXrWiwLn29kgMEd+Wf1Nq2YhMEkE CXGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6v+k+45d0SnmDk4MnVlFxXeiUV2frHoUXNiAeIm3A4E=; fh=iogb7Qd7AqyHlpSVxJDWK37b53wM5j9GlZ66B7PI+LI=; b=lVcobIt5Psv/a/NM8FZHWY7QcF3chU+DcF87pkfO9Wm8z+kSn0RkLMd08cGsCtVXiX w1E121xkyeE9hCffzBr6Pltqx05KEJVh5HRGpuDIsXfEQLIhs2xtIN9ONinv5OcqGoDP 4ifxJhvyxGmRhPNE+Ji9yIhQcfBjclTLqvz0dpvQ74SotPBkbm5qSxLZZ+GFxPOv4AJ5 pP+UZ/AcVZKURXfk0Wqxu5X7j03nO/cJp5EKSF1HtK2mtDjrg+/lc0zgYi+D8QygUOVU tHRpKYyQhJhNrF5agpzDUnACWYpk8EnAtvzlKVexTOVkpCv2A6zld0+sDYWGBynZa7H4 UKug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UF/smYE6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bi12-20020a056a02024c00b005b958401e4fsi1159059pgb.418.2023.11.23.02.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 02:52:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UF/smYE6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D6E41805F9DF; Thu, 23 Nov 2023 02:48:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344895AbjKWKsS (ORCPT + 99 others); Thu, 23 Nov 2023 05:48:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344824AbjKWKsM (ORCPT ); Thu, 23 Nov 2023 05:48:12 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09CD5D4A for ; Thu, 23 Nov 2023 02:48:19 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 456EDC433C8; Thu, 23 Nov 2023 10:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700736498; bh=bnImJ/ObQ6B/nPGCBESa5sKS25GC8i0wwxIop7YcLiQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UF/smYE6w5t3Qu/JkXRjWHikWmWDZmaBN5EAC0TUMncJwqfZpU4hZRIOLkZvfaEB7 mm+xLV+CyHdSJjMBRUaiN3Xb26CVJGT5Rbc6Iqsf8EioYjGQdfjA3bQn2Llibv7KcB wxDRkP+Skv7hD8WFmKTzR4O17Zr5+T4R9K1U3GIyPxAE57goc21d5V7iNvRg/HK01R M5JBj2jvncyqmoXhXTq2ovGGOOL+zKKWz/kuGzcn0L5WXG9DPX2lzz6jK5UlZGnEGZ LB1pRNtB2JwMDzAG9D/hc/+Q+YR1ZZ9kF9JeBFGGZND7JWtJzZ6UycYqQGDJVw7Clc 8MCN4mafoiABw== From: Arnd Bergmann To: Michael Ellerman Cc: Arnd Bergmann , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] powerpc: powermac: mark smp_psurge_{give,take}_timebase static Date: Thu, 23 Nov 2023 11:48:01 +0100 Message-Id: <20231123104801.15537-4-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231123104801.15537-1-arnd@kernel.org> References: <20231123104801.15537-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 02:48:36 -0800 (PST) From: Arnd Bergmann These functions are only called locally and should be static like the other corresponding functions are: arch/powerpc/platforms/powermac/smp.c:416:13: error: no previous prototype for 'smp_psurge_take_timebase' [-Werror=missing-prototypes] 416 | void __init smp_psurge_take_timebase(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/platforms/powermac/smp.c:432:13: error: no previous prototype for 'smp_psurge_give_timebase' [-Werror=missing-prototypes] 432 | void __init smp_psurge_give_timebase(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Arnd Bergmann --- arch/powerpc/platforms/powermac/smp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms/powermac/smp.c index c83d1e14077e..15644be31990 100644 --- a/arch/powerpc/platforms/powermac/smp.c +++ b/arch/powerpc/platforms/powermac/smp.c @@ -413,7 +413,7 @@ static void __init smp_psurge_setup_cpu(int cpu_nr) printk(KERN_ERR "Couldn't get primary IPI interrupt"); } -void __init smp_psurge_take_timebase(void) +static void __init smp_psurge_take_timebase(void) { if (psurge_type != PSURGE_DUAL) return; @@ -429,7 +429,7 @@ void __init smp_psurge_take_timebase(void) set_dec(tb_ticks_per_jiffy/2); } -void __init smp_psurge_give_timebase(void) +static void __init smp_psurge_give_timebase(void) { /* Nothing to do here */ } -- 2.39.2