Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2422026imm; Sat, 16 Jun 2018 18:13:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKqar53YjfANcUJRiW8f9TqONTa1Jmjsa+gM0q7DKndtsZe3KWWkq77I7rcZUGQDAcHC59V X-Received: by 2002:a17:902:a989:: with SMTP id bh9-v6mr8454454plb.245.1529198006659; Sat, 16 Jun 2018 18:13:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529198006; cv=none; d=google.com; s=arc-20160816; b=LYS2cXMbCQ8dnQvYPL4dm7jDMzAsn/Ww6w7YRcnu04PbVOTHk21If+MvK5yWXC4jvK ltqZR7YP55Pc54kSMcOeWuJgPngtVXErZ5njpo8zUOxljCZ5/BAbmh3+KB9p7OHrD97z OLzJ4FCtqxmt91CopIjEBNKHM+9sb5lSA7MUgvNs/53OUEXJZlN7ja2HCk2SIxgogzVh StguitOTTrv+7oXMmr3218afkYlxs02q350BFCw6OKKGJqv1P4eWeTfPDViGDFfxNsH0 UVyZ9zPddQscGG1j8OgqYX6Y+RHs5PmiNO7BPunpjH85GAeKejCbWEmazDSS6M+Q/vX5 ROpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=2W2Gm7K4ZAUFtmPdhaToCIfjNpot7ZNt+wV5jYJsThU=; b=b7cZeE5VpmzN+lgS8GvoqucIm7+8Rg82l90mA0Cdjr+VOQJAOO6XGbIeR2jeQmystc ICIr4XUCkapM8GjIrsQSfxuACvlQDCCaKNCoOiYE3oN12fxVaRTbgGzSBqORUsnYGCK/ vn6KepNbyQbZlNmKKK4fsW17wiB+P6EM5/uN8CeEiDhu3HM9fU/isWgz8+PqPeIfnyZE ilsez6eD+HI/Q8efP8YupWtjMhn+C5Scw1gjIj3LOdWP5ZYEWWz2rQ3j+b8l5Q7SMP3u kit+vYhGckYW3YMYUfwOFwBZYgMKQ51gOycE/fkg4RZEs1hbU3Pc6mXIMO7YTVgdLweB WFPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="r/ZyMo9Q"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14-v6si9213216pgn.56.2018.06.16.18.12.44; Sat, 16 Jun 2018 18:13:26 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="r/ZyMo9Q"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756982AbeFQBL7 (ORCPT + 99 others); Sat, 16 Jun 2018 21:11:59 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36745 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756932AbeFQBL4 (ORCPT ); Sat, 16 Jun 2018 21:11:56 -0400 Received: by mail-pf0-f196.google.com with SMTP id a12-v6so6536972pfi.3; Sat, 16 Jun 2018 18:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2W2Gm7K4ZAUFtmPdhaToCIfjNpot7ZNt+wV5jYJsThU=; b=r/ZyMo9QhC4wKgo9MZicBRk8Pch+hGXZoQNkOU5taSZy/k9pNA0rZ4re5eEWWfGUVm dfqKOtAItBjctRvk2KIFtt10+nKccOTuv8E1HMZHGVE+TGs7Zq1brei84Rsh6kBD0iIv w8ECUnemkKejVWKWFqtt23AiZpiUKcFPjsD6S3Q9rNF5QkNuIQMigZpfZiZVONl3T50K YUcuywhz0dlfz5TO/Rc4GmVgjHbj9DT4BGMwYTQhMVOt+vm6kQ3UsRyUBYKY67WCEC7R VJI2BjzNt+AcKzSqWLFJndtmQd65sz9FwHzgFtgAiee+ey2QSiiqVh0zxaNWcSKDCbj9 P8OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2W2Gm7K4ZAUFtmPdhaToCIfjNpot7ZNt+wV5jYJsThU=; b=KzaLS2UQCBFLaq1mE8/vuP/2UDq6vCreKLV20ZFXGIGzg0BnXdX861SSj/Vhm5mL2I C7bog3kVkHR8QcllcCdVZb9ojabBDT8rpIUwM/5QBZAd76kudNvPLIhwcelTfd7bqiOI EI2YDRoGiEvu86BoJvlUE5Vz1HPGzNMKoeoFC86gBlpMGYWaRlUn7JLIlj4dP3q8CaF5 Cm3zukKbj/PvgIwUKxOUMmuZCb9Avu5Y/y5mUruatbdMu9bz5y/TOUUoDYDM/gDYXsB0 j0EPiH4SwS0sAjcCXO9Tws9RILDdwSUHxzFj2dJuX6l9Gp1ienp8tUt/Sm0078ERbmat kqcw== X-Gm-Message-State: APt69E0i5lXI+pXBiCovEQ4JBb9jCPCvD5LzFBq0Ge0pxeoN2jRqJaYr n4QsjRelaYvKbywLbWNcwYo= X-Received: by 2002:a63:7b1e:: with SMTP id w30-v6mr6238478pgc.402.1529197916277; Sat, 16 Jun 2018 18:11:56 -0700 (PDT) Received: from localhost (g134.124-44-9.ppp.wakwak.ne.jp. [124.44.9.134]) by smtp.gmail.com with ESMTPSA id h8-v6sm13207119pgq.35.2018.06.16.18.11.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 16 Jun 2018 18:11:55 -0700 (PDT) Date: Sun, 17 Jun 2018 10:11:53 +0900 From: Stafford Horne To: Paul Burton Cc: linux-kbuild@vger.kernel.org, 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 , Christophe Leroy , Al Viro , Gideon Israel Dsouza , Masahiro Yamada , Kees Cook , Michael Ellerman , Heiko Carstens , linux-kernel@vger.kernel.org, Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 0/3] Resolve -Wattribute-alias warnings from SYSCALL_DEFINEx() Message-ID: <20180617011153.GA24595@lianli.shorne-pla.net> References: <20180616005323.7938-1-paul.burton@mips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180616005323.7938-1-paul.burton@mips.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 15, 2018 at 05:53:19PM -0700, Paul Burton wrote: > 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(-) Hello Paul, I tested the series out with the new OpenRISC 9.0.0 port and the -Wattribute-alias warnings are gone. Thank you. Using toolchain binaries from: https://github.com/stffrdhrn/gcc/releases/tag/or1k-9.0.0-20180613 For the series: Tested-by: Stafford Horne -Stafford