Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2414124imm; Mon, 28 May 2018 07:40:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZohCO7UjiTT26xir1BFo2SCoKDP6aTcww9fZN62LFknJilfPnyC/yyW99+i5ouwO5EDHkmV X-Received: by 2002:a62:845:: with SMTP id c66-v6mr13808269pfd.189.1527518443396; Mon, 28 May 2018 07:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527518443; cv=none; d=google.com; s=arc-20160816; b=rHwBTwqM9X/ldAidhw2D/1hYJclZ0CI+D7idp0NFtWGG5bNPzhkArySxuXj563Ar0L YpSOTow0vVNlrMG2S1rMH5prciCjjCa1ojeC+1ADDgfpzLyTe4KA2cmkM9OjdrQtUZ5p OGv3Smx4QSUfmUIWH7DhodZgFEI6SMDANTGInB0vGvPmbcsZlOX6sGg37WSIsYKLyUEu NgFb22eayAyIezl00lX+bf5l48j0BZbAsmeC6JlltHKVYiccPpyKZCm2Ou6kD5or1QJi DDDELkZdFMsoDD98O1eSds+suZ74dHqOnfO9cJoeZh0y9T3a00EwqaL/nkAiMi3ndJd+ LwtA== 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:references:cc:to:from:subject:arc-authentication-results; bh=LsiXdILhSD8qdHznOUoFrb/H9m50rMRJDzxymXKwCPM=; b=aYftzEVDkgkHC6p6fsNSrnP6QZyCiOsCZr2Wl7eRKu1/H42puz1OgPEGcDxlyKM6Bn o+NIz+jOCxODE2dlJHOmIP5xUwZ8wb3MmfqxjopjNyu9BEdJkPTKOxpbeVe0cXd7guKU djf6JSr+rh5aKo8veWGY7Npqvy6mr5QtC68f7orBzoLxqgwvWxGdJF3YCo7GsfOB8kYB iYbjF4W4lF6SeIYYF/jqabYB/fWeA5k4WlxjqTI6zgggA09UmthlZbe34bL8Kgh65kg3 mKHU3SQdJnlmXkY5o+pDpBcSHMAefmILVdaA024vBkJfK1VNJAnq/tKVsr/yixvB+KXS caBA== 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 n14-v6si18545690plp.534.2018.05.28.07.40.28; Mon, 28 May 2018 07:40:43 -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 S1165840AbeE1Ojx (ORCPT + 99 others); Mon, 28 May 2018 10:39:53 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:44130 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161710AbeE1Ojr (ORCPT ); Mon, 28 May 2018 10:39:47 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 40vfdS2pfcz9v0Wg; Mon, 28 May 2018 16:39:40 +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 8zLexvGtoiHL; Mon, 28 May 2018 16:39:40 +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 40vfdS2HJVz9v0Wh; Mon, 28 May 2018 16:39:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 043428B98F; Mon, 28 May 2018 16:39:46 +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 3OEYU7rcN5kn; Mon, 28 May 2018 16:39:45 +0200 (CEST) Received: from po14934vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id BCBC08B98E; Mon, 28 May 2018 16:39:45 +0200 (CEST) Subject: Re: [PATCH] powerpc/Makefile: fix build failure by disabling attribute-alias warning From: Christophe Leroy To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , segher@kernel.crashing.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <0adce33cf1c70ac7203f8ebd987a912451aabd45.1527517001.git.christophe.leroy@c-s.fr> Message-ID: Date: Mon, 28 May 2018 14:39:37 +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: <0adce33cf1c70ac7203f8ebd987a912451aabd45.1527517001.git.christophe.leroy@c-s.fr> 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 05/28/2018 02:17 PM, Christophe Leroy wrote: > Latest GCC version emit many warnings similar to the following one. Oops, forgot to include the failure text: 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, ^~~~~~~~~~~~~~~ ./include/linux/syscalls.h:233:18: warning: 'sys_mmap' alias between functions of incompatible types 'long int(long unsigned int, size_t, long unsigned int, long unsigned int, long unsigned int, off_t)' {aka 'long int(long unsigned int, unsigned int, long unsigned int, long unsigned int, long unsigned int, long 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:72:1: note: in expansion of macro 'SYSCALL_DEFINE6' SYSCALL_DEFINE6(mmap, 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:72:1: note: in expansion of macro 'SYSCALL_DEFINE6' SYSCALL_DEFINE6(mmap, unsigned long, addr, size_t, len, ^~~~~~~~~~~~~~~ CC arch/powerpc/kernel/irq.o CC arch/powerpc/kernel/align.o CC arch/powerpc/kernel/signal_32.o In file included from arch/powerpc/kernel/signal_32.c:29: ./include/linux/syscalls.h:233:18: warning: 'sys_swapcontext' alias between functions of incompatible types 'long int(struct ucontext *, struct ucontext *, long int)' and '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:213:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ arch/powerpc/kernel/signal_32.c:1044:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, ^~~~~~~~~~~~~~~ ./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:213:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ arch/powerpc/kernel/signal_32.c:1044:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, ^~~~~~~~~~~~~~~ ./include/linux/syscalls.h:233:18: warning: 'sys_debug_setcontext' alias between functions of incompatible types 'long int(struct ucontext *, int, struct sig_dbg_op *)' and '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:213:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ arch/powerpc/kernel/signal_32.c:1232:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(debug_setcontext, struct ucontext __user *, ctx, ^~~~~~~~~~~~~~~ ./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:213:36: note: in expansion of macro 'SYSCALL_DEFINEx' #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) ^~~~~~~~~~~~~~~ arch/powerpc/kernel/signal_32.c:1232:1: note: in expansion of macro 'SYSCALL_DEFINE3' SYSCALL_DEFINE3(debug_setcontext, struct ucontext __user *, ctx, ^~~~~~~~~~~~~~~ Christophe > > As arch/powerpc code is built with -Werror, this breaks build with > GCC 8.1 > > This patch inhibits that warning > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 26ccd0b91512..d6c557530ce8 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -145,6 +145,8 @@ CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions) > CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD) > CFLAGS-$(CONFIG_PPC32) += $(call cc-option,-mno-readonly-in-sdata) > > +CFLAGS-y += $(call cc-option,-Wno-attribute-alias) > + > ifeq ($(CONFIG_PPC_BOOK3S_64),y) > ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y) > CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=power8 >