Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2394734imm; Mon, 28 May 2018 07:18:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrgQxlKpGBJ626y8Ol3iXelV5OJME+dZTBddcJ9hT5Ru5uN+/0u++kufluch7oHwCFccLw0 X-Received: by 2002:a17:902:a586:: with SMTP id az6-v6mr13948066plb.210.1527517135914; Mon, 28 May 2018 07:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527517135; cv=none; d=google.com; s=arc-20160816; b=Lby4wKSDVWV/HI32cYBD7NIFTGn0qtP47iuS8GaAf0ljJ9ArVE2K13Aiib6pEWMEQf SFWBiFJ3bFLmziUxd0F6ivRcoUIjaicPLS4x7ASe2iTiUesTub/omC0Z3zDuG/u5IBjl pJeNRgcBVMRbbJMzyztD56tVchPJdSTBJHpIbyTr1IYOgWa47dLYRpK8Qoo91zghyGXS NPTIZSB6prxYAO/wilLD+9hbq0hqH5F8NB3b8IAnXmaKWs3chUcnpW+KO0LtFulxsMja yCkABAKPAV3pIYcJ9fRbBPFHGZLqdX8Rr4/jwqdyl1lRv1jaDwGgtRgdqE+w9Ocl2+qS yLsQ== 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=i04g5rGorkan+QU5EOgot1pmrjFszq/g3ziCYPnZovg=; b=xHXQxCB3vwSsJwAwchMfT7xS/KxV8bcfCbK98YJj7p3VmlkRnOb+QRoeiVryDel6sv hVRZV9udQA7RfIPSFiJSnRjGdAi//twCevpWS3PatxIAtd5K95MigPR4zrINXm3Ad53R jpRUt3CgjN1WgDFq8r1pg9wrEzZXV21EDycKeH8gWc/Egf6g31EdfQt6fRBYkWU2lg1S lzmubGa+x3vn9XYEyRPyz/6K5vqNkYuB24VptiLFu/cXQF27PrZedYvGyNeJjeLoykX5 IRlynXjqu+HrKauAFJV4u60Lon1EITP9TRsJ/doBsQhj5Cpf2AkLUsYWtBM0bFemn35K wlvw== 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 o23-v6si8624602pfi.302.2018.05.28.07.18.41; Mon, 28 May 2018 07:18:55 -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 S1165525AbeE1ORy (ORCPT + 99 others); Mon, 28 May 2018 10:17:54 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:60470 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162113AbeE1ORv (ORCPT ); Mon, 28 May 2018 10:17:51 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 40vf883YTFz9ty6y; Mon, 28 May 2018 16:17:44 +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 xV66xFgCrckK; Mon, 28 May 2018 16:17:44 +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 40vf882ymDz9ty6q; Mon, 28 May 2018 16:17:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 136D68B98C; Mon, 28 May 2018 16:17:50 +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 iTSpYXC5iwV6; Mon, 28 May 2018 16:17:50 +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 CD4C68B98B; Mon, 28 May 2018 16:17:49 +0200 (CEST) Received: by po14934vm.idsi0.si.c-s.fr (Postfix, from userid 0) id ABA196F6E9; Mon, 28 May 2018 14:17:49 +0000 (UTC) Message-Id: <0adce33cf1c70ac7203f8ebd987a912451aabd45.1527517001.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH] powerpc/Makefile: fix build failure by disabling attribute-alias warning To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , segher@kernel.crashing.org Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Mon, 28 May 2018 14:17:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Latest GCC version emit many warnings similar to the following one. 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 -- 2.13.3