Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp8614imm; Tue, 19 Jun 2018 13:18:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKdY5qb3rLlb0OR2xZfALvqe8vOcf7lKzYn+sWCpr0/lPLtlqHmruEJiAqzSf7mJdoTfhka X-Received: by 2002:a62:ca4a:: with SMTP id n71-v6mr19619443pfg.14.1529439499098; Tue, 19 Jun 2018 13:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529439499; cv=none; d=google.com; s=arc-20160816; b=XRwUd1jeJDtXdjuE424dP7Mnte7ZA9psn61BqyWDLZ1qVOGGvm//esvOOi1xm7pkry gUUIjCEKG2iWtqPQXdG+V0QgjX6eLEuoYmOyeQ8wBKSGBbmNPCHLeJbjG+XkawJec8BR t58TXHvoYcm0kwpb0HgaD/V/XDuNxTIh2mRVyXy5gEvX2FN64XZ+yOwGsJD7MKGXXWSl I28NjXLWjuuqzwXrJ2Y/1/EG9IHkS4+qghsD1NzUxjjJRmFPXljgBZ7B3lqIDuwRSAN/ CeHC/5gIAjQSsdIoH+T4NhK6P5/yqk/OeU1CxDCjxmnhmBQdNyiWfmWnOk58NA+D2TdQ j1Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=/T3gJQYq1fXzpfAmur7RH8NmBo312oP+INkteZ5qzKc=; b=y7OCKDPqUsIGAabKYqS4p56ZNoz3W0836tuO3OmkYTiUXGK7k1VO6hyAc1vgQ99wAs 0x3qrcSH9hY+NuvDgVS0XQZiLNJfz++gBR5RYTyDCeRW1J3tivVDy/aGc4Zzg251vBd4 DXXhcF7yEPonNGhxuDOVDgpUIUrheLudKTsWXvswwrljR8e77nQ6v4UcHMQqxM1Ze8hI 8LhzqdY+k+q8uUnOJKqlmWe1SuCcb1raWXAtChScQU0ZgdyG3U7ov8fRCjvQNYuNJ49S 3BA51pIEyGzVuz0huU3OWCLdWXr9YUkMKi7ngeDAD7dCjqtRfjXPUtzw8wccIrv0k4zs AI9Q== 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 2-v6si513609ple.192.2018.06.19.13.18.04; Tue, 19 Jun 2018 13:18:19 -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 S1756918AbeFSURF (ORCPT + 99 others); Tue, 19 Jun 2018 16:17:05 -0400 Received: from 9pmail.ess.barracuda.com ([64.235.150.224]:42294 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966263AbeFSURB (ORCPT ); Tue, 19 Jun 2018 16:17:01 -0400 Received: from mipsdag02.mipstec.com (mail2.mips.com [12.201.5.32]) by mx26.ess.sfj.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=NO); Tue, 19 Jun 2018 20:15:24 +0000 Received: from mipsdag02.mipstec.com (10.20.40.47) by mipsdag02.mipstec.com (10.20.40.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1415.2; Tue, 19 Jun 2018 13:15:22 -0700 Received: from pburton-laptop.mipstec.com (10.20.2.29) by mipsdag02.mipstec.com (10.20.40.47) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Tue, 19 Jun 2018 13:15:22 -0700 From: Paul Burton To: CC: Mauro Carvalho Chehab , , Arnd Bergmann , Ingo Molnar , Matthew Wilcox , Thomas Gleixner , Douglas Anderson , Josh Poimboeuf , Andrew Morton , Matthias Kaehlcke , He Zhe , Benjamin Herrenschmidt , Michal Marek , Khem Raj , Christophe Leroy , Al Viro , Stafford Horne , Gideon Israel Dsouza , Masahiro Yamada , Kees Cook , Michael Ellerman , Heiko Carstens , , Paul Mackerras , , Paul Burton Subject: [PATCH v2 0/3] Resolve -Wattribute-alias warnings from SYSCALL_DEFINEx() Date: Tue, 19 Jun 2018 13:14:55 -0700 Message-ID: <20180619201458.4559-1-paul.burton@mips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180619190225.7eguhiw3ixaiwpgl@pburton-laptop> References: <20180619190225.7eguhiw3ixaiwpgl@pburton-laptop> MIME-Version: 1.0 Content-Type: text/plain X-BESS-ID: 1529439323-853316-12164-5495-1 X-BESS-VER: 2018.7-r1806151722 X-BESS-Apparent-Source-IP: 12.201.5.32 X-BESS-Envelope-From: Paul.Burton@mips.com X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.194199 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-Orig-Rcpt: linux-kbuild@vger.kernel.org,paulus@samba.org,linux-kernel@vger.kernel.org,heiko.carstens@de.ibm.com,mpe@ellerman.id.au,keescook@chromium.org,yamada.masahiro@socionext.com,gidisrael@gmail.com,shorne@gmail.com,viro@zeniv.linux.org.uk,christophe.leroy@c-s.fr,raj.khem@gmail.com,linuxppc-dev@lists.ozlabs.org,michal.lkml@markovi.net,zhe.he@windriver.com,mka@chromium.org,akpm@linux-foundation.org,jpoimboe@redhat.com,dianders@chromium.org,tglx@linutronix.de,matthew@wil.cx,mingo@kernel.org,arnd@arndb.de,linux-mips@linux-mips.org,mchehab@kernel.org,benh@kernel.crashing.org X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v4.18-rc1. 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): powerpc: Remove -Wattribute-alias pragmas 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 ---- include/linux/compat.h | 8 +++++++- include/linux/compiler-gcc.h | 27 +++++++++++++++++++++++++++ include/linux/compiler_types.h | 18 ++++++++++++++++++ include/linux/syscalls.h | 4 ++++ 11 files changed, 56 insertions(+), 33 deletions(-) -- 2.17.1