Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1594319pxb; Mon, 12 Apr 2021 01:46:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCzn3YAxoFXrkIdDeMr1qL/eQEF3mNQIjvc2J3zF9S4gsO9A/5UvpuSNoIcfs0h7Bhlb9I X-Received: by 2002:a17:90a:cc0d:: with SMTP id b13mr1961751pju.219.1618217176287; Mon, 12 Apr 2021 01:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618217176; cv=none; d=google.com; s=arc-20160816; b=vViXt3OZmh2GA4YzxYMKJ+mnsdpx3PjnG+RRV/HNDACV2mRbzR7dg2THzJGewfhwsY TE3Z1lNTgYsbNOuAHBmMheLqqeipmfSr1Kg0Cp5RCjGYw2jS4BHUllPIHf0rAqlQa2w9 2jCSUeYltpGmhHijUobzFfWXn3K1Tju9FC9PL6KiA4Be+U8ZZnA/rcmSofrasjK1gXdK vKDvL1+lk/YtupXNIaqmgRHHfPWlGKdFSRL4V6DwOfm9OW7vCAlB4HpC/cL3cx1rbjFo qeQDqYIycRGwJmrN0SiPiEpdfTf6ewUBAdm+8JFTtXm1JbTzuU2xHGS0Tu+F1n6FLpoj HPMA== 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=T36ayokMsEtJdOhP/guQIUxNlat8hP5wga+kigBkjDs=; b=Y/16coUC9fGP8NqDMFNdW6Sj8AuPzxnqkB8fvlMn5mAjnWslX/5smGPO9WBVi6a9Gx O5t12kmf/a94JpisD+cZNebRz1rOfaUgE1z0ERUJOyOfadrtOpGqPJaaXQugH7DJwPo9 BCdMuObVD8FcWKdrdE+fkoKHD/7Y+febzOe2vWr0dl0cHNYhETNlh44Y/tvl+tVYhEpS +on2RkcGiwzHbdjAQfs8jHhktDbTzfSjsyEDr7KXXnyruICQUcdbltzONNht0Xd4qlPe lMFN9dgyIMxN3ysBvGWMWOTDbyXWCPiqNo8vI1btIeNPWrvP/kgREAFO/2HLvFNXF15V 9YqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PV83Ym2j; 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 t7si13275764pjl.17.2021.04.12.01.46.04; Mon, 12 Apr 2021 01:46:16 -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=PV83Ym2j; 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 S237757AbhDLIpK (ORCPT + 99 others); Mon, 12 Apr 2021 04:45:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:36526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237586AbhDLIo2 (ORCPT ); Mon, 12 Apr 2021 04:44:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AA3D861221; Mon, 12 Apr 2021 08:44:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618217050; bh=ZdS0g/Yni3cf1SWjqXa/h9rdeNHnb/Tuqe1EZnoWBSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PV83Ym2jFFONRbAkkL10G2M+6bZw0Jdmh+mefKPIciE6iO0z55rAvJ8vMxk4I98P6 OlmbzS5BfPniM/SW4ByFJkC9nMUJIh/+/P0PLKNFGulB+GfND6ClYJqYXp1PPcnRtb LfAFEggewewxn7mvRYr4OLsefe3FtFsNWZ+xP+gI= 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 4.19 51/66] clk: socfpga: fix iomem pointer cast on 64-bit Date: Mon, 12 Apr 2021 10:40:57 +0200 Message-Id: <20210412083959.777587040@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210412083958.129944265@linuxfoundation.org> References: <20210412083958.129944265@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 @@ -107,7 +107,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);