Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp550377imm; Fri, 8 Jun 2018 01:00:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLTh8FB3tuoUcXrgrOL4mKG9X6D8Rf/5+wJrTCrXGiHy7D2kel4acxjN2Axkh5XpicWtf41 X-Received: by 2002:a62:221a:: with SMTP id i26-v6mr5006898pfi.240.1528444836861; Fri, 08 Jun 2018 01:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528444836; cv=none; d=google.com; s=arc-20160816; b=Y8dVg0qm2a/Of34oot8OBoLLmbKjcYYQsS84BujzObzVb9tV4TpxrzEJWoxDHHpuGw 8xxSX4lVDo0ZiS/DZFmulounpk3fpFjtszk/mJG8wy5G2lnfct3ZkTXxJ5mwF0XYbV5m V8V5bdMV3rNGVB/APIbcCeJf3U8XbzCy1nnyamexJmTuZJMr7J/DQPas4E9BD20xAE5g S7uF1GusJwKikjQw5NyR6snKNhPABmRTzHHvaAqMCdvlzk82MtB4Jrl7udATMfz+PnpD 1hLkZBx1O5yilzQ3nh2LqwmpbAcLZ/fmMNS92PzCr9bmlHZAKr/2scbv/vv/M123Wy6o b2Wg== 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=c9DCGq6F6/aGX0s9sD9bjpX/SvTHtx05rXottLKSBcY=; b=wadcan2Jbmh93jw3+0MbtfH8Fl6qvHlcTnZOqdw+FsB67Ap8ajlWCWu2qt9xX2AuCc dQi9NegP2NPH17Veer68INPXp2aDghodatqtDf/XnHNO2ERc07dV9uy2tFBxbz23M2+g U5Xgemf4JKyECIhiFQp1VbCB3gsgWkDx5oTX7BhCIGeID38PaJ68LZ7hQNyd2sgFmQRL K5sMJKIu2wnOfYQJL05KYgoVkSo3WbpCoAakwPFglfKVG+dhJh2tUXqKAC/LOBTnxKwD Qdv4/jWOGT7Br4E4LsmT/7aF8sc5aOt2gSuj4Flcz2HZGbJRXmZrEHhZdtrws40dce+r x+zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=d838tQWi; 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 w23-v6si12523993pfj.144.2018.06.08.01.00.21; Fri, 08 Jun 2018 01:00:36 -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=fail header.i=@gmail.com header.s=20161025 header.b=d838tQWi; 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 S1751504AbeFHIAA (ORCPT + 99 others); Fri, 8 Jun 2018 04:00:00 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:42978 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751021AbeFHH76 (ORCPT ); Fri, 8 Jun 2018 03:59:58 -0400 Received: by mail-lf0-f66.google.com with SMTP id v135-v6so18655092lfa.9; Fri, 08 Jun 2018 00:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=c9DCGq6F6/aGX0s9sD9bjpX/SvTHtx05rXottLKSBcY=; b=d838tQWiAWp2sxNsi9gPNVR6VHDnOyV0k4f55+vbZDWkwWdK3Qz/pEwUlNpdvlt5Rm i5Q8Ac8smme5/xtPeHWXNlm6WDzfruN81zP2KtgXv0+oNJZGO7uJPFfCEIUe42aenfCU 9l6jEbKWhItaEJxco8cCAQRR4+Vjugi6Ooiu4ZkX01CYkoMW4OhnHOYdre71cfCm7Hz5 b/muhlo+hyZ7lb3odBNLICwQDzffEWtam6T2ykb39ovB8gHAQo9XZhtuDJbVIh4JW/1u jSTBxo/pIajSEgdKcEVjq4zxVgec7P4IPZk+QwKMzm2RePgUjQ3AZLQugPcwCEL8M93r R1Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=c9DCGq6F6/aGX0s9sD9bjpX/SvTHtx05rXottLKSBcY=; b=Ey9h3KfvPyZ8elloHgEpUUdzAlt3DN9K9GwT8wQYIXnOEZjB9FKhsGEbK7XEa4uFZt ZFDxJOJwMgS/k9ssQAchalOeCsXgcBLKctHfpCyHz1MeDsvMfZO6PX/LFFWtmihPYYy1 UWFWtV0fxqzAvbV3p3enAUOXnAHy5mGcQ1om5gVr+kmNBSRmeG92n0z3PtGJBzRWQMsg QvAC1BTIfpD0TBpuPzjFCTQT/kkdTYhVftdkUjv445Gf4iUIgpw/M6DLY6XPrLzJpGcP kjni4TfT7g+y1gt8MNgzf4yYhw0pV40ft7EItm8DUWz01zPd5/4LmSMvqXHrZnMCArkm zLHg== X-Gm-Message-State: APt69E20YvfEzxrXF8HCf1s6P7wHyRoHD6IyiTFqQOpHezSLuM7R5a9p G/2ohjm1tErwmX2zgrRmmVz7wMgQ4KlQmETJicc= X-Received: by 2002:a2e:401b:: with SMTP id n27-v6mr3876572lja.6.1528444796678; Fri, 08 Jun 2018 00:59:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:56c8:0:0:0:0:0 with HTTP; Fri, 8 Jun 2018 00:59:54 -0700 (PDT) In-Reply-To: <20180607204927.219329-2-ndesaulniers@google.com> References: <20180607204927.219329-1-ndesaulniers@google.com> <20180607204927.219329-2-ndesaulniers@google.com> From: Arnd Bergmann Date: Fri, 8 Jun 2018 09:59:54 +0200 X-Google-Sender-Auth: gTxtcVH0sYeduPGyrogXx2Z_0OE Message-ID: Subject: Re: [PATCH v4 1/3] compiler-gcc.h: add gnu_inline to all inline declarations To: Nick Desaulniers Cc: 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 , sedat.dilek@gmail.com, 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 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. Arnd