Message ID | 20210415144414.027850184@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED7ABC43461 for <stable@archiver.kernel.org>; Thu, 15 Apr 2021 14:49:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D5EFD613C7 for <stable@archiver.kernel.org>; Thu, 15 Apr 2021 14:49:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233728AbhDOOtq (ORCPT <rfc822;stable@archiver.kernel.org>); Thu, 15 Apr 2021 10:49:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:36972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233741AbhDOOtj (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 15 Apr 2021 10:49:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A6073613C7; Thu, 15 Apr 2021 14:49:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618498156; bh=ZdS0g/Yni3cf1SWjqXa/h9rdeNHnb/Tuqe1EZnoWBSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qFAwEd1/h9xGbgdRpmUSPpq7q0ywMxBtWdjAomTF/FaVbLeI1SvJtRXvCZso06h8L 0hhFDQw6PJ5y5InJ/p60nSsqwqsM+pbQPLYq1jnWUssnJhwYT9apnctcFG+8kOQE2C +W4EyxWDiN9knNUIcAoBn5OoBwSrpNM7zb4l7Y8M= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>, Dinh Nguyen <dinguyen@kernel.org>, Stephen Boyd <sboyd@kernel.org> Subject: [PATCH 4.4 21/38] clk: socfpga: fix iomem pointer cast on 64-bit Date: Thu, 15 Apr 2021 16:47:15 +0200 Message-Id: <20210415144414.027850184@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210415144413.352638802@linuxfoundation.org> References: <20210415144413.352638802@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: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- 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);