Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3466634iob; Tue, 17 May 2022 00:05:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp0qi71ePcZdL8xWfn04A7+UsloOYq9tURHTonvLmQ2KMTb0mca9qpt26QPWwo7dNRwlWs X-Received: by 2002:a17:906:2314:b0:6f4:d3d0:9ede with SMTP id l20-20020a170906231400b006f4d3d09edemr17942925eja.765.1652771111882; Tue, 17 May 2022 00:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652771111; cv=none; d=google.com; s=arc-20160816; b=jxN5LZRkZCFO+UVFWk7ighu40S5xc67ytve8tKfDhj0j+bjacc5s0cD/oN25lOCwuw Wd038FyhK9F797EEuQC8how0NJTRQkiV5pyUAn+Gne0/zWEmsQ3ctzUkFx4spdDC20R1 Tj7+kZW8/pyRRX5agyyUiETp9Wu5uR+DHyW4f5Q5lITMJNO3kPFnKdLuWWtybI9HNLag wZB4n5LwZwuqWR3XaREsyinESZFUg0tXdCIQJHHLtTO8gJ/+hVe2yC1pUJg/Q11h/rrj a+tlLJt3qz+bjQ7T72mo/JihQp0JbPa+9vqx5eS+/0mQLMto66Ec2VixaZrJB3Jntkqj dkQg== 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=JuZm0iyeNXKvBw7CRNXXxjER+lmIsZfs9nGcE1KNIMA=; b=FpGB9ZA+E7esSmexfICiEulEJOn6wEvNwChfvSwwIjJGkBS7nmL1Mv1gpOXkuqIpyw mBMwsKw5lvcuW/cYkYse0sMq0F4gsyoCUPOxWkJ0WGhqDvs7aHviZaUY1aH27YMjLbJZ 8tXEZ5evCLJPjiUH+PbVmrANzM/BsnWznHtUdiQDEJidQJNDJkxS31UvPhQN1eetvSV6 pXv+Ov9xzPGnUxBRAP1g+NmecNVC5XQ8bfncxJh3Nxuhau7QoIOx2pNuzo5XlzAeGZFI BcLFww+sPS+0OOGuQU3S7O5RWNmJLxjsML/sAaCvIyjiUN/3A9lxfZhcy/yLHCu/KSVR /kQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=H5MdmlFK; 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=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj12-20020a170906b04c00b006e86e8d7520si1740549ejb.186.2022.05.17.00.04.45; Tue, 17 May 2022 00:05:11 -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=@gmail.com header.s=20210112 header.b=H5MdmlFK; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239380AbiEQA6F (ORCPT + 99 others); Mon, 16 May 2022 20:58:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239837AbiEQA4A (ORCPT ); Mon, 16 May 2022 20:56:00 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C86CE201A6 for ; Mon, 16 May 2022 17:55:59 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id q4so15980683plr.11 for ; Mon, 16 May 2022 17:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JuZm0iyeNXKvBw7CRNXXxjER+lmIsZfs9nGcE1KNIMA=; b=H5MdmlFKJmCnyxJIjM/qpwTxPaW0iw9pGgyPhqb86vIvFdIh9MsqnbGRdbo3jl3DD1 NZN0aiW77lj3kr3NKdkj4BPOdHAU/UPyX/6yZIrzwOxS54MnqkBsCqlB9WP06jWpjRKH m72bcJwu6Ybfqm+nkmSy/X7omkA497/BL3qqkBDNks8sOGs5dx4iXkYFEcNLrjByTLJo QLuP6rY2ypxJZSFaiaqB4i7xxnDSVXrNwXFBd++H697yAHCrtvVNnax0Mo0KofZm06co 4k7PzeBN94R4jk21clzsMW07xHsrjYvmkSSiFrwl5uSuGe6TzUsJPulniHg1JJ9LPoQ3 YyYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JuZm0iyeNXKvBw7CRNXXxjER+lmIsZfs9nGcE1KNIMA=; b=7CFPH51ru3SdQdKFeyZBlTmzyLMy6TOhQsOGVqQ89LF16hUhLfSouJXOQDIx17Nj+9 4CCSvqALDUkCQp9siSQmQfgzLkz3yQotAI8/oY6Imk4ZyeUg3W4+8/IayDEHqh7HLbiL QomuBUl77zXX/f/GVmWI8uVJcH4aOrh36RffJCJ3fZ/471Tl/hQCImk5JkTmr7GXrZN9 m+KImIvoEaAcRJmf72ppDFNryrfuRlKy0CFg+/2UmThriGTDfJiACLCiyg0l88XHPBk3 Bg/iJfQ0KQjq7hAUbShIG6G/A1tR4M35D7V4V+QOU6ePrAjGohbmYeh7AtbhafPiVGBM 59cQ== X-Gm-Message-State: AOAM531aOkxl6p1Vgh4cokb0ZnRWFIZaVo+H2LDPGayQ6oOm5nklpnHx 5RyJs5tW5z23OsPA6Rs1zEeaZeQGoRoZlQ== X-Received: by 2002:a17:902:db07:b0:15e:b669:42a2 with SMTP id m7-20020a170902db0700b0015eb66942a2mr19595241plx.80.1652748958849; Mon, 16 May 2022 17:55:58 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id r2-20020a170903020200b0015e8d4eb29asm7582806plh.228.2022.05.16.17.55.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 17:55:58 -0700 (PDT) From: Stafford Horne To: LKML Cc: Openrisc , Stafford Horne , Jonas Bonn , Stefan Kristiansson , Geert Uytterhoeven , Randy Dunlap Subject: [PATCH v2 10/13] openrisc/time: Fix symbol scope warnings Date: Tue, 17 May 2022 09:55:07 +0900 Message-Id: <20220517005510.3500105-11-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220517005510.3500105-1-shorne@gmail.com> References: <20220517005510.3500105-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Spare reported the following warnings: arch/openrisc/kernel/time.c:64:1: warning: symbol 'clockevent_openrisc_timer' was not declared. Should it be static? arch/openrisc/kernel/time.c:66:6: warning: symbol 'openrisc_clockevent_init' was not declared. Should it be static? This patch fixes by: - Add static declaration to clockevent_openrisc_timer as it's used only in this file. - Add include for asm/time.h for openrisc_clockevent_init declaration. Signed-off-by: Stafford Horne --- arch/openrisc/kernel/time.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/openrisc/kernel/time.c b/arch/openrisc/kernel/time.c index 6d18989d63d0..8e26c1af5441 100644 --- a/arch/openrisc/kernel/time.c +++ b/arch/openrisc/kernel/time.c @@ -23,6 +23,7 @@ #include #include +#include /* Test the timer ticks to count, used in sync routine */ inline void openrisc_timer_set(unsigned long count) @@ -61,7 +62,7 @@ static int openrisc_timer_set_next_event(unsigned long delta, * timers) we cannot enable the PERIODIC feature. The tick timer can run using * one-shot events, so no problem. */ -DEFINE_PER_CPU(struct clock_event_device, clockevent_openrisc_timer); +static DEFINE_PER_CPU(struct clock_event_device, clockevent_openrisc_timer); void openrisc_clockevent_init(void) { -- 2.31.1