Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3653124imm; Mon, 4 Jun 2018 07:13:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJmgdZ7fa+1YNtECE91vRG01p5z25wib8kXtrDx4oC1cyHSkKJahV75p2aqW1ShHGf2NCDV X-Received: by 2002:a62:b509:: with SMTP id y9-v6mr19238119pfe.121.1528121593489; Mon, 04 Jun 2018 07:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528121593; cv=none; d=google.com; s=arc-20160816; b=tYRtvBoM36Wkuh5Pkb/sLDjD3ags75k/0KbzDogjsEX5QuTuT/9m0iXsBhgujOfpKT uGy8psKQaupbGAc/XMZH9U3enOQNUt6rDkiEq4BeQ2Rgbhlha5QHWb5Rw64o/ZN2xeBF NSN2ETDA7sAJFio5DFhB/OHiIKdOXKQjFHxDMcxl38qNs9WO8azZY8IZkao7ipzLyNRx 8cR28Pthx6Ph4D33zZsQ3zDAaNKt4o9bokSW4jtUJM+UCJ1FgGBjBIS4mk0+RyEoULMY Uno3L/ETuCEaM/Wq5COCpeaToQc2pqcDupykqagOppuR5PL3BaUOILFufRBAb2UmxTH3 VaAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to:arc-authentication-results; bh=TuQdAHry+0DReQyovMYiHiSop2JGWjj2j8pParVopU8=; b=X8nyYVbTicwVBItxUJ8x0i6eViFgzvSSkeifniic+4VrvMl+TgzPfVhjpRlqiHbEjU o37JdpDtWU+JvSTRPT2ZgZ3cbapq/vJS6chofsLiXjhM2BjNNtaAHA2j8hLAW9fmrFwn TrOZ8xT9WAmi06jROxw6KUwtPjhD1XHNOV+NldkZAXSNNlc4ebLLMRNIsZWwArARf5u5 2vwoabaImK4aLwVxXAPf4eOpdXLaDEcTsF6BF8Yxj2iApMF8v25cQXhcOT66y8tHriJb KXWjotAeAa+CA0FWKLgWXF+tb5E/Y0590v0syZfiV7WSWS+c2S4a5aBlTMr2qoHXcTqR GMig== 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 t184-v6si45345682pfb.98.2018.06.04.07.12.58; Mon, 04 Jun 2018 07:13:13 -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 S932070AbeFDOL5 (ORCPT + 99 others); Mon, 4 Jun 2018 10:11:57 -0400 Received: from ozlabs.org ([203.11.71.1]:45343 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753815AbeFDOLZ (ORCPT ); Mon, 4 Jun 2018 10:11:25 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 40zxgb4SmTz9s7c; Tue, 5 Jun 2018 00:11:18 +1000 (AEST) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 2479bfc9bc600dcce7f932d52dcfa8d677c41f93 In-Reply-To: <919de56550f431fda0e1073cd51519b2c2623294.1527609852.git.christophe.leroy@c-s.fr> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , segher@kernel.crashing.org From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [v3] powerpc: fix build failure by disabling attribute-alias warning Message-Id: <40zxgb4SmTz9s7c@ozlabs.org> Date: Tue, 5 Jun 2018 00:11:18 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 cheers