Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp32978imm; Tue, 5 Jun 2018 14:30:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLtaQ1IV3JQTJMJ64R+WgQMDolWwTv5yYNJUA8w/XmZtD9WjcauDwGBA/JDKr7mDNISVW8L X-Received: by 2002:a17:902:bb8d:: with SMTP id m13-v6mr332792pls.46.1528234210235; Tue, 05 Jun 2018 14:30:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528234210; cv=none; d=google.com; s=arc-20160816; b=f8iB4nHd4fAEFMyae5mb9NjHBSqLVjLHkkIceaiTwlKFyN1JKM5LV2jS5O+cfydO6r uU3QsDJdckhohdSPaCSO97geCG5tyQWNFhD4nxoGDv/sOoCMz+mwR3ZRJkN0kzkSPGYX +YjnW7eG35I1EUYfdZbFCjmZ/w57hgyIEtGExgLwNeUwQrAaERaZvfVotPIkkHH9VHMT 1gBxo3+C/7PZUtjCaId3PeKRjDn5LBMqUAuH1cieOStr46mPA0r9JzmEAOw3lkzzS0LO ndVE1x5IU67MI940/l/JfBeXp5Nhmh5angyf51Q2Ab2f8L9vqFo3mNGVugpe3nLu/gPp JdwA== 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=NpoU9/9wxx7DZEgv1CT8gSC9lzGxbe4Ek0gPPaMrHDE=; b=vfR8Vp+ZF9g9PJaX7t6st8cMN5vnDh7yOYtTxbG1BL/9i0UZFsDamBPaScU0jnf0TJ 7cLLoIckhudh1j8s7wTak6iI/WPTRGoJo9kfkzfBKIbstCFAbbYBUL3GN0YjZr7+jUFU T/c9xn9yTT5F3gKw3oCX77ZUgx+gH+V2atwdmIZQLqBLSeAtkkwVQ1ptbW37NkEHkaFA XNrXpHxQCr4t5n85mOZ6DI/92XCqVcKzhraen+V37qBVyooCVnFE/uUdD8iATYoxKYS8 tjwnIN4G4VqvLGhfL8D8hZNAdFdfdjJSSzNob/041P0bFad9Yq7igZf3JwiqCk1W6Fgc +zKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=a5cjcaTH; 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 d10-v6si12766623pgu.626.2018.06.05.14.29.55; Tue, 05 Jun 2018 14:30:09 -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=a5cjcaTH; 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 S1752635AbeFEV3A (ORCPT + 99 others); Tue, 5 Jun 2018 17:29:00 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:40054 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751819AbeFEV25 (ORCPT ); Tue, 5 Jun 2018 17:28:57 -0400 Received: by mail-lf0-f67.google.com with SMTP id q11-v6so5842318lfc.7; Tue, 05 Jun 2018 14:28:56 -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=NpoU9/9wxx7DZEgv1CT8gSC9lzGxbe4Ek0gPPaMrHDE=; b=a5cjcaTHlmtfxlAADdKRa0+mdB4SydE3RRPHAHMDYVqpLZ2tE8X6HlChQSb1IPKIUH JsiwvOT9PAlmVw+SIlL+c6Q+ONV3SP3wuWnf3K7YoI70cFeM5xlR18Rir4zQukfju/iA DRSdp8bmrcEoDblRVPHTvncmBSSQ+hw5+Gz5788HDlvzy6teMmirM6n0sPsWJBjWGWpY pp1hyoymEsOWFXdG9fXCLWWW3Gk57WOueKUmDavRrQSYiD9+A47ZCE6hjFoG/ZufI/1Z xLa5xWkgw8/ncSmmsKOjHIDV3SyvEt5C4JTM6/yF05WqRhklHoqX77W/dnOFZ90qnEKV cTeg== 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=NpoU9/9wxx7DZEgv1CT8gSC9lzGxbe4Ek0gPPaMrHDE=; b=aBPDvhLN7xUwDqQnGOTPWjfJzTPe2n7zilGFH8FSjBnvD90LnnJZYO/zMLdQJgqjn7 8lqX2/5mXdUsD54exUkCI2zYHh53JfmN0vbkw93v00a+OFhMmcHhyasmVde0XkN+2qaA SgpNL5HgFTxNIn5G2CbuCB24IOLyGgaHl8J2nUYiTKTvZmnXVju9ZAyf9JtytCWXR2hN vq2khWJ0yVKIG6on+uzw6k6AcpLjRAsWfslAnJmY1x1WUK3ijwN6w7yBR4MBrqi7xha/ C/s7I+qH+aNZdOQh1ChaOiTSSbUTSAQHKeXFx6Vk2MGS12LOIqC3KePVrft+v40FQ1ZZ +PVQ== X-Gm-Message-State: APt69E0+nOrbYKDAY6kXXJEdefSG1GBHXY/4qbjn/3I+KsR873LpaQWx /lFxZpGjxRgqCb1n8XyH2AWF5GENvPJmt5f9KY8= X-Received: by 2002:a19:3b0e:: with SMTP id i14-v6mr182510lfa.48.1528234135511; Tue, 05 Jun 2018 14:28:55 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:56c8:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 14:28:54 -0700 (PDT) In-Reply-To: <20180605170532.170361-3-ndesaulniers@google.com> References: <20180605170532.170361-1-ndesaulniers@google.com> <20180605170532.170361-3-ndesaulniers@google.com> From: Arnd Bergmann Date: Tue, 5 Jun 2018 23:28:54 +0200 X-Google-Sender-Auth: mL3x_csGcqYNBuk7-miSAUq_tQk Message-ID: Subject: Re: [PATCH v2 2/2] x86: paravirt: make native_save_fl extern inline To: Nick Desaulniers Cc: Andrew Morton , Ard Biesheuvel , Andrey Ryabinin , akataria@vmware.com, Boris Ostrovsky , Brijesh Singh , Cao jin , gregkh , "H. Peter Anvin" , Jan Kiszka , Jarkko Sakkinen , Juergen Gross , Josh Poimboeuf , "Kirill A . Shutemov" , Ingo Molnar , mjg59@google.com, Matthias Kaehlcke , Philippe Ombredanne , Steven Rostedt , Thomas Gleixner , "Lendacky, Thomas" , tweek@google.com, linux-efi@vger.kernel.org, Linux Kernel Mailing List , "the arch/x86 maintainers" , virtualization@lists.linux-foundation.org, astrachan@google.com, manojgupta@google.com, 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 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 Tue, Jun 5, 2018 at 7:05 PM, Nick Desaulniers wrote: > > The semantics of extern inline has changed since gnu89. This means that > folks using GCC versions >= 5.1 may see symbol redefinition errors at > link time for subdirs that override KBUILD_CFLAGS (making the C standard > used implicit) regardless of this patch. This has been cleaned up > earlier in the patch set, but is left as a note in the commit message > for future travelers. I think the keyword you are missing is __attribute__((gnu_inline)) which forces the gnu89 behavior on all compiler versions. It's been supported since gcc-4.2, so it should not cause problems on any compiler that is able to build an x86 kernel. Arnd