Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp653633imm; Fri, 8 Jun 2018 03:05:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIknAVwiiC14n5byMTs+vVBHy4ym83WxS0V2tV61x2xVk52x4x9GI/kmp7IpLDk0w/Zr61D X-Received: by 2002:a63:7b1e:: with SMTP id w30-v6mr4696170pgc.249.1528452327513; Fri, 08 Jun 2018 03:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528452327; cv=none; d=google.com; s=arc-20160816; b=U4HAFsMfASjAwjKf76AM6Pe7scyU/2FivsysehGAbwvZtM3gkr2330ZHX+rtsSzXLN W3QNLzZ7co4Ufm288lzRCq9LeiiRMZz1XUCeJhNYjZsiMvASoYpA0yYZVrv14x21aLjd f8lfcBGeQgO3TPVUZOeHGJT1UMB7pJ/EQTrBV0/oo1Ux9WaJcgIX+fhK0jts0aiSVuK9 LR4C2ajR+46P2W987ROavzX2Ji2knuXTooP8B3PD9IQs8gBJsfntN9IXMNRNQYID5suB 1POLwrpwDt1v2e3uZj6ty2UX8+XoeGJ4gC2bfQ6I3gbD8qMgjsw68ITOoLzG1fcAduWq oiaQ== 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=jSVFmCIstgxTvIHeeh5jFL/irn6oLR3YhxJmL2f5rug=; b=If6sGbuC78Qp5QRt4EHGnm4aEBGTzV/kSfl8exySLxExI0uDM3jZjjPdMVwhTPyhq+ 4vS/DDUb22QD0CUp/AZsfDCsw9ABaQYwh26ZmLs6LjscubKR3bP0ypqwE/0Ytl6vSsSl QAJ7u0k74b2CYQuwlc/XmWOqkIZs9kOyFI8f1Hqnmd2UvlFRvrXfGBc21CIY8B3MxZXB PudmjMDDhpY8cayj1OQuag2Lvq43/CEjOKPj7j4jsaS9CvfMW/V300ynZOnkkfoTcNrx AgmV3kNZoxcWY4PRdyWW1VtqnpnpdCo0+eZHvQrVPEEhAIPRBvJoxuzkhtATslgdEL2u 0lnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZZeVFd1c; 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 a4-v6si6323247plm.14.2018.06.08.03.05.10; Fri, 08 Jun 2018 03:05:27 -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=ZZeVFd1c; 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 S1751643AbeFHKEl (ORCPT + 99 others); Fri, 8 Jun 2018 06:04:41 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:34985 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751171AbeFHKEi (ORCPT ); Fri, 8 Jun 2018 06:04:38 -0400 Received: by mail-lf0-f67.google.com with SMTP id i15-v6so8882515lfc.2; Fri, 08 Jun 2018 03:04: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=jSVFmCIstgxTvIHeeh5jFL/irn6oLR3YhxJmL2f5rug=; b=ZZeVFd1c+NWMvMya6uyvfCYAe9B6kMrTslF0AU8F34F4uDS7UM2cIx1Bt+L/b6V9QQ YitlC/e2P783278kOP0NnOp0zSwdGQFUzYZxitPuSjaZc9k2SM5Lgirj2Rp7pmwMJECc oTZyD7PPriKOJGoi4lH1Ymch7BybZcCBTX1g2/6P3lPhvbBBcfAf2e351YQE+ad56ORx b94aqKHG8yVcCLZU7cRkhsJEV9PYQKnV2NA/evXeuVF1TwTAbc435bgmHYu5kzEKpJra 0hS7baYtS0aszS01anR/hK+EpTzgZqJUtJKwmo+bm1Y4zFD/vx8NW7oL1qHPy9M1Yxpg j1UQ== 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=jSVFmCIstgxTvIHeeh5jFL/irn6oLR3YhxJmL2f5rug=; b=SH+/AbFKep37xd4toeZgBAaT7MI2XnugW/ZPvG3zATaXGEyt06xJIgtyjkYc9IPqOf RjNTGsWsIkV0KmIwTKtv79UQe6JXgAjKUBzrUFrwR+lKdh0+SQQr+QwjZYRnlG7Duoxy pxLJi6fNfgDMA4KdApKSmBSHvzStAwlrzRCtuMvpl95bEoa7gS9FSiyEUR9cDzadOj74 jw8ZgbuzlVPoS51EEb7HlTpIAW2StsFB9HqV7uacHBKDdm113QdgqJ0RCs9gs4npK2V9 wJ4GDuSZYvw6HEjoktFRJvXl4JqC7YHMv1rYS0Qt1eWYrLdEG6X9OWUxU9b/mJSAAaOW 1E6A== X-Gm-Message-State: APt69E3/p15hsGTfYY7vtk9FRPegJ42q4dk9tnDLT9tFvCqMAgsIaDl+ kpuD+nWjfmB7gTKBoTZc2GRuMvxnsx0PgshdNJM= X-Received: by 2002:a2e:994f:: with SMTP id r15-v6mr3947319ljj.53.1528452276678; Fri, 08 Jun 2018 03:04:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:b87:0:0:0:0:0 with HTTP; Fri, 8 Jun 2018 03:04:36 -0700 (PDT) Reply-To: sedat.dilek@gmail.com In-Reply-To: References: <20180607204927.219329-1-ndesaulniers@google.com> <20180607204927.219329-2-ndesaulniers@google.com> From: Sedat Dilek Date: Fri, 8 Jun 2018 12:04:36 +0200 Message-ID: Subject: Re: [PATCH v4 1/3] compiler-gcc.h: add gnu_inline to all inline declarations To: Arnd Bergmann Cc: 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 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? 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. - sed@ -