From patchwork Mon Oct 24 11:31:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8511 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp405333wru; Mon, 24 Oct 2022 04:56:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4qQFDgSelnulrjBB6kmCS+Lt/zSip+2T0Bvglbwj2QUEVCuW9HpP3+tr8A/yTa5tr7w7Wj X-Received: by 2002:a17:902:6b0a:b0:178:9a17:5b89 with SMTP id o10-20020a1709026b0a00b001789a175b89mr32099014plk.113.1666612609602; Mon, 24 Oct 2022 04:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666612609; cv=none; d=google.com; s=arc-20160816; b=DAygF90ymv67sIV5HT989nx7+I0KEqvaSqrz8Y3OcMdcoLgTYyOZoin1M64HzwXafG YeW5Ru/WR5F3QLHeoN9Kd1hftQ9oDMz3hWTvEIrzxe2Of0pD57Pqil0pNf7vPQVVjoBI 623ikX+G+eef8jdRSGDEdPugQ8T3HCK0YfKcK6l2HZllzf0lS9YMTnw/fjE8qyA2//ht qcREm3Bc8TFTU2MMQugGM+X/+Gt3epqY+FmN/mz94yXgvUPe4yYizAwjsIV/F6lPs2zS vwe1rg7riPxcqmIknohsI9WvVxhqlw+/NEDNjbpGq6VFz9iws3xlwIL9fgAMxuky38X9 gFsQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t27-20020a63225b000000b00464858cf6b1si35194545pgm.192.2022.10.24.04.56.36; Mon, 24 Oct 2022 04:56: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=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 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?1747569983971521471?= X-GMAIL-MSGID: =?utf-8?q?1747569983971521471?= 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;