From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751652AbeANLxN (ORCPT + 1 other); Sun, 14 Jan 2018 06:53:13 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:37620 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750979AbeANLxM (ORCPT ); Sun, 14 Jan 2018 06:53:12 -0500 Date: Sun, 14 Jan 2018 12:52:52 +0100 (CET) From: Thomas Gleixner To: Arnd Bergmann cc: Tony Luck , Borislav Petkov , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Yazen Ghannam , Xunlei Pang , linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: mce: fix type mismatch warning In-Reply-To: <20180110164616.1465096-1-arnd@arndb.de> Message-ID: References: <20180110164616.1465096-1-arnd@arndb.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, 10 Jan 2018, Arnd Bergmann wrote: > The printed symbol is a 64-bit address, so we get a warning when > building this code for 32-bit kernels: > > arch/x86/kernel/cpu/mcheck/mce.c: In function '__print_mce': > arch/x86/kernel/cpu/mcheck/mce.c:237:21: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] > > This uses an extra uintptr_t cast to avoid the warning. > > Fixes: 7b6061627eb8 ("x86: do not use print_symbol()") I have no idea where this commit comes from .... It's neither in Linus tree nor in tip. Thanks, tglx