From patchwork Sat Oct 22 07:26:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7530 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1105799wrr; Sat, 22 Oct 2022 01:36:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4K/6EK7JGMBC1zn9VABudSlgdZdQjQTO+niw4bExONquVtNCHxO+Z6HuPOvt7enrJ4gQzo X-Received: by 2002:a63:f709:0:b0:44f:6cba:3a4f with SMTP id x9-20020a63f709000000b0044f6cba3a4fmr19069562pgh.428.1666427772462; Sat, 22 Oct 2022 01:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666427772; cv=none; d=google.com; s=arc-20160816; b=UogWejVN16FhjUnmJZ65UvG3D/+Tqbm8qlEUN/g0xFP04uTTGoXZfcnTwgTABWCoXd UaNvgEGnk1xLDxUq4LQbpkWsnLyETgMiBsy2YiXiCaCflLvXKzDGZ9lmxnbadGKVyMoz QydMQ9Yfav6qq2wWmipmxKBU+k2z767kd27VqhkaGd4P/RE4JwXAbIHLJjS9ClnpEpAh y0l5s2IEIsrBslEh8Ia9iKCItMUiZrSsG6/aaju2Vlaw0H6QXQbCLEDW4omCo+f+z3f/ OEd4jbxALB/fU4UYsxnPjQEtniq+9V2LutGGrqWOwlHAa861SJCg2ciY6UatW/ZthM9r +qtQ== 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=JBFxf4W1bmaAfIVMAz1L2haQwthAJ8YO22nTFQpZygc=; b=Q5I9AiElgmT/HsWflzLFlmqQlOIwB0HlldA4xfTwTUjPSFapXzVMQCbh5tuhKTIWKg RUZoODRRJY6eyIst0fDE1Ln68/R7HndGcsYzzL9jXVVW/6UOvFymxrwLW+SOi30o8m+G lBPC4GEvpA+XOahJlZNIG5AUMl1HAHbWiEe4jQGVqOdBvfEzcIOmeSlZvIOFTVKUUdup +DzyqkfXOf5O8gkLQ1p16kUtc+SSdnWoBxcxuJnyPdjMeiK3jWxR091nJCFAQinuO4mp pAwCf67EPi9ivuAEVUYE5KugJ7L7Hs6LnvDzTsyXUaFnBa0E06SWnECtc2cqOGGD96Dz LqpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="okqaPYY/"; 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 y31-20020a63495f000000b004629cd1dbb1si28721459pgk.329.2022.10.22.01.35.56; Sat, 22 Oct 2022 01:36:12 -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="okqaPYY/"; 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 S233543AbiJVIUR (ORCPT + 99 others); Sat, 22 Oct 2022 04:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233661AbiJVITC (ORCPT ); Sat, 22 Oct 2022 04:19:02 -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 DF8732DE448; Sat, 22 Oct 2022 00:58:00 -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 6A79BB82E29; Sat, 22 Oct 2022 07:56:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADCCDC433C1; Sat, 22 Oct 2022 07:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425387; bh=cOm26CLNCRY3FQd40Isa4XAbzShkLfFTJBR6ThNBhWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=okqaPYY/mp9ygXGv8dB/mKvcKn84g9ZRA60wsIsTtlzfCs1NmSKfo0VECFgZW73of 7+wmyF/XlhR2bCPSrz5+cgvZ8pYS+VgWyfDhjju9id7M7OG6wUWRIq/eA75QCs+dZJ pOAnT8gEjqVeDc05UaJKkUt14Exa1bPsB0AG1eMk= 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.19 484/717] clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration Date: Sat, 22 Oct 2022 09:26:03 +0200 Message-Id: <20221022072519.797638219@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747376168371231839?= X-GMAIL-MSGID: =?utf-8?q?1747376168371231839?= 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 48a1eb9f2d55..9e9f8b242958 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;