From patchwork Mon Oct 24 11:31:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8809 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp430930wru; Mon, 24 Oct 2022 05:42:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5MRxeaZk9cM6tRMbXY72WpY0360R5U/0llQbxhNyQavKcdAk8a6SR2Y+Fluzep5CTjLn14 X-Received: by 2002:a17:90b:4c0b:b0:20d:8572:ab27 with SMTP id na11-20020a17090b4c0b00b0020d8572ab27mr38036194pjb.193.1666615353071; Mon, 24 Oct 2022 05:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615353; cv=none; d=google.com; s=arc-20160816; b=By1SQTTYeAzyF76jZk3eVJqkJEoQnUDAt9STx7jCGDN9YArPWsjYZMGElWOX0oqIk8 kftHdnIuglvGzZSc5Z+kxilGe7cW9ReYx/wzMOB0naGqnB0+NuvbXpx0jHomMF8fp/jm yNuCDcoOUQBMdNn5+UJuUXo2aQNmtfRfy01NO4M3Zj6qIPQhVcpsoMsJFqjyiEbfw1Vo DA+z9yIE87UJqfK9zetggYM/XJCOtUkWmTssypGiak1lo1jWocu/aTdMpOJpNr0iPMPo FGP42311axKSKtRgmTXKiX1hOopnEmu1+jGd2flhqMta7IHM5jqWVZ+/BjiwhhAa9VaV kY+w== 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=TtvRVjhRsiJg/lWBy0Eaz8afX8lm8rfZLNKfjSWTsvI=; b=EfdxgdvGJ3cvK3DTR3L9FovDoZNKxYrjwrLOyaIki4baFUxGbE0sc00zt+Z65ZlwFL WyQ+ieAN6d90qnMo7nUi3bFmz19ZVpbu7Mg/QnctO7SmyTOlCMRomSQfn5PKdNPwJZEO 8bXEI6O2D8dT/TEnwijQp6PwcAvx/NKZ8v7hsCxhf8U1njTEQJcVJlgvQjntBt0ixPFW lytF7dcGfgZJTU/21Lwpf0+hSLVCgZoMhrOAEcN5JCvVr4yuMydr5EUZQQFqB7j3bNyC JSDljfY8W19+Y1co7SDp+/0cnkrr0ZKL1O99Sqr7IZGcnP5gOqQz5f0HX3b6TUBYC2uw 7ghA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=spjDvkWr; 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 b6-20020a170903228600b0017f75ce8a2esi38427515plh.575.2022.10.24.05.42.19; Mon, 24 Oct 2022 05:42:33 -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=spjDvkWr; 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 S234457AbiJXMfF (ORCPT + 99 others); Mon, 24 Oct 2022 08:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234241AbiJXM3s (ORCPT ); Mon, 24 Oct 2022 08:29:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7468A868B4; Mon, 24 Oct 2022 05:03:44 -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 A5DF8612BE; Mon, 24 Oct 2022 12:02:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7EDCC433D6; Mon, 24 Oct 2022 12:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612967; bh=J5kxD+IcyiLjueojU6BHKyBWY1G0nIvUI3uXZKpvxz0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=spjDvkWrXYnbEaWe464ksIydaOY6eQ2c4SNmi0YJGLD30VrkSdOULVqIwqOfnk/Zf Hec1APiHN0XyMjYXw6AE2PM9TgxNwbnWG2jLkWXf0lcQltOneunZc1f8TSSfUNdWLP bFea9V2PF9NTeWMSXCkrEAThhpR7tnq7kFPr2d0E= 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 4.19 156/229] clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration Date: Mon, 24 Oct 2022 13:31:15 +0200 Message-Id: <20221024113004.055435333@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112959.085534368@linuxfoundation.org> References: <20221024112959.085534368@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?1747572860400081727?= X-GMAIL-MSGID: =?utf-8?q?1747572860400081727?= 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 fd78dd5356ed..5a2f8d5d8d7a 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -950,9 +950,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;