Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6739913rwi; Mon, 24 Oct 2022 05:38:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4VqQ2EuFD5r2scw7feKVYCboVFyt8X0X1K/VM4hEzpCl0G+oZZn1dtFhfFOprOtNT6u/s6 X-Received: by 2002:a17:902:e5c8:b0:186:9fc5:6bfc with SMTP id u8-20020a170902e5c800b001869fc56bfcmr6938174plf.71.1666615103727; Mon, 24 Oct 2022 05:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615103; cv=none; d=google.com; s=arc-20160816; b=lPNjFOHut9BL236fyW7oxRnnIOIIod2aZr31QqXNbn16MQKRTLFbrdI/MrkSfbHlJX 4bHDrUZyXvE30Itl3fWJVny8GXJ3fJu5HbthEJZTSyIA2dN+o1dyDvrQIzD/01WTLVdz CvevqIUt7MowlhiX5vTPZuLGVDAfnZCgeUpO+lP30RXamaz0c0ePhravnsINuUtpEPQ4 SFnh0A6YGKgcwB6WbYo4fBajA59tl6V0yiTBsMSHp/MDHe0km574VP+kdYWN5utIg3vn n8D10gET2lc0wJ4qJvwhmlSdmU9mPyudy4SPawVxCIgZi6emJFlxGN7ay3nGu9QSgLuM +vtA== 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=9jxBD9FpqrV0tGW5/OAZ/censysHy1gjWvhw/RwNWbk=; b=G+RrFURJfrTFu/qJZASR2e9wQk49sSl+We/9jTZcB5gWYo1Cu7+p9RQOpsrkJc8V/m LH04141xxTKIGc3BSitKYQkBRKUFQidDevTWbs4dgTRhS6VDSITnWG/DePHDDqax6b8g NyRt4nccDTyxGnfvX7NcxI3JpXo3lLwQ4rnOi/aKJE2u+b5MEHDy+pjznMG65UU1cJDr jx2TUw9taHzdf0Sh0KMMdJ4zph2sj93VojTMnLVkXW+g82cvXBPX3DSwfHojGOUVKp4Z 0laS4CRBEk/1BNmkPxElECAOKXTa11pmtqfWtS0zOobsUrPR0xqxjdoTgX4P+X4hJcqS mPuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dM8j2llw; 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 e16-20020a170902ef5000b00176e05275d1si34284906plx.423.2022.10.24.05.38.12; Mon, 24 Oct 2022 05:38:23 -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=dM8j2llw; 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 S232174AbiJXL4M (ORCPT + 99 others); Mon, 24 Oct 2022 07:56:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232526AbiJXLy4 (ORCPT ); Mon, 24 Oct 2022 07:54:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC56C77397; Mon, 24 Oct 2022 04:45:52 -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 49D9FB8117E; Mon, 24 Oct 2022 11:44:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97EF1C433D6; Mon, 24 Oct 2022 11:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611872; bh=y1wRZcbuvsbN8CUT6eBVlfuApor1uiSqqouwpoaDWTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dM8j2llwR1gmiIDe2nBLjb2wYwq1x1O0s/z+SKoyh2NKILHwNZUR5N7OxlCfdd3RX KmdW66MBBtkIm8PYm/Y2JnN4zNJPbHsgqxFl6A9mxbwS32VzmDJ7Q2puIeY2ySjsm5 qA71d4KWOjyWkblZGHt3ZxGHLX5Ly2w/SB+EQXOc= 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.9 116/159] clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration Date: Mon, 24 Oct 2022 13:31:10 +0200 Message-Id: <20221024112953.723975632@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112949.358278806@linuxfoundation.org> References: <20221024112949.358278806@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 3f16b553982d..87cd8fde3a02 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -902,9 +902,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