Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2066918pxb; Mon, 12 Apr 2021 13:27:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgRl1SE/28uKsgia1+k8N2y0TMwl+jLCrBgLmGbu/Rg9BeItkgbcB0Hqw4TPxhdbwwsEKz X-Received: by 2002:a17:906:5fc2:: with SMTP id k2mr3665616ejv.354.1618259262588; Mon, 12 Apr 2021 13:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618259262; cv=none; d=google.com; s=arc-20160816; b=w7AOzdzWDHsMj88oHzu12qp3Cr8amt6ePTau3UUC6YkBbOLYl7i8cFLTSRk4Y/k/Tn WoEhthq5Jc7Fuvtkd/j9H/8iUyGfoKZtJXUSGN1cLcTQ9VwVfJ4vEQSXqo6XjUg997/i WqVFiWoqmdV0Y98p9+8XFMUA8zwlodliPA1A9KOhJXHChqT4pwoRIqyqBg2asgyPtWpY 0Nh99LR3sHhNiw/gFeBDythtnPMYdqoSYgJDjjqXL/FKICwcHgO16OBBwAJmmAv4BTnU mUPWDR7IDhyMQkiM8ofdr0z+kF4yU/bXFU9V5xLCwVlMDXzZttWCC8fvivd8H+HDLNyL HQZw== 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=ZxknV8P38KKWSRshpRm6LOWMaagTC2/ct8fWPnKRsUE=; b=UbON9GOUYFlFd3nSZiv7coUXK7cSjn5c5+O8ZN0TWlFn6++cO1G7JALpsh//9pyqVY RtS2iVXyqi0+49FUoJmiEggqd1ZRGpQ7v/UkZ9ejeUO2Yj8/CAFNfPxpupzZVnGaMHDD Zxvy/kC3HxkV7BKjt+DC1QfThEKDjozPM8eC85Afes8jlvqvTQN/n8RoWL76nBvuANxH SlrKEIZ6ZNED9+uq8JvpF2wRShssl4k9hBImFToWTdKOxk9lv0c2Hxqr1AgLx6L1rgmy q+KoZN9oGqWBKGrLsyvOi1psg/OAm+XfJzwVRTc5cw7+u0KYRqomF+CF3yQE7O3aSM6m OTAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QQ+sDAa4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si8732254ejq.438.2021.04.12.13.27.19; Mon, 12 Apr 2021 13:27:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QQ+sDAa4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S238962AbhDLI6j (ORCPT + 99 others); Mon, 12 Apr 2021 04:58:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:42984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238722AbhDLIub (ORCPT ); Mon, 12 Apr 2021 04:50:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 84E5F61019; Mon, 12 Apr 2021 08:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217414; bh=TCXEMikJXcCBZLK2r7i0DQTd1VbXXE3eKIaTzas+/F8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QQ+sDAa4nPnHwZdY+5K6Qk90CeicIbnx4YmSZ9i+vzTwNesEZ78PV+Wjx+4VDLdj4 euAxzJr0X93Lj7igMLmyX83Qzce+Hkvr8A9s89P76YHkhNzLj+Jd245Pcg99bcyryM e72S0w5DmpCNzxw1VedQOMjzORvInZaSnBJhkmcc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Kozlowski , Dinh Nguyen , Stephen Boyd Subject: [PATCH 5.4 095/111] clk: socfpga: fix iomem pointer cast on 64-bit Date: Mon, 12 Apr 2021 10:41:13 +0200 Message-Id: <20210412084007.415563317@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412084004.200986670@linuxfoundation.org> References: <20210412084004.200986670@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Krzysztof Kozlowski commit 2867b9746cef78745c594894aece6f8ef826e0b4 upstream. Pointers should be cast with uintptr_t instead of integer. This fixes warning when compile testing on ARM64: drivers/clk/socfpga/clk-gate.c: In function ‘socfpga_clk_recalc_rate’: drivers/clk/socfpga/clk-gate.c:102:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Fixes: b7cec13f082f ("clk: socfpga: Look for the GPIO_DB_CLK by its offset") Signed-off-by: Krzysztof Kozlowski Acked-by: Dinh Nguyen Link: https://lore.kernel.org/r/20210314110709.32599-1-krzysztof.kozlowski@canonical.com Signed-off-by: Stephen Boyd Signed-off-by: Greg Kroah-Hartman --- drivers/clk/socfpga/clk-gate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/clk/socfpga/clk-gate.c +++ b/drivers/clk/socfpga/clk-gate.c @@ -99,7 +99,7 @@ static unsigned long socfpga_clk_recalc_ val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; val &= GENMASK(socfpgaclk->width - 1, 0); /* Check for GPIO_DB_CLK by its offset */ - if ((int) socfpgaclk->div_reg & SOCFPGA_GPIO_DB_CLK_OFFSET) + if ((uintptr_t) socfpgaclk->div_reg & SOCFPGA_GPIO_DB_CLK_OFFSET) div = val + 1; else div = (1 << val);