From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754709AbbJULIN (ORCPT ); Wed, 21 Oct 2015 07:08:13 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:35016 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753340AbbJULIM (ORCPT ); Wed, 21 Oct 2015 07:08:12 -0400 Date: Wed, 21 Oct 2015 13:08:07 +0200 From: Ingo Molnar To: ard.biesheuvel@linaro.org, qiuxishi@huawei.com, matt.fleming@intel.com, hpa@zytor.com, tglx@linutronix.de, tony.luck@intel.com, kamezawa.hiroyu@jp.fujitsu.com, izumi.taku@jp.fujitsu.com, linux-kernel@vger.kernel.org Cc: linux-tip-commits@vger.kernel.org Subject: Re: [tip:core/efi] efi: Add "efi_fake_mem" boot option Message-ID: <20151021110807.GA17463@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * tip-bot for Taku Izumi wrote: > Commit-ID: 0f96a99dab366333439e110d6ad253bc7c557c09 > Gitweb: http://git.kernel.org/tip/0f96a99dab366333439e110d6ad253bc7c557c09 > Author: Taku Izumi > AuthorDate: Wed, 30 Sep 2015 23:01:56 +0900 > Committer: Matt Fleming > CommitDate: Mon, 12 Oct 2015 14:20:09 +0100 > > efi: Add "efi_fake_mem" boot option So this commit started generating the following new build warning on x86 32-bit allyesconfig and allmodconfig builds: drivers/firmware/efi/fake_mem.c:186:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Which comes from: u64 new_memmap_phy; ... memmap.phys_map = (void *)new_memmap_phy; While efi_memory_map has a 32-bit pointer: struct efi_memory_map { void *phys_map; void *map; void *map_end; int nr_map; unsigned long desc_version; unsigned long desc_size; }; Thanks, Ingo