Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1183906rwi; Wed, 19 Oct 2022 07:38:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6/dtrK9zjdrU5hW4qaeOqMB6Z1zN1h1IqsEOMQ9qcB6B4oJ3RUBZ7vzlDnskcgjJy9USCo X-Received: by 2002:a05:6a00:a94:b0:562:dcbb:47c3 with SMTP id b20-20020a056a000a9400b00562dcbb47c3mr9074432pfl.79.1666190295361; Wed, 19 Oct 2022 07:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666190295; cv=none; d=google.com; s=arc-20160816; b=i/44UkUFsXJzvHP7EIM6siBWAejVRQH0MPZaKSa49asP7VqdHnY4t3FROEfkR80r8t N2DaYgGadj4CGskz5Zi95x5Z7toVpW45SkG5lg/t7Og7CS5+nxNMZPg3XwTiFoT/v9iA F2Sbxd7rwR0/qekcGjzKPo5Jc1xNLVlaU1EgYWmCCQE1SbwRHxEG6T9ei4GdtQBMS5WZ 6edbbDc22DFG+6+1F9j/lm+ZnbhZLN/F7TZK9wg6U8ftvNL35wYsK8M9jP8XTb7oTlfr cNCL59x9HfokY4tLbi4qmQCvatzsTwKPF6AWqIvIRRw28D35WKqWGci6IIfVlk4zDD58 lSPw== 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=DDrQHjBKtvRqtOX7xftYdbHkQATsfZd/L2SkPWZx+gU=; b=vJmAdABFUp3f2qCvyOY6f0HeQ/RY17KzJ2/JqLzYZDaaG3LjC7bXKB/XH0gU+Ru/qr VzmSmDnKEaWd9/kfKqagY3JwSsQVfD8V7VOkWPO4M0L9FqCUhG7EcWjRanZrkfBDsehV cdpu0eNpbPT6VIZnuODxC4qEirfXcARC0FQd7uR03T+Md/94NrLFUT3hTiUg57Rs3L4t N8Kp7p29DcCzTL2Uq6b5g6z9ITvutc2a/g+rUCmGmf2f3dtYKUb7jdY3XnpLy/WXgx7M qJJwVK1Rh9s2xH3TbWyrYyol7wGt2ES6b4N9t9JNZb35Dpl76GJAbVld9O/igaSoJNiW Dl1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="UrS/PB5h"; 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 k4-20020a635a44000000b00454649777ddsi19885677pgm.601.2022.10.19.07.38.01; Wed, 19 Oct 2022 07:38:15 -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="UrS/PB5h"; 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 S232579AbiJSNh3 (ORCPT + 99 others); Wed, 19 Oct 2022 09:37:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232126AbiJSNgj (ORCPT ); Wed, 19 Oct 2022 09:36:39 -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 295AD18B4BF; Wed, 19 Oct 2022 06:25:19 -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 3558EB82472; Wed, 19 Oct 2022 09:04:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96D4EC433C1; Wed, 19 Oct 2022 09:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170286; bh=hp2uKnZxl95or/B7zQYyBfDUtgIF706uAcUo2gKA3mI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UrS/PB5hDDJ4wq3mK42h2SzyLQ3eWWn6fDu6RhvI7qPxtaS+bhpdjGLoANHmmgA9w QGCvgHL0P8CXD04hulq8O9pQQgRHo7sDnGofDUY5l3uKLiGAyt7ita1TiYRop54OoY /aMMcPJwT4FF4axc9aaE1h2A95IZPvSH4PjKWXyw= 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 6.0 596/862] clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration Date: Wed, 19 Oct 2022 10:31:23 +0200 Message-Id: <20221019083316.304157786@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@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.4 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 19de0e83b65d..f1102b4c7e88 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; -- 2.35.1