Message ID | 20230118090224.2162863-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2247988wrn; Wed, 18 Jan 2023 02:07:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXsQ0CW+FiDL1VXsDneU5Rm/M6/7AP/UzUenFMX3FUi7nqtt7eEDo9eu+fh2UABhsDK+PIOC X-Received: by 2002:a17:907:c687:b0:86d:7c2d:f65b with SMTP id ue7-20020a170907c68700b0086d7c2df65bmr6916628ejc.27.1674036471537; Wed, 18 Jan 2023 02:07:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674036471; cv=none; d=google.com; s=arc-20160816; b=apXtv7fwdqgn2sDAv7HM2IBlH6XL6hVRgoTF05pVkcTcdh6R7X+1JkopJRxP/BCQe0 7PuPVK9w3zuI+SSrIJxOvi27GxZaCpKlXhiYmglklJgOHsoEV9J51n8zJY3RVzw2/EHr 3l8qjxK+06iY6s0vNYoGHyqNV3Fz+oC6R4kn0VlHfZ4tB8hOBYdi/fzgL6twxiUJ77jB sXzTi0tSZZEYgG8NiZpDvUAtB/WnNEiiIqFjVfpb/eJ5e5QukkJFoaV0yV6gMDQ9Y0j6 5QtkxGfdGAtNIEqrWbU+GkH7woaYSKf/d+QFywMfeYFwSUO9XP7nvSVi3Ea2FHpL+HsO OqDg== 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:dkim-signature; bh=iwahIzhU7cIvdbqe2+uGNiRTXwIuYLi/vEyz2D6nex4=; b=dM0lZ9tPe6GLA3W3iAHp/wcj7fRQSE3CCNhgBh7zIx+o+LmJC8CBA+gvmM+IE0x7L8 mZT5kLXZNB5WAIZPm2zTq3R7DtkTi7jca0qKWnZfD2Gt/UIRgHg9X4GGP2v8s/POdttK F+Nj2h6TA9g/EnSGkWMkdZej5IAkmtnTP5EbgUEN02rSHDWDnRzQLm7yoY+Dt6BrXKxB YHwm76dEz6NG/d4tsQz77L1jxuJ5I4cInBbDuCEp/1gTBewPambGpx2GInnScgzKLEnH w9HGj6SNYu+MZk/1ul5BnNqNbg3CNfM0Fd3eTmW0VyMNBJ7dCSkWRXsVEcNytpjdFJ9w kSlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KjM6elgr; 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=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa38-20020a17090786a600b0078d550c0272si13767441ejc.269.2023.01.18.02.07.27; Wed, 18 Jan 2023 02:07:51 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=KjM6elgr; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229615AbjARJwa (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Wed, 18 Jan 2023 04:52:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230163AbjARJvn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 18 Jan 2023 04:51:43 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11A2E8CE53; Wed, 18 Jan 2023 01:02:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 301CCCE1BB0; Wed, 18 Jan 2023 09:02:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2CD9C433D2; Wed, 18 Jan 2023 09:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674032549; bh=EuAgTB/iPW4vJ/ZRJE/nY3/BVUH2eT5SYitsWMD6MXk=; h=From:To:Cc:Subject:Date:From; b=KjM6elgrcBl+tAIy6K9MSWdfuHOUYGcdsn8MmZRkX8t86g5RRK1AFOIfidSqqG9+c 12E26EhK9+ax/HMr2aFqjgbfSs65XfcbBtagFTZyyoV8K9NV63cTveHFvfXW8p81+Z feeB66PxqeptnbKJX6Cyd7ImBXCXYLS0ZCN92bQbRJ2GpRSwdDLhkOnXd5V02IJkjl qDirtVG2ogDjcOOCq64NNGLzkz0iZHoh3YlQ9vkJiaNzZMxEBaUMnL9MZWt6fM3ND/ mLWnXfrgOVx+V0AWDSiGLLn8F9PEaCGE8xgaNqMKfAbPuPFkEKI76mviiP81NsEmND xOBJ1Nbr8+pUA== From: Arnd Bergmann <arnd@kernel.org> To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Tomasz Figa <tomasz.figa@gmail.com>, Sylwester Nawrocki <s.nawrocki@samsung.com>, Arnd Bergmann <arnd@arndb.de> Cc: Russell King <linux@armlinux.org.uk>, Alim Akhtar <alim.akhtar@samsung.com>, Heiko Stuebner <heiko@sntech.de>, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: s3c: fix s3c64xx_set_timer_source prototype Date: Wed, 18 Jan 2023 10:02:12 +0100 Message-Id: <20230118090224.2162863-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755354467233356493?= X-GMAIL-MSGID: =?utf-8?q?1755354467233356493?= |
Series |
ARM: s3c: fix s3c64xx_set_timer_source prototype
|
|
Commit Message
Arnd Bergmann
Jan. 18, 2023, 9:02 a.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The prototype does not match the definition, as gcc-13 points out: arch/arm/mach-s3c/s3c64xx.c:169:13: error: conflicting types for 's3c64xx_set_timer_source' due to enum/integer mismatch; have 'void(unsigned int, unsigned int)' [-Werror=enum-int-mismatch] 169 | void __init s3c64xx_set_timer_source(unsigned int event, unsigned int source) | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-s3c/s3c64xx.c:50: arch/arm/mach-s3c/s3c64xx.h:62:20: note: previous declaration of 's3c64xx_set_timer_source' with type 'void(enum s3c64xx_timer_mode, enum s3c64xx_timer_mode)' 62 | extern void __init s3c64xx_set_timer_source(enum s3c64xx_timer_mode event, | ^~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 4280506ac9bb ("ARM: SAMSUNG: Move all platforms to new clocksource driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- arch/arm/mach-s3c/s3c64xx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Wed, 18 Jan 2023 10:02:12 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > The prototype does not match the definition, as gcc-13 points > out: > > arch/arm/mach-s3c/s3c64xx.c:169:13: error: conflicting types for 's3c64xx_set_timer_source' due to enum/integer mismatch; have 'void(unsigned int, unsigned int)' [-Werror=enum-int-mismatch] > 169 | void __init s3c64xx_set_timer_source(unsigned int event, unsigned int source) > | ^~~~~~~~~~~~~~~~~~~~~~~~ > In file included from arch/arm/mach-s3c/s3c64xx.c:50: > arch/arm/mach-s3c/s3c64xx.h:62:20: note: previous declaration of 's3c64xx_set_timer_source' with type 'void(enum s3c64xx_timer_mode, enum s3c64xx_timer_mode)' > 62 | extern void __init s3c64xx_set_timer_source(enum s3c64xx_timer_mode event, > | ^~~~~~~~~~~~~~~~~~~~~~~~ > > [...] Applied, thanks! [1/1] ARM: s3c: fix s3c64xx_set_timer_source prototype https://git.kernel.org/krzk/linux/c/5bf52f5e4d12b8109f348cab60cb7d51092c4270 Best regards,
diff --git a/arch/arm/mach-s3c/s3c64xx.c b/arch/arm/mach-s3c/s3c64xx.c index 32b1bc82d700..c5aa4d8ed8bd 100644 --- a/arch/arm/mach-s3c/s3c64xx.c +++ b/arch/arm/mach-s3c/s3c64xx.c @@ -166,7 +166,8 @@ static struct samsung_pwm_platform_data s3c64xx_pwm_variant = { .tclk_mask = (1 << 7) | (1 << 6) | (1 << 5), }; -void __init s3c64xx_set_timer_source(unsigned int event, unsigned int source) +void __init s3c64xx_set_timer_source(enum s3c64xx_timer_mode event, + enum s3c64xx_timer_mode source) { s3c64xx_pwm_variant.output_mask = BIT(SAMSUNG_PWM_NUM) - 1; s3c64xx_pwm_variant.output_mask &= ~(BIT(event) | BIT(source));