Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1241994pxb; Fri, 20 Nov 2020 05:01:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNvVWMBkZJFqb+1xLBIJreQIN0GmxTByciaUKuEuDxDFB8j9idIaeLRfrObsb6tfb3YXLD X-Received: by 2002:a17:906:af0a:: with SMTP id lx10mr10190752ejb.75.1605877280133; Fri, 20 Nov 2020 05:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605877280; cv=none; d=google.com; s=arc-20160816; b=DNaUlIFBvs6I63DWO9tc7Xw0puXMhV/SoUXsgylIl1wJeftG54wMHcbvwtTr5lDqri BTl1SXRrGAOpuv5DAPvmmo89yuCywYnOUvqWS6+P2nTCjDwsKCnhusYyWW9aO35C9Yi4 8B4QL0MPPjSxfMl+p+rJktXcrlUKLDxoujuMeKQC8Ertde9ityKjp+DRVSNfcHcwP7cS liKUMEZbBDLm8Fc0PDeFt0EIRhSElzjIhyQO9PS2XPCeNV663FxTNhb8Ot5asmtMH5Pe llCqKvNEEcLx7qypIiaagaLui5SDm+rldDkg1BkBUVY+QPMiWRZ0JzQ1VmdX7XC/J8MB SNTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=dHBVOZGkII0U40rYnp1sh+5F/pYi7Bm79Z8q2nQo9m0=; b=Qo81IZqupzpuqV5aKCU4RC0P0UNbR1DDu4hmwvlKgIFVeYNiTZ7WHTjlyhDbjx84A7 ZYGz82oVJ0svmBBCoGKL/rG5eKZOySL4wyHT0aCdY11aC1IT0T/pQ+Kswb1HxwDy/EWz oeeLLKIEZ7mHCVWvUs/x9otu58c2IXd7G1VhTxPYtTnWbsmGgA+2cjcjJ4b8mrgdnM2P 79AZPeIeNbO9KscQA0Gr5AzaxYbv5vl9lydkc0Ic6fJyzval5o0k74NK7k6jJn5ZqUFG E59Da0v4Kle1KcVbIOHdLsaDayhFx5zTyk/XJpFPZ8ukQsPC0TQgAjoGfbGcmg+D32NJ PkEw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o19si1729551edv.435.2020.11.20.05.00.49; Fri, 20 Nov 2020 05:01:20 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728105AbgKTM7G (ORCPT + 99 others); Fri, 20 Nov 2020 07:59:06 -0500 Received: from mail.baikalelectronics.com ([87.245.175.226]:34446 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbgKTM7G (ORCPT ); Fri, 20 Nov 2020 07:59:06 -0500 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 755D28000831; Fri, 20 Nov 2020 12:59:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EPVS-tzsg51y; Fri, 20 Nov 2020 15:59:00 +0300 (MSK) Date: Fri, 20 Nov 2020 15:58:59 +0300 From: Serge Semin To: Boris Brezillon CC: Serge Semin , Miquel Raynal , Stephen Rothwell , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the nand tree Message-ID: <20201120125859.v7v4mr7rla5xd3xm@mobilestation> References: <20201120113929.0aff2f32@canb.auug.org.au> <20201120122359.0bb7d98f@xps13> <20201120130123.1ca9e7af@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20201120130123.1ca9e7af@collabora.com> X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Miquel, Boris On Fri, Nov 20, 2020 at 01:01:23PM +0100, Boris Brezillon wrote: > 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... that'd be great. I've forgotten that my arch is 32-bit and the compiler just did print a warning for it.( > > uintptr_t cast? Yep, most likely that will be the best option in this case to make sparse happy and not to cause the warning above. I'll send v2 patch shortly. -Sergey