Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp731852imm; Fri, 8 Jun 2018 04:29:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ3kH2p6y5MqqbAgK1gwe0X13XwC8AlSrLgwBrI7A2qKcujZQSzYU+XEngSTYHNYrFaC1DN X-Received: by 2002:a63:7b07:: with SMTP id w7-v6mr4753001pgc.199.1528457360871; Fri, 08 Jun 2018 04:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528457360; cv=none; d=google.com; s=arc-20160816; b=Dp1qyvLK4Yi0U+Nr380FHkVJnq5W1Kght0jI5Oh/bovjdQ2EUWctd/8utNBVm5xDQW peBgXsWWBZwB3/RktCfWZatnwMH5dttZOejQITwzDh/hSdrsPbqJCT770kED+d9cJt3/ TaTbztiEVRGg/rvrrHfg2Shnhh3XNagnK+nbdcGQV/RjZqX+WjUbAV2I2ZD1VxRKDTrw w7HqASBivrHoBFvAulGSaDax3I2h9OoHsHPBwqv0n1juMedFYKBVy2TBHMFNzsKjf6sL 3rcpvF7mgmcR4P2MpO6VXJXhTLBKWxiJs995v8CwpkSYDMbC65x2Mjdz36MANjwZZJ14 nMPg== 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=m+6alswFcWaGbit5bjpApTQ0eoFkRWLFw92lGqyVEzY=; b=w60yDAH45O2x/WOe4K71bm7jhA/uoVPCD6lvOZLSBdnSZTeLBfGAM1qextqh3OcrIU juZymeyxzshB8epmFoZsX3hNaOMZjApdOJBUKyln9VuU1hOTLUl5JtjmywPHJzRgW+mS WyENdSAwh7IJ8eB2KZ0khU8Hpeh+y+w63Jw/WyfhF6Rx8Kr9QYTyca1YSv3CC8ejt8yf vAnl2pUF7Ft2s/Vn9MWh00l4c+8ky+ckTA7LR10936WomlWBpzQ/oU+X8dbxJl++55Pr RgO/fpBOiGxczE/C3M237Hk9+OvfrMD61JXHsxZVVs7G3mHbeq3IjAAH+LmoZ8dj+iUo NeHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=l69mvJZg; 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 m4-v6si54638673plt.561.2018.06.08.04.29.05; Fri, 08 Jun 2018 04:29:20 -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=@amarulasolutions.com header.s=google header.b=l69mvJZg; 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 S1752357AbeFHL2j (ORCPT + 99 others); Fri, 8 Jun 2018 07:28:39 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:38105 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751413AbeFHL2h (ORCPT ); Fri, 8 Jun 2018 07:28:37 -0400 Received: by mail-wr0-f195.google.com with SMTP id e18-v6so4782815wrs.5 for ; Fri, 08 Jun 2018 04:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=m+6alswFcWaGbit5bjpApTQ0eoFkRWLFw92lGqyVEzY=; b=l69mvJZg8CMcziYukhJGxuiq8ysnmxolMGdrqKe+171ZsRNR3Wkse0IUMFZwg7gQsH wXp2t2qjTdhUG5RUVoxkfydMSbhsyPe8QZTMBnynNgLKXTXiEC05IKRV0hujjRaH+nYw pgj4xzJ8DRYZbOQEnxnnuruhXsscoTUrd5G+8= 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=m+6alswFcWaGbit5bjpApTQ0eoFkRWLFw92lGqyVEzY=; b=CjskLH0s7JI5MI9JYvo9W47nePxsrOmCqV0nvow5n2KySDMfDTChD2lxQl6UJYoQUQ rDPP7sbEourxQpgCN6VFS2VuiGd8huHOaewNNPq0AZgQdLp0pODa7rQUPyTUB3lPm5G2 fOMKWVjqE6U6cCWDha6W1zXfgoFrsX/HfueN+9J4BlPtWYCMumEnXqe/1ft4+fSbV7+y wJRnWnFrJBsdMpiEahwp/xKt2zLZfuqCK2MYMmM1oamn/cY/RK1+CDpACJecG/BQA37t zM1HFeJCEImWfsYTMQNKP7TpJ1O2Mq38ah8KMKNaqTLYty21xEhmWqzCGUIGk0kyCdUP DctQ== X-Gm-Message-State: APt69E0zNApYhfunBDv6oQSZRWyyrn/VauewAWqMoxsqME1ZqHZ7IVvk tsMwspMWTF/MLAGIT08IxFS65VESptU= X-Received: by 2002:a5d:4906:: with SMTP id x6-v6mr4750597wrq.66.1528457315759; Fri, 08 Jun 2018 04:28:35 -0700 (PDT) Received: from andrea (85.100.broadband17.iol.cz. [109.80.100.85]) by smtp.gmail.com with ESMTPSA id t1-v6sm1407045wmt.40.2018.06.08.04.28.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jun 2018 04:28:34 -0700 (PDT) Date: Fri, 8 Jun 2018 13:28:26 +0200 From: Andrea Parri To: Sedat Dilek 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 Subject: Re: [PATCH v4 1/3] compiler-gcc.h: add gnu_inline to all inline declarations Message-ID: <20180608112826.GA7484@andrea> References: <20180607204927.219329-1-ndesaulniers@google.com> <20180607204927.219329-2-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks, Andrea > > - sed@ -