Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1110383imm; Wed, 1 Aug 2018 10:20:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpceHM8F9eOm1FrvtVtlCAfatNO3dGzeXawJP2SksbBOl4lRR0sJTXaQ8TOFSlHYmaeIBtoW X-Received: by 2002:a63:1902:: with SMTP id z2-v6mr24960931pgl.86.1533144048013; Wed, 01 Aug 2018 10:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144047; cv=none; d=google.com; s=arc-20160816; b=Q7UltrS38D9sUMc4sAO9SpKKNzLqY5AsVkPsmprVUGR4TT8Eoa4D9CqR8AYp161pjJ n391TLtb6QvntqDos1pmhjcBwGzD1I1bmcLSElCcVkpNvicP18NVHE8pLJYO+rxW9T6g p+X/HNGMI57SyJyiz5qxxFSraTFB3Q3nBgml1gzpbG3OCxovzPMoT9GZpic5fhz7eudg eKp+BOkcgez1S9ro+8/KevCs4byVNFMWLjgCpBdqz7AYgNxv4pnd1UGu/BguqvrE/3SF 8eLz8/1S/0O3WZAibZUJCA18nYtG4S1LNxybat9BMrVjOOlmEB9ebD1oEBtJ0tYXO+k/ shXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=++B9V18b0pjLs1IW0bPuWTW+dsNR+H/HQ/3Ks5c3BF4=; b=CIUL4i3ik2t4oRKivoCHLKr3HUotesSZDCWxuj3/twNMUXS/bHL3suO2IcMVXsqcaK 4JOxfpUulA5Gt+ZzS1FuLzajkm7Hz/h2fxJm3pinsvFEwGfIG66KFpFrp/bmBYVSU2Z7 qmz+HikzdN9MPsU62FmBtfvQ85RGDYShQe2/WxWpg2d18zCUMwNJ4JwVeORY3BkQV7ct FfVKfy1XTQJo/19mORG+4VmfHJyAl19JHr5T7RvOJmG72mQh9QgG9O2q1QBorrJImeNN rojQwB4v3da4cY4nQerAw9NboTuw+v9/zO52xEjbYOxe0z9Fh8XDM7RTqFtgt/gVKbRs 8ZAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l26-v6si18432027pgu.191.2018.08.01.10.20.33; Wed, 01 Aug 2018 10:20:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405053AbeHATFf (ORCPT + 99 others); Wed, 1 Aug 2018 15:05:35 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47552 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403937AbeHATFe (ORCPT ); Wed, 1 Aug 2018 15:05:34 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 51DC6CE2; Wed, 1 Aug 2018 17:18:53 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Thor Thayer , linux-arm-kernel@lists.infradead.org, linux-edac , Borislav Petkov , Sasha Levin Subject: [PATCH 4.14 141/246] EDAC, altera: Fix ARM64 build warning Date: Wed, 1 Aug 2018 18:50:51 +0200 Message-Id: <20180801165018.483784176@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thor Thayer [ Upstream commit 9ef20753e044f7468c4113e5aecd785419b0b3cc ] The kbuild test robot reported the following warning: drivers/edac/altera_edac.c: In function 'ocram_free_mem': drivers/edac/altera_edac.c:1410:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] gen_pool_free((struct gen_pool *)other, (u32)p, size); ^ After adding support for ARM64 architectures, the unsigned long parameter is 64 bits and causes a build warning on 64-bit configs. Fix by casting to the correct size (unsigned long) instead of u32. Reported-by: kbuild test robot Signed-off-by: Thor Thayer Cc: linux-arm-kernel@lists.infradead.org Cc: linux-edac Fixes: c3eea1942a16 ("EDAC, altera: Add Altera L2 cache and OCRAM support") Link: http://lkml.kernel.org/r/1526317441-4996-1-git-send-email-thor.thayer@linux.intel.com Signed-off-by: Borislav Petkov Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/edac/altera_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -1106,7 +1106,7 @@ static void *ocram_alloc_mem(size_t size static void ocram_free_mem(void *p, size_t size, void *other) { - gen_pool_free((struct gen_pool *)other, (u32)p, size); + gen_pool_free((struct gen_pool *)other, (unsigned long)p, size); } static const struct edac_device_prv_data ocramecc_data = {