From patchwork Fri Oct 28 10:36:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 12228 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp747818wru; Fri, 28 Oct 2022 03:39:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4L3BiUFEmk3COQa7bk0wyFb1/E4iBxWAMfgnYUHJ4kU4pMMb+iltoma7PPPYRBU6yoEECd X-Received: by 2002:a17:906:33d8:b0:7ad:a195:ce51 with SMTP id w24-20020a17090633d800b007ada195ce51mr1495006eja.365.1666953588761; Fri, 28 Oct 2022 03:39:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666953588; cv=none; d=google.com; s=arc-20160816; b=KbD0N/i5mryWr12fbi1aLPMZ5nl5hocrw2soq+n3CV+h9JPgzofE2l9A4+pmqU1UFX XxHuqkZfIhqXW3OyZ9deOGccOybajyS50HzCpZZ5RqiQUqkFuRM4EQ/1OlnI5AcoIoC3 6MH2HYy4yeJFgX4Cqv3tUMThkSGN76Sg65PiLJnbnqqPUbuvoAO1N/qFm1bqA7qcuTNS pe8z25Bze/2AOwHDZIABXMvHfX5peDOKhh3C8vPErMlgPToNzVMza3vJqeDGg6xn2Q56 G9z32bgltlnDYCCrSFx0psrGCGJX8Eizt2oEtx5UNRQgR92RLa+NhNw+R1qq2IqYCV+Z ROvg== 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 :message-id:date:subject:cc:to:from; bh=qYpq4OE3GYwc390yq5rdu/0vRQjWtVOqD4VHkw9gAMc=; b=NGqVuF0gU0yPWn/nfWZpug7Goe6D6bWsvSzJaB9RMUqbXO+00zIcBUlMrlMg7Q6kZG 7uBaBrMaTTZHbwf2Yn2A5LQmiqprP79zHtZWNZfciekRJKo7SdbhUE0MvOkxXwouCycj yKTZ8L4fInZTgnV8eZ2Ifusrw/MgU6nuQjmEmSBfz3kM3ZQrTmK1SGE4iro65YSHw/j3 teST9ENoy3YjTqJn4DR8AbtzK3bgbV1lsUreylMiM9wj4Adk2Vzxa24QBrRThQ2aXXV2 OAuWo0DoBpAsY1L8cVnjc6jrzS9pRYf4ajMGw9wQSlvUN4Cxb4i6ApHaBkHlfLpZD/Jt DqPw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a0564020e0200b0046270f01409si2971524edh.40.2022.10.28.03.39.24; Fri, 28 Oct 2022 03:39:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230443AbiJ1Kgr (ORCPT + 99 others); Fri, 28 Oct 2022 06:36:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230448AbiJ1KgM (ORCPT ); Fri, 28 Oct 2022 06:36:12 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 36CEF3DF07; Fri, 28 Oct 2022 03:36:12 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 7978A8186; Fri, 28 Oct 2022 10:26:47 +0000 (UTC) From: Tony Lindgren To: Daniel Lezcano , Thomas Gleixner Cc: Grygorii Strashko , Keerthy , Ladislav Michl , Nishanth Menon , Suman Anna , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Janusz Krzysztofik Subject: [PATCH] clocksource/drivers/timer-ti-dm: Make timer_get_irq static Date: Fri, 28 Oct 2022 13:36:04 +0300 Message-Id: <20221028103604.40385-1-tony@atomide.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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?1747927526464682406?= X-GMAIL-MSGID: =?utf-8?q?1747927526464682406?= We can make timer_get_irq() static as noted by Janusz. It is only used by omap_rproc_get_timer_irq() via platform data. Reported-by: Janusz Krzysztofik Signed-off-by: Tony Lindgren --- drivers/clocksource/timer-ti-dm.c | 2 +- include/clocksource/timer-ti-dm.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -643,7 +643,7 @@ static int omap_dm_timer_free(struct omap_dm_timer *cookie) return 0; } -int omap_dm_timer_get_irq(struct omap_dm_timer *cookie) +static int omap_dm_timer_get_irq(struct omap_dm_timer *cookie) { struct dmtimer *timer = to_dmtimer(cookie); if (timer) diff --git a/include/clocksource/timer-ti-dm.h b/include/clocksource/timer-ti-dm.h --- a/include/clocksource/timer-ti-dm.h +++ b/include/clocksource/timer-ti-dm.h @@ -62,8 +62,6 @@ struct omap_dm_timer { }; -int omap_dm_timer_get_irq(struct omap_dm_timer *timer); - u32 omap_dm_timer_modify_idlect_mask(u32 inputmask); /*