Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp551461imm; Tue, 5 Jun 2018 00:01:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKr2AmYEeitXBh400EXiMLqf+6wrOYhugA0wklDQv3aifi2bsc+7kL+RN1tKZCkq/H6CJoN X-Received: by 2002:a17:902:be0b:: with SMTP id r11-v6mr25422987pls.182.1528182101999; Tue, 05 Jun 2018 00:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528182101; cv=none; d=google.com; s=arc-20160816; b=Sy7/TFXdMCPzVOrnQSvWrdcpDPcjHfF1j20JcWI4+SiwnU+/hvVZbHi991cOCReBPj grRgQSxykDVtx3VNLP9EI9bxjfW1ENQw82hdtFEoTzEkfTe1YhRx+kR+aBY/Amhqn54v uR93rEiCOO3YuUHQzh5oRQphnpFedo7XYk4UNLjR/J9uiCw9mJyork8qDVh7QtlxYggW uceCZQloHlqZoVYhH5nSk0702u03bGxU1lwvgLWR1sURW6o1vuIXqBE5PCmkBNz8wM5b KXVvNDl7D8YTAd/6UilC1rNRTGcdhEjhjcCon7hB8TKfu9Lp+zBpDymwztTw/sFCdfUr E0zA== 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=QDk5IvVjUtn5IyGYSMbfMocZCA4GHesPhrhHVb2uHm0=; b=g1f26T6aF2Ixr2KZuC7bQq/nnbf4uREeMzZOpbiN9Pm0Dhpe+HQrVC3r8cIxDPa/VR pk7+GsRIazF1Dnw8Tgd74pzINgUswfe3oOlIohxBvSGTgSVRKfieWSlgz0r9tOlOoV5H mUdLnLieFGqILHBNnTr1MFQn7MM2HqWpmvPeufkAK2pR5Ih3Dg52JuAoVLWx5b3JpG91 H9pkQ1k0SVP0YvqwPs43GTDND/3t4qCnAj5kJdW3kdbYf9md27v3i3wJdrCn/bwtOjLc L1b39f9JeeXCcv842sy/KhHStT9al8y3lR4R32rvV3QyQDIKye9nyqbZNptYdwmW7h9k 3L/A== 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 v7-v6si29630540plz.86.2018.06.05.00.01.27; Tue, 05 Jun 2018 00:01:41 -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 S1751796AbeFEHA5 (ORCPT + 99 others); Tue, 5 Jun 2018 03:00:57 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:1872 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751774AbeFEHAz (ORCPT ); Tue, 5 Jun 2018 03:00:55 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 410N4Q1gV4z9tvmn; Tue, 5 Jun 2018 09:00:54 +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 qw4u16h17FWW; Tue, 5 Jun 2018 09:00:54 +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 410N4Q179mz9tvmm; Tue, 5 Jun 2018 09:00:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 899EE8B7F1; Tue, 5 Jun 2018 09:00:54 +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 FWRaCA1G7ta1; Tue, 5 Jun 2018 09:00:54 +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 5662E8B7F0; Tue, 5 Jun 2018 09:00:54 +0200 (CEST) Subject: Re: [v3] powerpc: fix build failure by disabling attribute-alias warning To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , segher@kernel.crashing.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <40zxgb4SmTz9s7c@ozlabs.org> From: Christophe LEROY Message-ID: <0332913c-04c0-362f-313f-8d42099f168d@c-s.fr> Date: Tue, 5 Jun 2018 09:00:53 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <40zxgb4SmTz9s7c@ozlabs.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 04/06/2018 à 16:11, Michael Ellerman a écrit : > On Tue, 2018-05-29 at 16:06:41 UTC, Christophe Leroy wrote: >> Latest GCC version emit the following warnings >> >> As arch/powerpc code is built with -Werror, this breaks build with >> GCC 8.1 >> >> This patch inhibits those warnings >> >> CC arch/powerpc/kernel/syscalls.o >> In file included from arch/powerpc/kernel/syscalls.c:24: >> ./include/linux/syscalls.h:233:18: error: '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, long 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)' [-Werror=attribute-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: error: '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, long 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)' [-Werror=attribute-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/signal_32.o >> In file included from arch/powerpc/kernel/signal_32.c:31: >> ./include/linux/compat.h:74:18: error: 'compat_sys_swapcontext' alias between functions of incompatible types 'long int(struct ucontext32 *, struct ucontext32 *, int)' and 'long int(long int, long int, long int)' [-Werror=attribute-alias] >> asmlinkage long compat_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)) \ >> ^~~~~~~~~~ >> ./include/linux/compat.h:58:2: note: in expansion of macro 'COMPAT_SYSCALL_DEFINEx' >> COMPAT_SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) >> ^~~~~~~~~~~~~~~~~~~~~~ >> arch/powerpc/kernel/signal_32.c:1041:1: note: in expansion of macro 'COMPAT_SYSCALL_DEFINE3' >> COMPAT_SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, >> ^~~~~~~~~~~~~~~~~~~~~~ >> ./include/linux/compat.h:79:18: note: aliased declaration here >> asmlinkage long __se_compat_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)) \ >> ^~~~~~~~~~~~~~~ >> ./include/linux/compat.h:58:2: note: in expansion of macro 'COMPAT_SYSCALL_DEFINEx' >> COMPAT_SYSCALL_DEFINEx(3, _##name, __VA_ARGS__) >> ^~~~~~~~~~~~~~~~~~~~~~ >> arch/powerpc/kernel/signal_32.c:1041:1: note: in expansion of macro 'COMPAT_SYSCALL_DEFINE3' >> COMPAT_SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, >> ^~~~~~~~~~~~~~~~~~~~~~ >> CC arch/powerpc/kernel/signal_64.o >> In file included from arch/powerpc/kernel/signal_64.c:27: >> ./include/linux/syscalls.h:233:18: error: '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)' [-Werror=attribute-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_64.c:628: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_64.c:628:1: note: in expansion of macro 'SYSCALL_DEFINE3' >> SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, >> ^~~~~~~~~~~~~~~ >> CC arch/powerpc/kernel/rtas.o >> In file included from arch/powerpc/kernel/rtas.c:29: >> ./include/linux/syscalls.h:233:18: error: 'sys_rtas' alias between functions of incompatible types 'long int(struct rtas_args *)' and 'long int(long int)' [-Werror=attribute-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:211:36: note: in expansion of macro 'SYSCALL_DEFINEx' >> #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__) >> ^~~~~~~~~~~~~~~ >> arch/powerpc/kernel/rtas.c:1054:1: note: in expansion of macro 'SYSCALL_DEFINE1' >> SYSCALL_DEFINE1(rtas, struct rtas_args __user *, uargs) >> ^~~~~~~~~~~~~~~ >> ./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:211:36: note: in expansion of macro 'SYSCALL_DEFINEx' >> #define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__) >> ^~~~~~~~~~~~~~~ >> arch/powerpc/kernel/rtas.c:1054:1: note: in expansion of macro 'SYSCALL_DEFINE1' >> SYSCALL_DEFINE1(rtas, struct rtas_args __user *, uargs) >> ^~~~~~~~~~~~~~~ >> CC arch/powerpc/kernel/pci_64.o >> In file included from arch/powerpc/kernel/pci_64.c:23: >> ./include/linux/syscalls.h:233:18: error: 'sys_pciconfig_iobase' alias between functions of incompatible types 'long int(long int, long unsigned int, long unsigned int)' and 'long int(long int, long int, long int)' [-Werror=attribute-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/pci_64.c:206:1: note: in expansion of macro 'SYSCALL_DEFINE3' >> SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, in_bus, >> ^~~~~~~~~~~~~~~ >> ./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/pci_64.c:206:1: note: in expansion of macro 'SYSCALL_DEFINE3' >> SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, in_bus, >> ^~~~~~~~~~~~~~~ >> >> Signed-off-by: Christophe Leroy > > Applied to powerpc next, thanks. > > https://git.kernel.org/powerpc/c/2479bfc9bc600dcce7f932d52dcfa8 Oops, you didn't take v4 but v3 which was missing the fix into pci_32.c I'll send you a patch to add the fix in pci_32.c Christophe > > cheers >