Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp789263imm; Wed, 20 Jun 2018 06:41:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK9f3TE2K8EvtxRP7gf3UjQb/JWY+EE8nmQNefzBtT/kba0s0IWTsCIHi/u9h9y3Nr7f7H3 X-Received: by 2002:a62:8a0a:: with SMTP id y10-v6mr23010581pfd.237.1529502101314; Wed, 20 Jun 2018 06:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529502101; cv=none; d=google.com; s=arc-20160816; b=gs9dmwuwOAR33p2OlHXLxFnyA01UYX/A0ZbRMhkA3hksM3lRvtSI2VHLyKfGBvnZyv Df/b76PWa7cOHqA/fgsgC3K/9qnZoNcvlsN0SWugPQLasFTRkALQJcI3+M63cJad+qB5 q6Cl4IGfCP/OGScqv3qnIcuAiKmnpH3Grd1MoU/EESs0tZF4HGr/6Re0tqAZPQ2Em1bZ BxTxN8UwpQCZVXatAo71y2IgU8ylD7UDqoyWdc80RILDWmJ5+9fPEriASt+fzT4HFiIR XChwKXW+cn9HNLjdFgMW93wO/axbZWZMqCYSUHDzjO0tzY8o50kXp6DUrwcW1druN4AO qH0g== 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=bO6s5Ejj0WMIgQi3QMKuo9smOo4o+/Z8NGdVE4QP57A=; b=q/qXKtrwXfEJTG6ARYhYwVHBJ145fkeceBgJ09znjaqRikHl21ctMvPLFCD30Txqza hwrI7SAm3mAEDQyJ1p5BXqq+t1FS7qHa9ic4r7WZrcFexxrveymJEjZ83Lc8nyAx5zUK 72lNol/JI7o9nQZoYDAUCgKmUhlBvnztewdfTsaLGLQQ3mTqkHUt+fPU9ie9sifqxFfD cUmZJmCIiV8q+0lV9fQQ17PN1/fuVGGIgcJILYqS3BblasSPMBkQpuv1zeX3NMoCJY0T FDxTEguUvTwuONk+0Ms2KG6ApudvIMBdNKPFdJblCZKoAX3p/RZaAPj0g+zHfbp5Zz57 1Q3Q== 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 j3-v6si2297273pld.300.2018.06.20.06.41.26; Wed, 20 Jun 2018 06:41: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 S1754171AbeFTNkl (ORCPT + 99 others); Wed, 20 Jun 2018 09:40:41 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:56480 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753073AbeFTNkj (ORCPT ); Wed, 20 Jun 2018 09:40:39 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 419mDf2qntz9ttl6; Wed, 20 Jun 2018 15:40:34 +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 uYPHJFo49GTt; Wed, 20 Jun 2018 15:40:34 +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 419mDf2DfTz9ttkv; Wed, 20 Jun 2018 15:40:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 2D7808B827; Wed, 20 Jun 2018 15:40:38 +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 ofANG5p2Pjig; Wed, 20 Jun 2018 15:40:38 +0200 (CEST) Received: from PO15451 (unknown [192.168.232.3]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 12D3E8B823; Wed, 20 Jun 2018 15:40:37 +0200 (CEST) Subject: Re: [PATCH v2 3/3] powerpc: Remove -Wattribute-alias pragmas To: Paul Burton , linux-kbuild@vger.kernel.org Cc: Mauro Carvalho Chehab , linux-mips@linux-mips.org, Arnd Bergmann , Ingo Molnar , Matthew Wilcox , Thomas Gleixner , Douglas Anderson , Josh Poimboeuf , Andrew Morton , Matthias Kaehlcke , He Zhe , Benjamin Herrenschmidt , Michal Marek , Khem Raj , Al Viro , Stafford Horne , Gideon Israel Dsouza , Masahiro Yamada , Kees Cook , Michael Ellerman , Heiko Carstens , linux-kernel@vger.kernel.org, Paul Mackerras , linuxppc-dev@lists.ozlabs.org References: <20180619190225.7eguhiw3ixaiwpgl@pburton-laptop> <20180619201458.4559-1-paul.burton@mips.com> <20180619201458.4559-4-paul.burton@mips.com> From: Christophe LEROY Message-ID: Date: Wed, 20 Jun 2018 15:40:37 +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: <20180619201458.4559-4-paul.burton@mips.com> 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 19/06/2018 à 22:14, Paul Burton a écrit : > With SYSCALL_DEFINEx() disabling -Wattribute-alias generically, there's > no need to duplicate that for PowerPC syscalls. > > This reverts commit 415520373975 ("powerpc: fix build failure by > disabling attribute-alias warning in pci_32") and commit 2479bfc9bc60 > ("powerpc: Fix build by disabling attribute-alias warning for > SYSCALL_DEFINEx"). > > Signed-off-by: Paul Burton > Cc: Michal Marek > Cc: Masahiro Yamada > Cc: Douglas Anderson > Cc: Al Viro > Cc: Heiko Carstens > Cc: Mauro Carvalho Chehab > Cc: Matthew Wilcox > Cc: Matthias Kaehlcke > Cc: Arnd Bergmann > Cc: Ingo Molnar > Cc: Josh Poimboeuf > Cc: Kees Cook > Cc: Andrew Morton > Cc: Thomas Gleixner > Cc: Gideon Israel Dsouza > Cc: Christophe Leroy > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: Stafford Horne > Cc: Khem Raj > Cc: He Zhe > Cc: linux-kbuild@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: linux-mips@linux-mips.org > Cc: linuxppc-dev@lists.ozlabs.org > > --- > Michael & Christophe, I didn't add your acks here yet since it changed > to include the second revert that Christophe pointed out I'd missed & I > didn't want to presume your acks extended to that. Looks ok to me Acked-by: Christophe Leroy > > Changes in v2: > - Also revert 2479bfc9bc60 ("powerpc: Fix build by disabling > attribute-alias warning for SYSCALL_DEFINEx"). > - Change subject now that it's not just a simple one-commit revert. > > arch/powerpc/kernel/pci_32.c | 4 ---- > arch/powerpc/kernel/pci_64.c | 4 ---- > arch/powerpc/kernel/rtas.c | 4 ---- > arch/powerpc/kernel/signal_32.c | 8 -------- > arch/powerpc/kernel/signal_64.c | 4 ---- > arch/powerpc/kernel/syscalls.c | 4 ---- > arch/powerpc/mm/subpage-prot.c | 4 ---- > 7 files changed, 32 deletions(-) > > diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c > index 4f861055a852..d63b488d34d7 100644 > --- a/arch/powerpc/kernel/pci_32.c > +++ b/arch/powerpc/kernel/pci_32.c > @@ -285,9 +285,6 @@ pci_bus_to_hose(int bus) > * Note that the returned IO or memory base is a physical address > */ > > -#pragma GCC diagnostic push > -#pragma GCC diagnostic ignored "-Wpragmas" > -#pragma GCC diagnostic ignored "-Wattribute-alias" > SYSCALL_DEFINE3(pciconfig_iobase, long, which, > unsigned long, bus, unsigned long, devfn) > { > @@ -313,4 +310,3 @@ SYSCALL_DEFINE3(pciconfig_iobase, long, which, > > return result; > } > -#pragma GCC diagnostic pop > diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c > index 812171c09f42..dff28f903512 100644 > --- a/arch/powerpc/kernel/pci_64.c > +++ b/arch/powerpc/kernel/pci_64.c > @@ -203,9 +203,6 @@ void pcibios_setup_phb_io_space(struct pci_controller *hose) > #define IOBASE_ISA_IO 3 > #define IOBASE_ISA_MEM 4 > > -#pragma GCC diagnostic push > -#pragma GCC diagnostic ignored "-Wpragmas" > -#pragma GCC diagnostic ignored "-Wattribute-alias" > SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, in_bus, > unsigned long, in_devfn) > { > @@ -259,7 +256,6 @@ SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, in_bus, > > return -EOPNOTSUPP; > } > -#pragma GCC diagnostic pop > > #ifdef CONFIG_NUMA > int pcibus_to_node(struct pci_bus *bus) > diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c > index 7fb9f83dcde8..8afd146bc9c7 100644 > --- a/arch/powerpc/kernel/rtas.c > +++ b/arch/powerpc/kernel/rtas.c > @@ -1051,9 +1051,6 @@ struct pseries_errorlog *get_pseries_errorlog(struct rtas_error_log *log, > } > > /* We assume to be passed big endian arguments */ > -#pragma GCC diagnostic push > -#pragma GCC diagnostic ignored "-Wpragmas" > -#pragma GCC diagnostic ignored "-Wattribute-alias" > SYSCALL_DEFINE1(rtas, struct rtas_args __user *, uargs) > { > struct rtas_args args; > @@ -1140,7 +1137,6 @@ SYSCALL_DEFINE1(rtas, struct rtas_args __user *, uargs) > > return 0; > } > -#pragma GCC diagnostic pop > > /* > * Call early during boot, before mem init, to retrieve the RTAS > diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c > index 5eedbb282d42..e6474a45cef5 100644 > --- a/arch/powerpc/kernel/signal_32.c > +++ b/arch/powerpc/kernel/signal_32.c > @@ -1038,9 +1038,6 @@ static int do_setcontext_tm(struct ucontext __user *ucp, > } > #endif > > -#pragma GCC diagnostic push > -#pragma GCC diagnostic ignored "-Wpragmas" > -#pragma GCC diagnostic ignored "-Wattribute-alias" > #ifdef CONFIG_PPC64 > COMPAT_SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, > struct ucontext __user *, new_ctx, int, ctx_size) > @@ -1134,7 +1131,6 @@ SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, > set_thread_flag(TIF_RESTOREALL); > return 0; > } > -#pragma GCC diagnostic pop > > #ifdef CONFIG_PPC64 > COMPAT_SYSCALL_DEFINE0(rt_sigreturn) > @@ -1231,9 +1227,6 @@ SYSCALL_DEFINE0(rt_sigreturn) > return 0; > } > > -#pragma GCC diagnostic push > -#pragma GCC diagnostic ignored "-Wpragmas" > -#pragma GCC diagnostic ignored "-Wattribute-alias" > #ifdef CONFIG_PPC32 > SYSCALL_DEFINE3(debug_setcontext, struct ucontext __user *, ctx, > int, ndbg, struct sig_dbg_op __user *, dbg) > @@ -1337,7 +1330,6 @@ SYSCALL_DEFINE3(debug_setcontext, struct ucontext __user *, ctx, > return 0; > } > #endif > -#pragma GCC diagnostic pop > > /* > * OK, we're invoking a handler > diff --git a/arch/powerpc/kernel/signal_64.c b/arch/powerpc/kernel/signal_64.c > index d42b60020389..83d51bf586c7 100644 > --- a/arch/powerpc/kernel/signal_64.c > +++ b/arch/powerpc/kernel/signal_64.c > @@ -625,9 +625,6 @@ static long setup_trampoline(unsigned int syscall, unsigned int __user *tramp) > /* > * Handle {get,set,swap}_context operations > */ > -#pragma GCC diagnostic push > -#pragma GCC diagnostic ignored "-Wpragmas" > -#pragma GCC diagnostic ignored "-Wattribute-alias" > SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, > struct ucontext __user *, new_ctx, long, ctx_size) > { > @@ -693,7 +690,6 @@ SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, > set_thread_flag(TIF_RESTOREALL); > return 0; > } > -#pragma GCC diagnostic pop > > > /* > diff --git a/arch/powerpc/kernel/syscalls.c b/arch/powerpc/kernel/syscalls.c > index 083fa06962fd..466216506eb2 100644 > --- a/arch/powerpc/kernel/syscalls.c > +++ b/arch/powerpc/kernel/syscalls.c > @@ -62,9 +62,6 @@ static inline long do_mmap2(unsigned long addr, size_t len, > return ret; > } > > -#pragma GCC diagnostic push > -#pragma GCC diagnostic ignored "-Wpragmas" > -#pragma GCC diagnostic ignored "-Wattribute-alias" > SYSCALL_DEFINE6(mmap2, unsigned long, addr, size_t, len, > unsigned long, prot, unsigned long, flags, > unsigned long, fd, unsigned long, pgoff) > @@ -78,7 +75,6 @@ SYSCALL_DEFINE6(mmap, unsigned long, addr, size_t, len, > { > return do_mmap2(addr, len, prot, flags, fd, offset, PAGE_SHIFT); > } > -#pragma GCC diagnostic pop > > #ifdef CONFIG_PPC32 > /* > diff --git a/arch/powerpc/mm/subpage-prot.c b/arch/powerpc/mm/subpage-prot.c > index 75cb646a79c3..9d16ee251fc0 100644 > --- a/arch/powerpc/mm/subpage-prot.c > +++ b/arch/powerpc/mm/subpage-prot.c > @@ -186,9 +186,6 @@ static void subpage_mark_vma_nohuge(struct mm_struct *mm, unsigned long addr, > * in a 2-bit field won't allow writes to a page that is otherwise > * write-protected. > */ > -#pragma GCC diagnostic push > -#pragma GCC diagnostic ignored "-Wpragmas" > -#pragma GCC diagnostic ignored "-Wattribute-alias" > SYSCALL_DEFINE3(subpage_prot, unsigned long, addr, > unsigned long, len, u32 __user *, map) > { > @@ -272,4 +269,3 @@ SYSCALL_DEFINE3(subpage_prot, unsigned long, addr, > up_write(&mm->mmap_sem); > return err; > } > -#pragma GCC diagnostic pop >