From patchwork Mon Oct 24 11:31:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9082 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp445570wru; Mon, 24 Oct 2022 06:12:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wiIrDG9aw5sG4mWiA8kodzqshvQvqa9CIVgP7CXcOX4KfZYXDXrJ9f3XpY1O65YtJ70fq X-Received: by 2002:a17:902:b614:b0:186:940d:7e98 with SMTP id b20-20020a170902b61400b00186940d7e98mr10418802pls.80.1666617169476; Mon, 24 Oct 2022 06:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666617169; cv=none; d=google.com; s=arc-20160816; b=nY4rVTccNDI8+hL+7smrDukZ0fhZT7pv866Au/bAlpFvSrZxU0Ms+DBLly0cvc5Gpv LtBnzfGrMh3okmR3QRqBTd05+OiY4g8kY6wDrP9Y9mdUs/OvlHyPzgy9iGyFaxUaqUYC 1NHJtBlYFBg30Upo1FMcKK4zwjlms+RmOxYPALaQg+Ip9myrf4PeXgqT1BvciNQSpvwk FlTiWO8vjjaGKFuACMUrWjhvk+7bLSTyl6/ZvAV4WkqoJGYLZxZzYxuruDurAJBy5naX qLDGXn5SRD8UkbgyMED3EgPa1210Um4c+dainsu3unrF5AWVVjOjl6kRXyVcMPXGnySL sW4A== 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=zxouHEbYU5w3UgsXkaQUzpj9LnuMVPe91CMa9QPZAp8=; b=zvsSeyIvBcTHN/j3RJ1Qu/0HdPnZ7vxeJyVx+JI0cLJ1DPp7W7BpAVuFmT03Ta8bjk ZIPFLrIPjxR2l8IXYJOOwrxtognnWVizYq7avZfTjP4Yh3trHz4ab5QZTLQ+zGoktfpE 6fG3wceRfbyYlnpUWtALbp+22/c2LdaxBY/AL8vgJmQM9kRSl9E1CsCvetZgaEcTACOj wokdqieR7Q6mQKfo4qIgzgUZa/E2M/kgHWP1aHWHEr7c62e/N0FmBWON9SauEc+/Xb/Z h8JRl3/rUrKjUakD2DpMhi54XB1dSyCFPWjmrCgkD6VbEhZQwt/HjEdItlsrzZxOiy9u Dr7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nK3obnwl; 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 bf5-20020a170902b90500b001842f55e713si31452536plb.321.2022.10.24.06.12.35; Mon, 24 Oct 2022 06:12:49 -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=nK3obnwl; 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 S235678AbiJXNMO (ORCPT + 99 others); Mon, 24 Oct 2022 09:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235871AbiJXNJx (ORCPT ); Mon, 24 Oct 2022 09:09:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A3AA222B; Mon, 24 Oct 2022 05:23:41 -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 dfw.source.kernel.org (Postfix) with ESMTPS id E0D8C612EA; Mon, 24 Oct 2022 12:11:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1603C433C1; Mon, 24 Oct 2022 12:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666613513; bh=Dzp1yNR7MhGQClgmsjrPeU8LYIs6j51LrN6Tl5etqIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nK3obnwllSafgbh3CbwQWeGdTKLGc6OZwifjfFwQ4giJjOm1hnxze+3nLpeth9n2b VfjQWIfnszc2KBUxRLH3ccW9P2haNpiB6tmWpsO6mdZ3bAI0SiibxZdPVP4U5aMMzE 5hnCXGqUSs5eqIMA9wslTYiuT7KFrIhZhA92WC2Q= 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.4 166/255] clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration Date: Mon, 24 Oct 2022 13:31:16 +0200 Message-Id: <20221024113008.244913106@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113002.471093005@linuxfoundation.org> References: <20221024113002.471093005@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?1747574765343036968?= X-GMAIL-MSGID: =?utf-8?q?1747574765343036968?= 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 e637bd6b295b..e650379b3230 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -967,9 +967,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;