Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1964289imm; Fri, 7 Sep 2018 08:46:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYP8r09ZOhrOCfqBbYptycE2eyEb4zv3cJKJgW41JrVbgi+36mT2mXkBObjBKRQ4jIMi2pI X-Received: by 2002:a62:4bc6:: with SMTP id d67-v6mr9184239pfj.175.1536335197914; Fri, 07 Sep 2018 08:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536335197; cv=none; d=google.com; s=arc-20160816; b=tR9MlUrV6jFDfJE9AJGRjncaIaTNA/IqMuisaheCc1y4mHW8wvZG891R929J6QtWsx mJ4baQAAVBMkT7FthFRtH1ybRGlCLiqbqwysPYOqVCrte40nJCZYLIp9VOaneoIFvQL+ px2jK4xOzR5fOwDo+6tPo1tbS/qJi4iunK98WeUff7Y+L4y+ktRKNfVTtSK7zNo+FORr AYFvGbvaOwZjpcMMDQ7STKlMJ3uFkfRLDctMxOEfHfeAiGbcoJ3nLzoWqNtJ2CJt9djt NJwNoQ4GlyF239aJpuTRza0XrQ980TLvbtTI5RKn2cmU+vQmv4UiOZoOl1j8UEOEEXkj LxHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vXpxfAmxRkaw7b5NbW7LUIg0wb/ayR4TjhiV24ULAKs=; b=Yx2Zl6NYTRhLNmeQrnqMMLiPXP0JCBIRx452rQJpqg+T6dQIsStF7My4ON1cTDz/bo j0RuUkcRjX0LpKkJ7w/dKS3Mr+HlIWgWdb/qDpamYefnWmsiQaat8DzCodYSj2fs22jM bAJ2Eq8HVo6DMQNESdOAlQviN75xvWDCRQ72yls9RYtfD3zQn0zV9TFKl4HJAP1supOY 7Pc4z761htYPuTdP8PR95B4v280F50Mt2uC7pnIdr3h7dL1ShBbGbVBHOf4x99TaZctN oWwK+7f7Z444BbejB9rRh8STkPL+olWiZ9DqodGWAf19mzlkLjeZ7aNXda9QCb8KQlaJ +9lw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10-v6si8694436pfk.162.2018.09.07.08.46.22; Fri, 07 Sep 2018 08:46:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729804AbeIGSbY (ORCPT + 99 others); Fri, 7 Sep 2018 14:31:24 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:53097 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728481AbeIGSbY (ORCPT ); Fri, 7 Sep 2018 14:31:24 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 426JjM6Srpz9ttFV; Fri, 7 Sep 2018 15:50:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id cyI26BfWS8Xg; Fri, 7 Sep 2018 15:50:15 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 426JjM5wp8z9ttFK; Fri, 7 Sep 2018 15:50:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 918778B950; Fri, 7 Sep 2018 15:50:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id eM_Hyj8a4wcJ; Fri, 7 Sep 2018 15:50:19 +0200 (CEST) Received: from pc16082vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.3]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 56E678B94C; Fri, 7 Sep 2018 15:50:19 +0200 (CEST) Subject: Re: [PATCH] perf: enum overflow in uapi/linux/perf_event.h To: Peter Zijlstra Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <20180907134246.GC24106@hirez.programming.kicks-ass.net> From: Christophe Leroy Message-ID: Date: Fri, 7 Sep 2018 13:50:18 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180907134246.GC24106@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/07/2018 01:42 PM, Peter Zijlstra wrote: > 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. > [root@pc16082vm linux-powerpc]# sparse --version 0.5.2 [root@pc16082vm linux-powerpc]# ppc-linux-gcc --version ppc-linux-gcc (GCC) 5.4.0