Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7436062rwi; Mon, 24 Oct 2022 14:46:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7vc7ityXB2zUUnq1o2jg+Vouyanz00S8Vi/U2R5QPQDILXxnyLe2W7qpoRKGTVDJK5DHzY X-Received: by 2002:a65:6bc4:0:b0:439:8ff8:e2e1 with SMTP id e4-20020a656bc4000000b004398ff8e2e1mr30091663pgw.91.1666647985248; Mon, 24 Oct 2022 14:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666647985; cv=none; d=google.com; s=arc-20160816; b=PF15pR2p2Wn/alwcCjI0I/e/tMCNqI9fUfM2OeMjfH2z0mjDPrTp8+rvyi8Wr4w5i2 jFaY9GzRvXCAInhofdXyfBCdBy4sBZYKn7zwy3tHHYn6xfoOt1/hATxaXSqXVcA7C/ol tQq6xenyFlknWO4fcv92xv3xeacJHPWhqFWAQgf2zNwutnMX/cWWE57ekn+NQrU5H/Ul jE6yFaNuMVSatxUm8cefrpvPxv9B2tk+h/4e8T+/VUidJhtu2Sr7/hXZzC22fdqDH6c4 OsraYHAuzZhFsJbrwd/RsoRjfanCobFYaxsdykzh7cBxFlUVXs73WXh7XscXPJbawIuc Fe1g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c9-20020a656189000000b00440a593821esi608283pgv.523.2022.10.24.14.46.13; Mon, 24 Oct 2022 14:46:25 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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; -- 2.35.1