From patchwork Wed Oct 19 08:31:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 5483 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp333704wrs; Wed, 19 Oct 2022 06:41:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4GrHj/EDvPY4csgQeYTLkAQ9eY+fG8dSTrS7RjUuZScHkmJRgkSZre4PYZjbn2qBU+hkFx X-Received: by 2002:a17:906:fe46:b0:73d:939a:ec99 with SMTP id wz6-20020a170906fe4600b0073d939aec99mr6946915ejb.169.1666186880962; Wed, 19 Oct 2022 06:41:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666186880; cv=none; d=google.com; s=arc-20160816; b=J/NJAm0BGwb1XyHlyfgdpZ/4fJ6aLV6UQH4yELn73yCNIzVfIE5ZtNs2m/Ajf9q8dF Ia9TE1bzFNlbISTSrsotMZWtSHW+bPwL8kDXk48ZWElv3IvaNXS/IBKDPWOGzJ/GS2vs VDR+nb/xxuFUDjB6DUn9LFvikSk4M8qovHN01z3+Pf89ss7QtW+bRaQvUDSFbm9rNpPz R6F4RZXDett+98aBVByoG6Uo+DEhpZmfrR10udubSfD8U4Jh58L8PxN23n7dw8YivZkh SEevqwcLKVcK7Kj0TNMG0DctyGu2BPxht6mjVttqw6366a+YNEcDQ2pfIm1aczri9zb1 fw0Q== 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=DDrQHjBKtvRqtOX7xftYdbHkQATsfZd/L2SkPWZx+gU=; b=vJmAdABFUp3f2qCvyOY6f0HeQ/RY17KzJ2/JqLzYZDaaG3LjC7bXKB/XH0gU+Ru/qr VzmSmDnKEaWd9/kfKqagY3JwSsQVfD8V7VOkWPO4M0L9FqCUhG7EcWjRanZrkfBDsehV cdpu0eNpbPT6VIZnuODxC4qEirfXcARC0FQd7uR03T+Md/94NrLFUT3hTiUg57Rs3L4t N8Kp7p29DcCzTL2Uq6b5g6z9ITvutc2a/g+rUCmGmf2f3dtYKUb7jdY3XnpLy/WXgx7M qJJwVK1Rh9s2xH3TbWyrYyol7wGt2ES6b4N9t9JNZb35Dpl76GJAbVld9O/igaSoJNiW Dl1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="UrS/PB5h"; 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 r15-20020a17090638cf00b0078e11e92257si11956048ejd.333.2022.10.19.06.40.54; Wed, 19 Oct 2022 06:41:20 -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="UrS/PB5h"; 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 S232579AbiJSNh3 (ORCPT + 99 others); Wed, 19 Oct 2022 09:37:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232126AbiJSNgj (ORCPT ); Wed, 19 Oct 2022 09:36:39 -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 295AD18B4BF; Wed, 19 Oct 2022 06:25:19 -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 3558EB82472; Wed, 19 Oct 2022 09:04:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96D4EC433C1; Wed, 19 Oct 2022 09:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170286; bh=hp2uKnZxl95or/B7zQYyBfDUtgIF706uAcUo2gKA3mI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UrS/PB5hDDJ4wq3mK42h2SzyLQ3eWWn6fDu6RhvI7qPxtaS+bhpdjGLoANHmmgA9w QGCvgHL0P8CXD04hulq8O9pQQgRHo7sDnGofDUY5l3uKLiGAyt7ita1TiYRop54OoY /aMMcPJwT4FF4axc9aaE1h2A95IZPvSH4PjKWXyw= 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 6.0 596/862] clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration Date: Wed, 19 Oct 2022 10:31:23 +0200 Message-Id: <20221019083316.304157786@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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?1747123574722317890?= X-GMAIL-MSGID: =?utf-8?q?1747123574722317890?= 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 19de0e83b65d..f1102b4c7e88 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -966,9 +966,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;