Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3580805imm; Mon, 18 Jun 2018 00:01:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJgub0e/Puusl3T+tv+b/97wgwNhktAgY5Oq86wfJ2m6PB9F8W0sKBswDPf5WGSXq/nA/XN X-Received: by 2002:a17:902:59ce:: with SMTP id d14-v6mr12770882plj.253.1529305301106; Mon, 18 Jun 2018 00:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529305301; cv=none; d=google.com; s=arc-20160816; b=jxpWIWh0/w1ih4aCyd8+vrlJFkjV/zn8SKC0pODYGNBH3dNbg1ToPlvRVLR1HmGbnj /TA9rwKgaRqLkdg+eCeJzIQaQ348dOPDE1j7xrODWwtMFm8AXMLf4DYWgg/C+N5YWVdp ZDBtf36/1/rlO+p9VF7rWfyFo+O20hIToCKvk4vMLI2NCOJi4OLjPuiSjBegcMysalf5 7cQscPgmJ1Cg38U+EQ50xw7qA6fSZFJyJ2Q6VYolFIzgphL4xLIHl/1n+5rR0IqKEaES +/tIe7zGZUli5P5T0bx7IRCxzQEDiJ6oys6uQWArcxT8LVGYPjcJSEYKnGosETotEMoG bwrg== 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=/Tv6lojYZYsXy883FGsDInD7WHirviySAIdEUA+aG5Y=; b=ZN7uvQC4Ga0ct440QuaepaXvrT8MeVTWHLN1OdqQdyq5+DGEDcjNL+RIDaDMfAp1an NTAzY19IMYNyYl+lMQi/h+gchoOqkVxjoN3XI/4Ek2QwPB8MlXD8ZX56fE/zwFLRm2dE gG2727hLFtt6dumpmrBd9UoRLia+uJ7msJitp608pTvKDkJtr/X6BH3DbzDQpXFN2EIk iEvdbzRvmHNm5e8bWiIuKObnqjtsbAZAVoPMB4cSBXzs3Qx/UuGX9gKs30SFue7zSif5 8a2YjkG2GTxb1HOMKJvfwxZ7XzXvNVZznafHVETc+ijFrDBoyylcFKMXnDki8X2Vapvl NxCA== 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 j10-v6si14215331pfk.203.2018.06.18.00.01.27; Mon, 18 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 S1755056AbeFRHAm (ORCPT + 99 others); Mon, 18 Jun 2018 03:00:42 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:3759 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754884AbeFRHAk (ORCPT ); Mon, 18 Jun 2018 03:00:40 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 418MS02qRsz9ttSX; Mon, 18 Jun 2018 09:00:32 +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 L6t6eFTOhOgs; Mon, 18 Jun 2018 09:00:32 +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 418MS022bwz9ttSG; Mon, 18 Jun 2018 09:00:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A65188B80A; Mon, 18 Jun 2018 09:00: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 ju4NeiF9Zdeb; Mon, 18 Jun 2018 09:00:38 +0200 (CEST) Received: from PO15451 (unknown [192.168.232.3]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 782C78B74B; Mon, 18 Jun 2018 09:00:37 +0200 (CEST) Subject: Re: [PATCH 0/3] Resolve -Wattribute-alias warnings from SYSCALL_DEFINEx() 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: <20180616005323.7938-1-paul.burton@mips.com> From: Christophe LEROY Message-ID: Date: Mon, 18 Jun 2018 09:00: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: <20180616005323.7938-1-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 16/06/2018 à 02:53, Paul Burton a écrit : > This series introduces infrastructure allowing compiler diagnostics to > be disabled or their severity modified for specific pieces of code, with > suitable abstractions to prevent that code from becoming tied to a > specific compiler. > > This infrastructure is then used to disable the -Wattribute-alias > warning around syscall definitions, which rely on type mismatches to > sanitize arguments. > > Finally PowerPC-specific #pragma's are removed now that the generic code > is handling this. > > The series takes Arnd's RFC patches & addresses the review comments they > received. The most notable effect of this series to to avoid warnings & > build failures caused by -Wattribute-alias when compiling the kernel > with GCC 8. > > Applies cleanly atop master as of 9215310cf13b ("Merge > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net"). > > Thanks, > Paul > > Arnd Bergmann (2): > kbuild: add macro for controlling warnings to linux/compiler.h > disable -Wattribute-alias warning for SYSCALL_DEFINEx() > > Paul Burton (1): > Revert "powerpc: fix build failure by disabling attribute-alias > warning in pci_32" > > arch/powerpc/kernel/pci_32.c | 4 --- > include/linux/compat.h | 8 ++++- > include/linux/compiler-gcc.h | 66 ++++++++++++++++++++++++++++++++++ > include/linux/compiler_types.h | 18 ++++++++++ > include/linux/syscalls.h | 4 +++ > 5 files changed, 95 insertions(+), 5 deletions(-) > Works well, thanks. You can then also revert 2479bfc9bc600dcce7f932d52dcfa8d677c41f93 ("powerpc: Fix build by disabling attribute-alias warning for SYSCALL_DEFINEx") Christophe