From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no 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 B7810C5519F for ; Fri, 20 Nov 2020 12:01:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5B21E22254 for ; Fri, 20 Nov 2020 12:01:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727858AbgKTMB3 (ORCPT ); Fri, 20 Nov 2020 07:01:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727815AbgKTMB2 (ORCPT ); Fri, 20 Nov 2020 07:01:28 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84EAFC0613CF; Fri, 20 Nov 2020 04:01:28 -0800 (PST) Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 28F571F45EFD; Fri, 20 Nov 2020 12:01:26 +0000 (GMT) Date: Fri, 20 Nov 2020 13:01:23 +0100 From: Boris Brezillon To: Miquel Raynal Cc: Stephen Rothwell , Serge Semin , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the nand tree Message-ID: <20201120130123.1ca9e7af@collabora.com> In-Reply-To: <20201120122359.0bb7d98f@xps13> References: <20201120113929.0aff2f32@canb.auug.org.au> <20201120122359.0bb7d98f@xps13> Organization: Collabora X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org On Fri, 20 Nov 2020 12:23:59 +0100 Miquel Raynal wrote: > Hi Serge, > > Stephen Rothwell wrote on Fri, 20 Nov 2020 > 11:39:29 +1100: > > > Hi all, > > > > After merging the nand tree, today's linux-next build (x86_64 > > allmodconfig) produced this warning: > > > > drivers/mtd/maps/physmap-bt1-rom.c: In function 'bt1_rom_map_read': > > drivers/mtd/maps/physmap-bt1-rom.c:39:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] > > 39 | shift = (unsigned int)src & 0x3; > > | ^ > > drivers/mtd/maps/physmap-bt1-rom.c: In function 'bt1_rom_map_copy_from': > > drivers/mtd/maps/physmap-bt1-rom.c:78:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] > > 78 | shift = (unsigned int)src & 0x3; > > | ^ > > > > Introduced by commit > > > > 69a75a1a47d8 ("mtd: physmap: physmap-bt1-rom: Fix __iomem addrspace removal warning") > > > > Too bad :/ I'll drop this patch for now, let's look for another > solution... uintptr_t cast?