Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1433606imm; Fri, 15 Jun 2018 17:56:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJlXE41DYQujzauiCYtQUT5GIToOKwFL3YdHdPqqR47ZUYeEzK/Y9lzEGGe/yoB/OuL4RQl X-Received: by 2002:a63:87c8:: with SMTP id i191-v6mr3580468pge.124.1529110571270; Fri, 15 Jun 2018 17:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529110571; cv=none; d=google.com; s=arc-20160816; b=DI72bhFHbOJ7U7NHZgCz6+Mf1fOinds92moR1fpqzmk7l5xLQbsC2abGkNUXqmTehj HhjyvSBd/MulSMtvFrVhQ6q/Fi5QF+74yLAqDwYzJWKqYezB6UgMCppAeWDea/wzFu4k JUnPltHQQBS63EDgT6OL/LDL2gDk8LTM611Zeo3UihVkHftLi4au2A772BJiRQiGjD7U 4B+icIb/VN5Rhuvlflwv09wYY2bjiO82SXr+hCnQ/mXiLXgAqdrcTSKb9eXBKKiadCLL x+y1H0fTItPe0i3hx24XmCKKVM/CexH7auRc1fUkOpzyBrTCUqnrER8bEsM0Vi/N9chF ADKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=7JIapYaUmYhqEOPhvqS+2WRXfuJgMogQXjxeOQJA6FE=; b=h8A0xbk2wJk4hmzM69he2r20ovtfTt3QBcBtg+3hMTtQtkaN5WkfhZ75KSLHH8X+GA gCXRonyIhmoKSb+luIFZfuuX5uUFft+ZhEFD92gdf+LGaYSgHiVpU8BtYAXBLzoWVap+ xUu3L0MBMZEufVUFA4uHzOYI/Z0/qulpulgIL4C4rgBIO2Bd310W2CKhYu37P+OKTimm NBeNCD4V8FStZWxrMNmlME/Ornj59hDecCAF5sa/UyITo//p+IlU2tX8umWUCp73zXlc sIxbevmVKwoqBgN1jnmK3wrFQrxtaWIl6thYE8grqg9vyhGe6HGA9B0G6aAkep/h5gt6 aZnA== 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 p18-v6si7388031pgu.671.2018.06.15.17.55.56; Fri, 15 Jun 2018 17:56:11 -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 S936501AbeFPAzU (ORCPT + 99 others); Fri, 15 Jun 2018 20:55:20 -0400 Received: from 9pmail.ess.barracuda.com ([64.235.150.225]:54400 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932165AbeFPAzT (ORCPT ); Fri, 15 Jun 2018 20:55:19 -0400 Received: from mipsdag02.mipstec.com (mail2.mips.com [12.201.5.32]) by mx1.ess.sfj.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=NO); Sat, 16 Jun 2018 00:53:48 +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: 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 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 Content-Type: text/plain X-BESS-ID: 1529110427-298552-24821-19463-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: 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 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(-) -- 2.17.1