Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2433614imm; Mon, 28 May 2018 08:02:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpEbmY+LbEZVXa4Z8LHhJ0ZWZVVKhiSWtQOsb2QS+6nCKvD8IcokUXtZACsWRU4ZYVtKM4B X-Received: by 2002:a65:648a:: with SMTP id e10-v6mr10960202pgv.34.1527519727020; Mon, 28 May 2018 08:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527519726; cv=none; d=google.com; s=arc-20160816; b=Sy3ekVUV6r2SzfrcHwNr0CERRovwZVB6l7QDacpp9QyKDhGRF/2xr/A5wtS+vymrqT 9EAFogblPbisFhx5DAMcqb13OpXIJwTvwp6q7KqTzM4ezPde+OaD9oZNdEjR6aKTD/Tv EJkzgbMIdWJ6AVkzMPLnql2g8sXEDwNQp5k9Osd0ZykpURr0yhJXlWndP9/uch/A/gY9 ggI/31VYr2ID18Ma2oj6g8jqP8RN+YaGSwKZKOaivl2EQoaK7lRkRpz+OCANAS306Lgx zo4ONRGWJLknHD5r1KNXwUZs+UcOwS1cfd3901FG3guucq8FKCdwKrt5hj6EgJQfzZzN /feA== 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:arc-authentication-results; bh=F2V/Ngply/4z3S/sVwLXciTSBh+Lk7j/liBhI04FpV4=; b=BahX0EBgkKEbRDvHGZVbPTU+u/M3V+zOtuOD9jFcbZGiE4QWldVa0Yk+C2/lEJK/Fi WGAS308MMFoLYdapTuUAijjxVaWaDOK8KbOTz0XHz4BNKWkco2ezte7buoQ0EZG+4Jrj zL973u7qBEmcser61BPk+9aWjgltNu7QV+bztJIRzn4jSBuOY9XPNdf1RWUPbvfWYWjr HdwKEcH0nIPHK4TN9L0sxEu4BPy8Wbo39XcKUryWB2EFoM7yoCTMoUZMXqlP3WyTE7C0 IQABvs59LG0EaWX4yyHYsPtwNmYId0yxe26s50biVJUFkf0vaz/+PnOwa2uHn02Dgqp5 UDNQ== 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 p13-v6si23050647pgv.182.2018.05.28.08.01.48; Mon, 28 May 2018 08:02:06 -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 S939634AbeE1PAY (ORCPT + 99 others); Mon, 28 May 2018 11:00:24 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:36012 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937092AbeE1O4Y (ORCPT ); Mon, 28 May 2018 10:56:24 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 40vg0d1gQ9z9ttln; Mon, 28 May 2018 16:56:17 +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 tBmMxa0F5RAH; Mon, 28 May 2018 16:56:17 +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 40vg0d19snz9ttl0; Mon, 28 May 2018 16:56:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id DEB708B991; Mon, 28 May 2018 16:56:22 +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 zdIU1oP7tVjN; Mon, 28 May 2018 16:56:22 +0200 (CEST) Received: from PO15451 (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id ADFBE8B98E; Mon, 28 May 2018 16:56:22 +0200 (CEST) Subject: Re: [PATCH] powerpc/Makefile: fix build failure by disabling attribute-alias warning To: Segher Boessenkool Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <0adce33cf1c70ac7203f8ebd987a912451aabd45.1527517001.git.christophe.leroy@c-s.fr> <20180528143719.GB17342@gate.crashing.org> From: Christophe LEROY Message-ID: <63367b72-85a9-fc1f-763f-eaa5e6027ae4@c-s.fr> Date: Mon, 28 May 2018 16:56:22 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180528143719.GB17342@gate.crashing.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 28/05/2018 à 16:37, Segher Boessenkool a écrit : > On Mon, May 28, 2018 at 02:17:49PM +0000, Christophe Leroy wrote: >> Latest GCC version emit many warnings similar to the following one. > > You didn't actually show an example? Yes I forgot: In file included from arch/powerpc/kernel/syscalls.c:24: ./include/linux/syscalls.h:233:18: warning: 'sys_mmap2' alias between functions of incompatible types 'long int(long unsigned int, size_t, long unsigned int, long unsigned int, long unsigned int, long unsigned int)' {aka 'long int(long unsigned int, unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int)'} and 'long int(long int, long int, long int, long int, long int, long int)' [-Wattribute-alias] asmlinkage long sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \ ^~~ ./include/linux/syscalls.h:222:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ ./include/linux/syscalls.h:216:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE6(name, ...) SYSCALL_DEFINEx(6, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ arch/powerpc/kernel/syscalls.c:65:1: note: in expansion of macro 'SYSCALL_DEFINE6' SYSCALL_DEFINE6(mmap2, unsigned long, addr, size_t, len, ^~~~~~~~~~~~~~~ ./include/linux/syscalls.h:238:18: note: aliased declaration here asmlinkage long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \ ^~~~~~~~ ./include/linux/syscalls.h:222:2: note: in expansion of macro '__SYSCALL_DEFINEx' __SYSCALL_DEFINEx(x, sname, __VA_ARGS__) ^~~~~~~~~~~~~~~~~ ./include/linux/syscalls.h:216:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE6(name, ...) SYSCALL_DEFINEx(6, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ arch/powerpc/kernel/syscalls.c:65:1: note: in expansion of macro 'SYSCALL_DEFINE6' SYSCALL_DEFINE6(mmap2, unsigned long, addr, size_t, len, ^~~~~~~~~~~~~~~ > > This warning should detect serious problems, so don't disable it without > first investigating please. It's been a discussion on this topic, ref https://lkml.org/lkml/2017/12/5/581 It says "The new warning seems reasonable in principle, but it doesn't help us here, since we rely on the type mismatch to sanitize the system call arguments. After I reported this as GCC PR82435, a new -Wno-attribute-alias option was added that could be used to turn the warning off globally on the command line, but I'd prefer to do it a little more fine-grained" > > What do you call "latest version", btw? Trunk, aka 9.0? Or the most > advanced release, 8.1? Or the latest release (which also is 8.1 :-) ) I encounter it with 8.1 According the refered discusion, it linked to GCC 8 Christophe > > > Segher >