Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D502C6FA99 for ; Tue, 7 Mar 2023 03:48:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230182AbjCGDsU (ORCPT ); Mon, 6 Mar 2023 22:48:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjCGDsP (ORCPT ); Mon, 6 Mar 2023 22:48:15 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCCE258C20; Mon, 6 Mar 2023 19:47:44 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 03FF224E023; Tue, 7 Mar 2023 11:47:42 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 7 Mar 2023 11:47:41 +0800 Received: from [192.168.125.128] (183.27.97.46) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 7 Mar 2023 11:47:40 +0800 Message-ID: Date: Tue, 7 Mar 2023 11:47:45 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v1 2/3] clocksource: Add StarFive timer driver To: Andreas Schwab CC: , , "Daniel Lezcano" , Thomas Gleixner , Krzysztof Kozlowski , Rob Herring , Paul Walmsley , "Palmer Dabbelt" , Albert Ou , "Philipp Zabel" , Samin Guo , References: <20221223094801.181315-1-xingyu.wu@starfivetech.com> <20221223094801.181315-3-xingyu.wu@starfivetech.com> Content-Language: en-US From: Xingyu Wu In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [183.27.97.46] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/3/2 17:39, Andreas Schwab wrote: > drivers/clocksource/timer-starfive.c:117:13: error: conflicting types for 'timer_shutdown'; have 'void(struct starfive_clkevt *)' > 117 | static void timer_shutdown(struct starfive_clkevt *clkevt) > | ^~~~~~~~~~~~~~ > In file included from ./include/linux/workqueue.h:9, > from ./include/linux/srcu.h:21, > from ./include/linux/notifier.h:16, > from ./include/linux/clk.h:14, > from drivers/clocksource/timer-starfive.c:12: > ./include/linux/timer.h:188:12: note: previous declaration of 'timer_shutdown' with type 'int(struct timer_list *)' > 188 | extern int timer_shutdown(struct timer_list *timer); > | ^~~~~~~~~~~~~~ > Oh, this timer_shutdown(struct timer_list *timer) function was not available in 6.1-rc5 which this patchset was base on. And in the new version, it's the same name as my own function. I will change the name of this function. Best regards, Xingyu Wu