From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 426JXy5PQYzF3BX for ; Fri, 7 Sep 2018 23:42:58 +1000 (AEST) Date: Fri, 7 Sep 2018 15:42:46 +0200 From: Peter Zijlstra To: Christophe Leroy Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] perf: enum overflow in uapi/linux/perf_event.h Message-ID: <20180907134246.GC24106@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Sep 07, 2018 at 01:27:19PM +0000, Christophe Leroy wrote: > On PPC32, enums are 32 bits, so __PERF_SAMPLE_CALLCHAIN_EARLY is > out of scope. The following sparse warning is encountered: > > CHECK arch/powerpc/kernel/process.c > ./include/uapi/linux/perf_event.h:147:56: warning: cast truncates bits from constant value (8000000000000000 becomes 0) Urgh... what compiler is that? I've not seen anything like that from the build bots.