From patchwork Sat Jun 16 00:53:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 930298 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4170QV03Thz9s2R for ; Sat, 16 Jun 2018 11:39:30 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mips.com Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4170QT5zwqzF0dd for ; Sat, 16 Jun 2018 11:39:29 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=mips.com X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=mips.com (client-ip=64.235.154.210; helo=9pmail.ess.barracuda.com; envelope-from=paul.burton@mips.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=mips.com X-Greylist: delayed 922 seconds by postgrey-1.36 at bilbo; Sat, 16 Jun 2018 11:26:11 AEST Received: from 9pmail.ess.barracuda.com (9pmail.ess.barracuda.com [64.235.154.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4170776ZjdzDrbK for ; Sat, 16 Jun 2018 11:26:11 +1000 (AEST) Received: from mipsdag02.mipstec.com (mail2.mips.com [12.201.5.32]) by mx1402.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=NO); Sat, 16 Jun 2018 01:25:51 +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; Fri, 15 Jun 2018 17:53:59 -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; Fri, 15 Jun 2018 17:53:59 -0700 From: Paul Burton To: Subject: [PATCH 0/3] Resolve -Wattribute-alias warnings from SYSCALL_DEFINEx() Date: Fri, 15 Jun 2018 17:53:19 -0700 Message-ID: <20180616005323.7938-1-paul.burton@mips.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-BESS-ID: 1529112351-321458-31608-22525-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.194099 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: paulus@samba.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org X-BESS-BRTS-Status: 1 X-Mailman-Approved-At: Sat, 16 Jun 2018 11:33:05 +1000 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mips@linux-mips.org, Heiko Carstens , Khem Raj , linux-kernel@vger.kernel.org, Masahiro Yamada , Paul Mackerras , Thomas Gleixner , Ingo Molnar , Matthias Kaehlcke , Kees Cook , Arnd Bergmann , Matthew Wilcox , Gideon Israel Dsouza , Michal Marek , Al Viro , Josh Poimboeuf , Stafford Horne , Mauro Carvalho Chehab , He Zhe , Douglas Anderson , Paul Burton , Andrew Morton , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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(-) Tested-by: Stafford Horne