Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp794247imm; Fri, 8 Jun 2018 05:30:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKr7gnuO0GCL5MNnRtvqbnf+hKFRjcid7OZMbW4DejSFUPQ8WNRJG5OKJnc3rn/1yQFsq5J X-Received: by 2002:aa7:8004:: with SMTP id j4-v6mr5818871pfi.174.1528461022657; Fri, 08 Jun 2018 05:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528461022; cv=none; d=google.com; s=arc-20160816; b=fUTH/4v8T2F8b1omO+ZmB8BkoIKJpJHaPc0A1eKmloNTmJy+tKIcV9lR3+Y+/Q122r S6eO7uKbjtgRs2MBXKhas+CF5ULi9XNzxfmbkGlElHDx8dc9jH4VEjnNasMEbIbvL29F l9IC0UmWpc/u0tHMRZDSOnRBllSMMlsvpXQqWmXyNZlG6tCSZzXb5KIaJOGwGiWZ7SBa hhCgPpXKUzq3yehPTYXe7NR8hdhIl+66vDET9RxL9fOUvMZJckX9CEOkvm6q6v4riNjK ZEHuRRI3BAbAV6q3iiX+2cxB1G29UZD/mid0XWxWHwv1idf91Czh5Ro8TfVhAkKrmWhb 3oJA== 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:reply-to:mime-version:dkim-signature :arc-authentication-results; bh=CExVpsBKFlsJ3vlrRafg6ObeTjR62HPpf44UBNaUy0E=; b=nC1OK5Xv3+4G3YSd1rR0ygrbRuelpHJt6n+pDXuNrev/dsaJHUuOvjBgLY/3+Md51I 5nyrQ+jU0YGnZMzsseeeHY29x+8uq5jJ4bebzNQg7fXrD4bgfFjAe5FB3tOkcDO3Aw52 EwVy71kzDX0R+GaX2QESyTrBD+4xOCus2O6DSRiagYdve/+fP/4z0XBlqZD8JBJsFvb8 bKu68AwCbRIidX/L7dtsFQSbWP4eaFDI6YO3fvMLx8rq1v1isyqBLQ7LrfR7wb+fTv1n s3ZOYx9eJ5K7E4SWk3W/hDEREVsIr6OzPev573DSgnRfDZ/QWaaQiwKK9HiJX0Na/PXc TvXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H8V6NSL1; 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 w25-v6si14539633pgc.628.2018.06.08.05.30.07; Fri, 08 Jun 2018 05:30:22 -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=H8V6NSL1; 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 S1751604AbeFHM3k (ORCPT + 99 others); Fri, 8 Jun 2018 08:29:40 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:41211 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751220AbeFHM3i (ORCPT ); Fri, 8 Jun 2018 08:29:38 -0400 Received: by mail-lf0-f68.google.com with SMTP id d24-v6so19778781lfa.8; Fri, 08 Jun 2018 05:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=CExVpsBKFlsJ3vlrRafg6ObeTjR62HPpf44UBNaUy0E=; b=H8V6NSL1Zi3QckkuLaP/o9KOyvMHqvw2EoL1tJbNcCTY62J0lWtV+b8bSRFzcmpw3A NvW1x0u0SRuVAZYper+0cL0z1773oPtrR3ehzwIt6NWqmad24tmsKtx+N5RtvkorSn+f r/KITb7mG+2lEoAz/AQCC7zDf0ww6bU66MI/FBaOhRs+hi46My50Ko0fAI/N/TZpypp/ j3y9ADH6s7r3FwSiZFjaObg6FiAJdDTrnEcjYfwkaoTiNKkQg6VPE2G4i0u9xNqimXKi IG+iSLP1pWn3KIOqVghe8Yqk6wY6MylDHLUIctlTlyLwIz0GQzFudLA81eFHWJSvMaqJ XHzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=CExVpsBKFlsJ3vlrRafg6ObeTjR62HPpf44UBNaUy0E=; b=fOw1l2vvey2Jl+/YKYKrZTg4OBhPu0CBygNUiJPp6jxEyiDbysuJ7RLiKiow9BSy9O XiSNZms98HGEOhGZCxKM7WzXNvdrikdb92ojgfsIh5vSq0cmRO6zNHiM/LpU5xmFITOh U13ZU+vf4SW4hq1SqUafrGgAjbzpJ17+jwu8xnTUiDxZD7m+r8UNlhXVkHJu0tB3ihbC keddILIMf9C4g7UtaY/rihugVZwdC5sYcqDdg8RMccljL3CZQnG8wEA4Vlo/GBD38Ind pI0fHf56rgkTplG89Mab8CVH/HyugdX1YNua5feo3ecVYLbPgIF18JT/rPnmoxufSykQ haiw== X-Gm-Message-State: APt69E1LPcuItzCWxadVexoOQLyffpG/1gfXcRxp1zql3Z+N6NGpVWl5 rIyeC5L89JKvFCbroPQMWR6Px7YYUNfMpoAQIAw= X-Received: by 2002:a2e:8257:: with SMTP id j23-v6mr4320251ljh.1.1528460976426; Fri, 08 Jun 2018 05:29:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:b87:0:0:0:0:0 with HTTP; Fri, 8 Jun 2018 05:29:35 -0700 (PDT) Reply-To: sedat.dilek@gmail.com In-Reply-To: <20180608112826.GA7484@andrea> References: <20180607204927.219329-1-ndesaulniers@google.com> <20180607204927.219329-2-ndesaulniers@google.com> <20180608112826.GA7484@andrea> From: Sedat Dilek Date: Fri, 8 Jun 2018 14:29:35 +0200 Message-ID: Subject: Re: [PATCH v4 1/3] compiler-gcc.h: add gnu_inline to all inline declarations To: Andrea Parri Cc: Arnd Bergmann , Nick Desaulniers , Andrew Morton , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , linux-efi@vger.kernel.org, Linux Kernel Mailing List , "the arch/x86 maintainers" , virtualization@lists.linux-foundation.org, astrachan@google.com, Manoj Gupta , Greg Hackmann , tstellar@redhat.com, Kees Cook , Masahiro Yamada , Michal Marek , Linux Kbuild mailing list , Geert Uytterhoeven , Will Deacon , mawilcox@microsoft.com, David Rientjes , Arnaldo Carvalho de Melo , Philippe Ombredanne , Andrey Ryabinin , Kate Stewart , Boris Ostrovsky , Jan Kiszka , Steven Rostedt , "Kirill A . Shutemov" , Ard Biesheuvel , akataria@vmware.com, Brijesh Singh , Cao jin , gregkh , Jarkko Sakkinen , Juergen Gross , Josh Poimboeuf , Matthias Kaehlcke , "Lendacky, Thomas" , Thiebaud Weksteen , mjg59@google.com, Joe Perches 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 On Fri, Jun 8, 2018 at 1:28 PM, Andrea Parri wrote: > On Fri, Jun 08, 2018 at 12:04:36PM +0200, Sedat Dilek wrote: >> On Fri, Jun 8, 2018 at 9:59 AM, Arnd Bergmann wrote: >> > On Thu, Jun 7, 2018 at 10:49 PM, Nick Desaulniers >> > wrote: >> >> Functions marked extern inline do not emit an externally visible >> >> function when the gnu89 C standard is used. Some KBUILD Makefiles >> >> overwrite KBUILD_CFLAGS. This is an issue for GCC 5.1+ users as without >> >> an explicit C standard specified, the default is gnu11. Since c99, the >> >> semantics of extern inline have changed such that an externally visible >> >> function is always emitted. This can lead to multiple definition errors >> >> of extern inline functions at link time of compilation units whose build >> >> files have removed an explicit C standard compiler flag for users of GCC >> >> 5.1+ or Clang. >> >> >> >> Signed-off-by: Nick Desaulniers >> >> Suggested-by: H. Peter Anvin >> >> Suggested-by: Joe Perches >> > >> > I suspect this will break Geert's gcc-4.1.2, which I think doesn't have that >> > attribute yet (4.1.3 or higher have it according to the documentation. >> > >> > It wouldn't be hard to work around that if we want to keep that version >> > working, or we could decide that it's time to officially stop supporting >> > that version, but we should probably decide on one or the other. >> > >> >> Good point. >> What is the minimum requirement of GCC version currently? > > Good question ;-) (I recently had the impression that > Documentation/process/changes.rst was making fun of me ;-) > > >> AFAICS x86/asm-goto support requires GCC >= 4.5? >> >> Just FYI... >> ...saw the last days in upstream commits that kbuild/kconfig for >> 4.18-rc1 offers possibilities to check for cc-version dependencies. > > Good to know! Mind retrieving/sharing the commit id(s) > or links to the corresponding discussion on LKML? > Sorry, it is not yet in Linus upstream. see [1]. Documentation: kconfig: add recommended way to describe compiler support kconfig: add CC_IS_CLANG and CLANG_VERSION kconfig: add CC_IS_GCC and GCC_VERSION - sed@ - [1] https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/log/?h=kbuild