From patchwork Wed Jun 14 01:29:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 107650 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp939129vqr; Tue, 13 Jun 2023 18:48:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5HRV+MNi0/7QtUzZH1DomjXWclt4A7MhXWKLGqCEpxGACRg1af00lEersLyZbhht4Az/SU X-Received: by 2002:a05:6402:148d:b0:514:bbf9:2dc5 with SMTP id e13-20020a056402148d00b00514bbf92dc5mr9127221edv.16.1686707289549; Tue, 13 Jun 2023 18:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686707289; cv=none; d=google.com; s=arc-20160816; b=odRuC2IwXz61Q6Qs3Fr3IWmNIRZ3hNI8VXHttd+IANBEJFhFwQsCedVnECWxDUDR/2 j/neEkXnHQ0oPgPFbeQl041ON6B6jAxXhdi5dlTLcb1dq2sNN72k3ZTmtJSvmb1Egvcl NXKjSHTNbSrSV0EoJmOfc6q7hg9bZ93UFupAe/1H3ypgy7GQKJ2m0gSB54qAEGA8HzkM nF1/jb0sfzrrCIiuenFK7YZ78IxDZKNZ8iMNjcnmdkyNEv5ZWITeDS+ZHCaPkK3ZS3iE hdocZ1iv9HfZwZrx4OHMDyTDMlKcGjDSCYobmP2mpxGSItyLztblYyg3I5aiLO3bmPxW PvBg== 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 :message-id:date:subject:cc:to:from; bh=SQZsL35+RodUWUyVQKXCWpbJBYzLfxHozpQepzsn+rQ=; b=UhKI8/sex+N0FtsLZwb7+biorcH/2jJ+PguZT9p93xNkEmrqDEhoKIS/tBf29xesHz 4uhsvRGRPKB1Hlq8OWm70ahDc/14TJwSqdZgdtTwG5E37ixYLd4Cywa0Pb1WcCu7MvqC Nvavv5kKOxc6XMaUcbm1uIvJAUyUdcwSSZUJ8RoKpfwVIg6cJhaf1YkuIicfpo50YkYf S5gqKfGlsMwkox97n8x0JMe4ilKjrh9kiq1UdihQxJKXa3DF70R1VDZLgn/+O5I+xwgo gsqXpohhqNfH5SsXZ8L+/6JKW8Egfn1FulXi1KKaVb3Kn4ArVnQmSu9bqW/WohgM9+HX mLMw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020aa7d887000000b00514a23e7f0fsi7979894edq.485.2023.06.13.18.47.45; Tue, 13 Jun 2023 18:48:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233319AbjFNB3X (ORCPT + 99 others); Tue, 13 Jun 2023 21:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbjFNB3V (ORCPT ); Tue, 13 Jun 2023 21:29:21 -0400 Received: from out30-111.freemail.mail.aliyun.com (out30-111.freemail.mail.aliyun.com [115.124.30.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52C6AB8; Tue, 13 Jun 2023 18:29:19 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0Vl4GPN8_1686706154; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Vl4GPN8_1686706154) by smtp.aliyun-inc.com; Wed, 14 Jun 2023 09:29:15 +0800 From: Yang Li To: sboyd@kernel.org Cc: mturquette@baylibre.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, pdeschrijver@nvidia.com, pgaikwad@nvidia.com, thierry.reding@gmail.com, jonathanh@nvidia.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 1/3] clk: sprd: composite: Fix unsigned comparison with less than zero Date: Wed, 14 Jun 2023 09:29:11 +0800 Message-Id: <20230614012913.122220-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_IN_DEF_SPF_WL 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?1768640782363434476?= X-GMAIL-MSGID: =?utf-8?q?1768640782363434476?= The return value of the sprd_div_helper_round_rate() is long. However, the return value is being assigned to an unsigned long variable 'rate', so making 'rate' to long. silence the warning: ./drivers/clk/sprd/composite.c:20:5-9: WARNING: Unsigned expression compared with zero: rate < 0 Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5519 Signed-off-by: Yang Li --- drivers/clk/sprd/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sprd/composite.c b/drivers/clk/sprd/composite.c index d3a852720c07..e4d22d8f113f 100644 --- a/drivers/clk/sprd/composite.c +++ b/drivers/clk/sprd/composite.c @@ -13,7 +13,7 @@ static int sprd_comp_determine_rate(struct clk_hw *hw, struct clk_rate_request *req) { struct sprd_comp *cc = hw_to_sprd_comp(hw); - unsigned long rate; + long rate; rate = sprd_div_helper_round_rate(&cc->common, &cc->div, req->rate, &req->best_parent_rate); From patchwork Wed Jun 14 01:29:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 107651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp939457vqr; Tue, 13 Jun 2023 18:49:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4X49KgrBxCBFg9g4xUoMZJ/4VwwuLPP5VD7lW5uaAWfFyYBesbJGGszpbKSEA+ga1pMCIS X-Received: by 2002:a17:907:2d2c:b0:965:d18b:f03a with SMTP id gs44-20020a1709072d2c00b00965d18bf03amr15209965ejc.58.1686707346221; Tue, 13 Jun 2023 18:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686707346; cv=none; d=google.com; s=arc-20160816; b=BSuNPRRhJsHc4vp9kDAvjAivbrYBG2gI6xXTz8fkMgSn0cj95v218cWZQag9UmybVV J6RCepN2Meyk8VEg5rm1KsQTRwsGASESaAZsNNrex2/GS8IMG2qw/gXOT7L2Ofn/P+4U 8skVzT3J3lmBY1a0BDMaMh0znoE87mDXAsBhnCJbsZdg+XHkIMqz/aW5EaxVOZ+sZy1e 8b/UTwXwVB34lR+BFOkHmk5njKwnfJSE0zB0vs4W8ny6W3DfKm6YnES7XvjgOzJWiAdv OQ382rSD08y4rN3FQk2hcvWSFgneP7pXQrd5/JjiUQ+KgZWEPkBEUFeF+DxOVT74rxfS Hz/Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Pn919uAu8BiyJ1Xs2rf5InzIq9cbXsTDYl0MyGhPcjE=; b=T6xlOcI8eS2zMLyibHtseaSMqAsgHVwDHzIWYmTZ2G4fo0vuR5F8a7XIPy7S/Xa8dc hglU8xkChQ79VbqGdBNHmgytgKE7z1nKCMNkJdNxavyDDsg623Tg8O2kKReOg7rwZpA3 iofiAdLGBwP4bmFqPeAo2hkhCAUvjE1YoOc4ggOTDioels2XK4MYTGn0r76AqQQSXhz+ sVHUjt6Ko/YBOay8Qgb5cPEF0oQpDoUztTNZBWp/SGYFffNJabmsyLkvJPkbjmqoUJQb uC2k3EJvbexcTSiWGeWBjP8PxdCTpbTkpe09d3a2Gh7VqzgyGndnpDmABUNdhG3OdV4V 46tg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020a170906814f00b0097397abcee3si7691925ejw.848.2023.06.13.18.48.42; Tue, 13 Jun 2023 18:49:06 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241271AbjFNB31 (ORCPT + 99 others); Tue, 13 Jun 2023 21:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231229AbjFNB3W (ORCPT ); Tue, 13 Jun 2023 21:29:22 -0400 Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E82CE57; Tue, 13 Jun 2023 18:29:21 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0Vl4DoHI_1686706156; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Vl4DoHI_1686706156) by smtp.aliyun-inc.com; Wed, 14 Jun 2023 09:29:17 +0800 From: Yang Li To: sboyd@kernel.org Cc: mturquette@baylibre.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, pdeschrijver@nvidia.com, pgaikwad@nvidia.com, thierry.reding@gmail.com, jonathanh@nvidia.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 2/3] clk: stm32: core: Fix unsigned comparison with less than zero Date: Wed, 14 Jun 2023 09:29:12 +0800 Message-Id: <20230614012913.122220-2-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230614012913.122220-1-yang.lee@linux.alibaba.com> References: <20230614012913.122220-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_IN_DEF_SPF_WL 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?1768640842439103063?= X-GMAIL-MSGID: =?utf-8?q?1768640842439103063?= The return value of the divider_ro_round_rate() is long. However, the return value is being assigned to an unsigned long variable 'rate', so making 'rate' to long. silence the warnings: ./drivers/clk/stm32/clk-stm32-core.c:451:6-10: WARNING: Unsigned expression compared with zero: rate < 0 ./drivers/clk/stm32/clk-stm32-core.c:461:5-9: WARNING: Unsigned expression compared with zero: rate < 0 Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5519 Signed-off-by: Yang Li --- drivers/clk/stm32/clk-stm32-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/stm32/clk-stm32-core.c b/drivers/clk/stm32/clk-stm32-core.c index d5aa09e9fce4..067b918a8894 100644 --- a/drivers/clk/stm32/clk-stm32-core.c +++ b/drivers/clk/stm32/clk-stm32-core.c @@ -431,7 +431,7 @@ static int clk_stm32_composite_determine_rate(struct clk_hw *hw, { struct clk_stm32_composite *composite = to_clk_stm32_composite(hw); const struct stm32_div_cfg *divider; - unsigned long rate; + long rate; if (composite->div_id == NO_STM32_DIV) return 0; From patchwork Wed Jun 14 01:29:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 107647 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp937810vqr; Tue, 13 Jun 2023 18:44:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ60kbaOSqbFzZp0OWCBaG/29Aj5BDfkEt2fdqWyU5Qo9QRkh+hkskHW/j8BVxZSmtj4/CUn X-Received: by 2002:a17:903:234f:b0:1ac:921c:87fc with SMTP id c15-20020a170903234f00b001ac921c87fcmr11479066plh.32.1686707052603; Tue, 13 Jun 2023 18:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686707052; cv=none; d=google.com; s=arc-20160816; b=m7T6Q/ev1TlBIwXOjkqKpPnwCOs1G+q+KWJ6dTX8Dk3WT7OAW+5t76W5akyHT8JdaA X0A5m8ZtGFEjAC6Z49HIjXo52YAQhjmyAPClEdsbrZHGwydlF71ToMm4ATqQNlD0+fIH 3m0RkU6VdvW8sTjcTfXA2WMk4+CLWiet1O5wUxfqdLHZKMYDCFxRwrdG0jDQjTXtxjEy wmLWBFsZpDESaAzDjBzd5XYXLqHCm61zsvEBHDniAq6ubqy7Cdz9ySxHFRp+XFEu0RIy u4KJxvUU81RU3zeZqcRNKh7Xmt2tV6fpD4cgTdioNH8sBy9fA9Xsa/ikCyHZGBpUBv/r ozoA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ETBSV0/UHdLFsdDhYMKRZeCPYg8FnDD4P/Ty1csbISs=; b=TkfxivDKv5ROR8Js6plDJJuAqFux5t68CDczKnZxpZ+OxexMiTd+qMcFfM53smUU4g hR7uacvmOLufDZR7jlOttEtEsdruybMA6dEmLhcf3O9+g7zqxhIV8hNY60llYOHt9rmV 7TrowhV+lWhJhop3aYp/6xYdZu/55gthqG2endxo0ag9bP0D6QqrzDL5beJxOE2cVp0i xTocoyQKbD/vx0KQLzjTi+JSWEDApBxNLuctQlHopETMGUJ4v/J7Ggc2LEQ0CYT/9azL 1HsjV6qtiuW0oIVCrtCvzZMHXju3bpS4AKGa/M7UWBaaOBI3/aMxGWaPMzPwd3gqffFu Aj6w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lk5-20020a17090308c500b001aad9b73ff2si9654594plb.285.2023.06.13.18.44.00; Tue, 13 Jun 2023 18:44:12 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241535AbjFNB3f (ORCPT + 99 others); Tue, 13 Jun 2023 21:29:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240835AbjFNB3Z (ORCPT ); Tue, 13 Jun 2023 21:29:25 -0400 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B33F4B8; Tue, 13 Jun 2023 18:29:23 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R931e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0Vl4DoIc_1686706158; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Vl4DoIc_1686706158) by smtp.aliyun-inc.com; Wed, 14 Jun 2023 09:29:19 +0800 From: Yang Li To: sboyd@kernel.org Cc: mturquette@baylibre.com, orsonzhai@gmail.com, baolin.wang@linux.alibaba.com, zhang.lyra@gmail.com, pdeschrijver@nvidia.com, pgaikwad@nvidia.com, thierry.reding@gmail.com, jonathanh@nvidia.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next 3/3] clk: tegra: Fix unsigned comparison with less than zero Date: Wed, 14 Jun 2023 09:29:13 +0800 Message-Id: <20230614012913.122220-3-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20230614012913.122220-1-yang.lee@linux.alibaba.com> References: <20230614012913.122220-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_IN_DEF_SPF_WL 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?1768640534440738211?= X-GMAIL-MSGID: =?utf-8?q?1768640534440738211?= The return value of the round_rate() is long. However, the return value is being assigned to an unsigned long variable 'rate', so making 'rate' to long. silence the warnings: ./drivers/clk/tegra/clk-periph.c:59:5-9: WARNING: Unsigned expression compared with zero: rate < 0 ./drivers/clk/tegra/clk-super.c:156:5-9: WARNING: Unsigned expression compared with zero: rate < 0 Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5519 Signed-off-by: Yang Li --- drivers/clk/tegra/clk-periph.c | 2 +- drivers/clk/tegra/clk-super.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/tegra/clk-periph.c b/drivers/clk/tegra/clk-periph.c index 0626650a7011..9eaac49facd4 100644 --- a/drivers/clk/tegra/clk-periph.c +++ b/drivers/clk/tegra/clk-periph.c @@ -51,7 +51,7 @@ static int clk_periph_determine_rate(struct clk_hw *hw, struct tegra_clk_periph *periph = to_clk_periph(hw); const struct clk_ops *div_ops = periph->div_ops; struct clk_hw *div_hw = &periph->divider.hw; - unsigned long rate; + long rate; __clk_hw_set_clk(div_hw, hw); diff --git a/drivers/clk/tegra/clk-super.c b/drivers/clk/tegra/clk-super.c index 7ec47942720c..7a121de526c0 100644 --- a/drivers/clk/tegra/clk-super.c +++ b/drivers/clk/tegra/clk-super.c @@ -147,7 +147,7 @@ static int clk_super_determine_rate(struct clk_hw *hw, { struct tegra_clk_super_mux *super = to_clk_super_mux(hw); struct clk_hw *div_hw = &super->frac_div.hw; - unsigned long rate; + long rate; __clk_hw_set_clk(div_hw, hw);