From patchwork Mon Oct 24 11:30:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 10309 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp656211wru; Mon, 24 Oct 2022 14:17:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Ur2YHNGHCkbkMSj2aeuVad3MurU6c0OrM3c3NUv45zYAzeVw2hV4naFYkuq2YBV7PjGHr X-Received: by 2002:a63:ed0a:0:b0:442:2514:95f5 with SMTP id d10-20020a63ed0a000000b00442251495f5mr30051720pgi.402.1666646251407; Mon, 24 Oct 2022 14:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666646251; cv=none; d=google.com; s=arc-20160816; b=Cg4gnkYj+BAoEloQtvwWFgYE4BJfp5On3ElSkmDNtddEM0/4Q6rhmNpIh3ldQ0NzQL XLTZE57HuAZlL9IKM9QZWUACR+2E0I85Xh9LiyLighgIPJkIZTI7Zui6V2eZVod1uSUk W/mIYgz+y+7RMCOOKUQq7J7Bky+ewDZrr78GOrz/XDxO1NQC3EZI26jPOf1OcDSa46Ce kvSzANcl3Od4pfkSaIraOuNPyC441T9Ra2qZzsRu/Kx2VpvxLntV1y+vNxI/ST5PQHlK 4SnWyHWKdgvza8W8jOn11xY2Hn6SBXCHHDMK8pqylNBj+9D5lDf/15DI44YV4umchJEU o2fg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nVOJezOpSe/rim8gcehdQAd1aRSrvLptMrO8BaeGL4o=; b=oeXOzkSWpQuj1W/EAS6Junn/5dzJ6JLhBIMIuYctrlMb0wRjeVG73xnhG4YhWn58j4 Az6pj4SuuwI56TaBGUoXqjpE/Yb27PixloSj/sUkfwh0vEPQYd6flII9rxxKBkP2pQi9 VTHXSFMtoB44uHmIwKF9T6Diqt5yNohQZnOx+4SDJzw3JS5aHupYSsnZfsGjne8ZS6Fr JLcf6U3WaXrsE4+oYevN20dGmLw4kyeWft+LV/ObOgQJ7gmKvM8PoiJSXLjnNtswEoU+ jED+km1T0KUkOBuPnxQ7XDscSMAZpvUcVblGXQWn0xh9oSuBJ5ZxDhSm8o4SIh98BwjU uhVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RdmTZCgr; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020a17090a558700b002009ed52bf6si1052436pji.19.2022.10.24.14.17.18; Mon, 24 Oct 2022 14:17:31 -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=@linuxfoundation.org header.s=korg header.b=RdmTZCgr; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233300AbiJXVRD (ORCPT + 99 others); Mon, 24 Oct 2022 17:17:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232995AbiJXVQc (ORCPT ); Mon, 24 Oct 2022 17:16:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 290C92D129C; Mon, 24 Oct 2022 12:22:17 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 8431CB8168D; Mon, 24 Oct 2022 12:27:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E177AC4314C; Mon, 24 Oct 2022 12:27:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614434; bh=4+j9hpRKHD7cYXNKV6oPGY/n1f0gxGjkSS6/MMzh7YQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RdmTZCgrOR8N8dSuoL2WOxQywhmGQDleLdosuaDcu3rQIv3XnOPAQ65Ht1bUCBtNP 2cMG+DDkSj7mehh1fwW+C3DMduNuPw5HGK7kiETLnWMMAZH4MqCShopSRY1+YFkAsJ MQnvkIoo6/5LsfA5o1sLZO7U2WNlR7d191oVS9t0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Wahren , "Ivan T. Ivanov" , Florian Fainelli , Stephen Boyd , Sasha Levin Subject: [PATCH 5.10 260/390] clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration Date: Mon, 24 Oct 2022 13:30:57 +0200 Message-Id: <20221024113033.953158253@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747605259650295678?= X-GMAIL-MSGID: =?utf-8?q?1747605259650295678?= From: Stefan Wahren [ Upstream commit 0b919a3728691c172312dee99ba654055ccd8c84 ] The return value of bcm2835_clock_rate_from_divisor is always unsigned and also all caller expect this. So fix the declaration accordingly. Fixes: 41691b8862e2 ("clk: bcm2835: Add support for programming the audio domain clocks") Signed-off-by: Stefan Wahren Link: https://lore.kernel.org/r/20220904141037.38816-1-stefan.wahren@i2se.com Reviewed-by: Ivan T. Ivanov Reviewed-by: Florian Fainelli Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/bcm/clk-bcm2835.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c index 178886823b90..f306b959297d 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -968,9 +968,9 @@ static u32 bcm2835_clock_choose_div(struct clk_hw *hw, return div; } -static long bcm2835_clock_rate_from_divisor(struct bcm2835_clock *clock, - unsigned long parent_rate, - u32 div) +static unsigned long bcm2835_clock_rate_from_divisor(struct bcm2835_clock *clock, + unsigned long parent_rate, + u32 div) { const struct bcm2835_clock_data *data = clock->data; u64 temp;