From patchwork Mon Oct 24 11:31:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8606 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp419706wru; Mon, 24 Oct 2022 05:16:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4hdz7EvVFjTzX8XXzss1TeJLiknvThkhQ/TUvbw1nh8t1scrdsb92LbS//9jJ9y12XY+HV X-Received: by 2002:a17:907:7607:b0:78d:66e8:c746 with SMTP id jx7-20020a170907760700b0078d66e8c746mr27596644ejc.220.1666613806595; Mon, 24 Oct 2022 05:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666613806; cv=none; d=google.com; s=arc-20160816; b=iiq0gpmbY9irX57vY/aj9OgoV3r09OIpG98/YywZdH5hDRcqh4MHwQ5djkns4A+2Hn xaO3aHJ4Rt4t8NROWEGHkvtOvjvoqY6sfN/OvY27jeK3U+ihEoPzJP3NnUe3IxIhCL6g GxsAuMO8G4axvw/adZuHB0jQWr0l/wtu/twe422F/jzWJcswKx5iXLq0M8d3Hz+bPzXz ERw6UyWeyjEuDT+w6D6dzw3TdvI3eK8xF8F+c1TcNaD/BfkuhXgtA+pAjftgjeoWf4zM mVDeqbwlGzDoZ0FOpgNM3dkXXxVWpLCVRL2FUFC2C313VR8c1KkMGejR9fpG8MJVge3g XVOA== 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=/rv3neag2Ze/01MwzuR6DNPAKJM7xkaiP+3kpSDD3Qk=; b=IA2exPFGmZ0Trm64e1J/dyWM8v6NuFFYNal0T/CC85WiNTVWz/ofxvDXgseQcjBXr2 hMeGscpj1nqv/8hol7lOIdJqvgzrSrl4vdJX5QpsU8kUr3SHBXRWh7EBlLN7NhwmewxQ 4CON3/W/98oShvIDCznpC6tceocLqRnGUtjh2R1TYzp2e1twR2RAy//bgWWp2gO3ediY umrwW2KIIuR7Uux6UP9L1098r0BHZZvPMDylATmYvYoSUFNl3HTrpsOFQ6G9MHQSeUTT UtIIEeMxGr4496LnY+b1mbG2z5vNu9TahpbCZ1yL3IyRj/+z1ntpBbW3CjH+75rFwxZL Z9ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="J6/sLLx/"; 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 du12-20020a17090772cc00b007aa3373e7fesi1021211ejc.520.2022.10.24.05.16.22; Mon, 24 Oct 2022 05:16:46 -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="J6/sLLx/"; 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 S230351AbiJXMIs (ORCPT + 99 others); Mon, 24 Oct 2022 08:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232717AbiJXMHC (ORCPT ); Mon, 24 Oct 2022 08:07:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 543657E825; Mon, 24 Oct 2022 04:51:49 -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 E1993612BB; Mon, 24 Oct 2022 11:51:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0257C433D6; Mon, 24 Oct 2022 11:51:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612308; bh=d9UGACqchgTVt9QM+LfeOMJn5Ue0zcjSQFeX0MyUg+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J6/sLLx/st9288usTyPbuFLr3YpwmynNCfuSbQe/yFh9zh6ScFTHW16R1JYHcztNj TGTU+QkyM1NLdDwKG6RJXVCJAriOCr+WfVymQ3Z0Rx2p5rHdKWh3a7QB8ZbyTEAqdt owc6edM5r03eXbD3idApmJAz0pvcTT+w+GALMiHU= 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.14 149/210] clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration Date: Mon, 24 Oct 2022 13:31:06 +0200 Message-Id: <20221024113001.813660149@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112956.797777597@linuxfoundation.org> References: <20221024112956.797777597@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?1747571238538133746?= X-GMAIL-MSGID: =?utf-8?q?1747571238538133746?= 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 8ccd72cc66ba..be217c876e25 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -984,9 +984,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;