Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5097618imm; Sun, 26 Aug 2018 10:39:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdblOwD6D1phdT2qdJ29DdZp2jgkOPfOk455f4mM66Oc3fubOTIdauRdzx3WQLH8LGbkm28E X-Received: by 2002:a62:ad9:: with SMTP id 86-v6mr10800095pfk.57.1535305150235; Sun, 26 Aug 2018 10:39:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535305150; cv=none; d=google.com; s=arc-20160816; b=UwlO7vi3p18b/HTotz86pyMivzGkR4S9DKVvloInfm58SlQl6PpsVMjlKyerV3mhQp unlZpPUDcXiA1iLFwAjFum+Fz/0MYDZW7Qh0g+Nvr2/V0mZC4qOtpQx3XD3DfSE7/PEE wzVoqfiGwqBEdjSBNSFyxOG7ajF29UjpxH0FWjnYFzpV3C94VJSMdCGL1Rf1KEMiC51j qLWN/t4pdhAz0khnH/NLkl1mMHigNF+C4HEj74bVqX72xNWx5A84OVl1b95wp7VthMts K0QNpCh0dnCnW9R05LeB5Cc9BMBCoDtTPwWEJkJ08JKgxsDuLXDj9E9csCN1xTcZXJbu Zr5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Q3iLmzfgI4gyPLnAI7B85bMTJ1nidi/SfqCTtfEPIak=; b=P8U1Gb4sTy/fcOLjZ9469t79R9khXbxeAHDKUVdfVnWigJeuXJj1hcPa61UEX3mvYL T+rPN1Cjq20dPj9lLSJPs94TKuIpDAxRuC0Jc63B3geqt+hsWWTZTTXZh+wfr4ZneS/9 5YYZRpgrDR7VCbGPUUuGTZAbljOlMXwoJSPPxE2ok60T2jrekPxbxdJlnUT4FrZRTeu8 C1BH9+YSClvFBwKA2FUJmXMaGOlGmlP5G0lL89QgKj9P4AWtYa1GMegb+qyKmJ9St15h ZQeuPWS2nfH2+qx8EAd2a7q9QtjGPyDn7xsrnSi5h9dVzapk2UE1K/C94/drhZSuGi2I CmBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m6Odh+Sb; 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 bj4-v6si11522341plb.119.2018.08.26.10.38.54; Sun, 26 Aug 2018 10:39:10 -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=m6Odh+Sb; 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 S1726809AbeHZVVB (ORCPT + 99 others); Sun, 26 Aug 2018 17:21:01 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:45209 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726643AbeHZVVB (ORCPT ); Sun, 26 Aug 2018 17:21:01 -0400 Received: by mail-qt0-f196.google.com with SMTP id g44-v6so14883840qtb.12 for ; Sun, 26 Aug 2018 10:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Q3iLmzfgI4gyPLnAI7B85bMTJ1nidi/SfqCTtfEPIak=; b=m6Odh+Sb8QU0dsV2Ddb+C7McHe1EBv1b+f1lexMuASHYZeFrYYYm/5ysOBAB5WifYI 1fBGNeyv3vM8fK6NCV7QZq1iARFw5EBy3FvQ4Ky8xDAa8fTfnMKfd9gvZTePcNLpv4th mBbZIb/fPiuSTmde6wuuacGuYjXp9ONQ3/U6Z38yj7lQW5NGHFoH+ZaSm55xkSJhAyqr 1VwoeKQRZ0XKUcN42OtpA2g8GQp1eCzD0UlB45TsI5kYPrACc6YT8vGrKLVtfrWQ5+ZF Azc/l3aJjQ6t08pTAwOZSZZarIqDxsknRfzksVdX0/voFVYVar0W/8laQ2G6R4snl180 2Ofg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Q3iLmzfgI4gyPLnAI7B85bMTJ1nidi/SfqCTtfEPIak=; b=c5Ces4/VOkCqlLSNYSWmhbUEfTzhFxaq9y5KcUbgEEg3WlqJYTpshhGw2KR1Q3f8N+ F/bXuTej+Z5DP/mDHixJLJuJCjUJ+IZDkqG0/910fk5NOYgR6jmfVhQOBUxNk3qrrfJa 3kV6FSe6q7uS93iVRuDkXr86IxaZRFKjGVDo9fEEWDaUsqukGKcM+1DV2ZjwMg18y6l9 U2R0lBU1YyMzLE5M9lopbssaY9K1u6aCiMFQ8yXsT0DWUIOg/wVGiCWBM1PW0dPRgp6f IzABhc2Z1hMk6yf3SeHNGnFXAr4B1eEHOQXqKRNFoaSKQoc/cSqowyRoOIyq16mhkucL 4muA== X-Gm-Message-State: APzg51C/cjROURms2cLTbeTZjCKT2yjv/FEgPrWONAXDJTbVXxjwIGCg 1jTibxlz2kRckvhpTX52skQrgdUrIj62nrNZcww= X-Received: by 2002:ac8:304a:: with SMTP id g10-v6mr10894380qte.136.1535305069053; Sun, 26 Aug 2018 10:37:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:471a:0:0:0:0:0 with HTTP; Sun, 26 Aug 2018 10:37:28 -0700 (PDT) In-Reply-To: <1be357c91f6469c7a9b0e857fd15bad30347fd09.camel@perches.com> References: <20180822233724.110454-1-ndesaulniers@google.com> <20180823002508.GA822@nautica> <1be357c91f6469c7a9b0e857fd15bad30347fd09.camel@perches.com> From: Miguel Ojeda Date: Sun, 26 Aug 2018 19:37:28 +0200 Message-ID: Subject: Re: [PATCH] include/linux/compiler*.h: make compiler-*.h mutually exclusive To: Joe Perches Cc: Nick Desaulniers , Kees Cook , asmadeus@codewreck.org, Linus Torvalds , Masahiro Yamada , Jonathan Corbet , Arnd Bergmann , dwmw@amazon.co.uk, LKML , Thomas Gleixner , Will Deacon , Geert Uytterhoeven , Ingo Molnar , Andrew Morton , daniel@iogearbox.net, "H. Peter Anvin" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, On Fri, Aug 24, 2018 at 1:31 AM, Joe Perches wrote: > On Thu, 2018-08-23 at 16:12 -0700, Nick Desaulniers wrote: >> On Thu, Aug 23, 2018 at 2:19 PM Joe Perches wrote: >> > >> > On Thu, 2018-08-23 at 14:03 -0700, Nick Desaulniers wrote: >> > > Not this case; it's how we get gnu89 semantics for `extern inline` is >> > > not compiler specific (therefor should not go in a compiler specific >> > > header). >> > >> > It's not possible to know that compilers support what >> > __attribute__(()) and at what version that support >> > exists unless it is specified somewhere. >> >> __has_attribute: >> https://clang.llvm.org/docs/LanguageExtensions.html#has-attribute >> >> The release notes of GCC-5 mention __has_attribute. >> https://gcc.gnu.org/gcc-5/changes.html > > So not available in the now minimum supported gcc 4.6? > We can workaround that until we have 5 as the minimum. I have tried and the result is quite nice. Sending the patch in a few moments -- compile-testing for a while allmodconfig on both 4.6 and 8.2... Cheers, Miguel