Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp549144imm; Mon, 4 Jun 2018 23:59:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI/yClQWanJtBAxsX2BeJQZF3BkmKWwkcGGXFtemxs8WYScI4ygJjVk5MdLcB6KyeCdjHHm X-Received: by 2002:a17:902:c81:: with SMTP id 1-v6mr24892165plt.126.1528181977787; Mon, 04 Jun 2018 23:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528181977; cv=none; d=google.com; s=arc-20160816; b=kVn8mv9lpwKRd5AInzLga8S/zgx3Q2nQzrzBO/J7jvb8ONZ+CpNWVldC56GMmHdnzS ZeMn3vkIBh5iJZKiSnR5bG5HYOwFSQIjbN6W9huKUw8VYIfQ7+ZPA3eV7Nfkq+PXb3G8 T27vKxlls4TsaLBVyuc09SilgxXDOQaFGa+kFbTVmQ4VgwkNQZsRiAkmVdaR3xNRfOxu tdgy9a1zwzsKFQPq7919O6c8pGmsN/WNLxOrksjs/tKWuJMd0BhWyxM1bG+66CHayGcL Fc0yWzhgootrQX640spg9bSZKnx/X5tmx6gyKUZuKtrtciiQ+SGR0rJt//LCwD5iGz3z fztg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id :arc-authentication-results; bh=1eGmUg84VF/i9ZEkUjn0DMyJMc9D58x9XVmb2f+390c=; b=mVKrbh4BTCeF69KowECMcktuFWt+QqbL2aGf6/+CbqNQk2aKa/IC4xX7LSvB9I0Tyr OMhoGEBDjJ4FXKMGCagdwtClcBdYIJzBUq4xvCSaDHdkKHZkcrFvg/0k0SClAgz+6UOz lRsS1/bw05XZm2Sy9Q5PQBAMINhpKUk1/+DtcBMbcW5flFHCwoWLPwLUZ9bkjABI65zE xGJZ8LkhuMZFoMmLqmQzR1oPWzlITGuuVwDHCK4v16xNcp+Y7i7ctY4+e54TuD7Bv7up JenzYnTX6x3ZcBm3tRBFqZz+oGqxJ2YLDSM+ZYYJ065HXUv9CmenYYlU1q8v1vwRT2yH D10Q== 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 b9-v6si41162134plk.111.2018.06.04.23.59.23; Mon, 04 Jun 2018 23:59:37 -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 S1751617AbeFEG5p (ORCPT + 99 others); Tue, 5 Jun 2018 02:57:45 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:60569 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751530AbeFEG5o (ORCPT ); Tue, 5 Jun 2018 02:57:44 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 410N0l1KlPz9tvmn; Tue, 5 Jun 2018 08:57:43 +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 bb-bVlYxuz-T; Tue, 5 Jun 2018 08:57:43 +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 410N0l0jBCz9tvmm; Tue, 5 Jun 2018 08:57:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 8A4BA8B7F1; Tue, 5 Jun 2018 08:57:43 +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 0YKUpfn92EvD; Tue, 5 Jun 2018 08:57:43 +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 6B7A48B7F0; Tue, 5 Jun 2018 08:57:43 +0200 (CEST) Received: by po14934vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 2BE746F7D5; Tue, 5 Jun 2018 06:57:43 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH] powerpc: fix build failure by disabling attribute-alias warning in pci_32 To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Tue, 5 Jun 2018 06:57:43 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 2479bfc9bc600 ("powerpc: Fix build by disabling attribute-alias warning for SYSCALL_DEFINEx") forgot arch/powerpc/kernel/pci_32.c 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 this warning In file included from arch/powerpc/kernel/pci_32.c:14: ./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__) ^~~~~~~~~~~~~~~~~ Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/pci_32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index d63b488d34d7..4f861055a852 100644 --- a/arch/powerpc/kernel/pci_32.c +++ b/arch/powerpc/kernel/pci_32.c @@ -285,6 +285,9 @@ 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) { @@ -310,3 +313,4 @@ SYSCALL_DEFINE3(pciconfig_iobase, long, which, return result; } +#pragma GCC diagnostic pop -- 2.13.3