Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp50784imm; Tue, 5 Jun 2018 14:52:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKvXqKKNtDL7WyQFis+x6jGU5DOL0czo7Jmq+pE7JOkypbBOXF8UVCvUjKHIEvQlHYXw4h2 X-Received: by 2002:a63:3201:: with SMTP id y1-v6mr273669pgy.419.1528235534859; Tue, 05 Jun 2018 14:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528235534; cv=none; d=google.com; s=arc-20160816; b=kTAoemrPoPFTXsQ11cqVhDl0oqetwJ/9OTyxHVPAThYOUcafX85SwqcYRJ2BuOMIZT 0pBmLd1Iz0WC1s3WvD/myL6zBrB36UFrDGm662+PCWKnh8Q9St8RoOxPgKyz+RKQMbOJ awwZKkGUvQ9l/NPnnguw6Nz4UuODOelp1UfRFK1w5vBm9Yeolz4jhp2pViV7q0YyuvNy HOZFMrZ3vrwFwOkny+O93afu4Ro/KfusHl2zlSb2cff+Mn+vu1KeQJwcDrgyU5TNEbjs PFR2MBP+NUx6vrQ52k2MEYxe+rvpfKEQ/IVS2j56Xw7cq8KgfANsWToF5tbDiBYlbPQl uGbw== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=TUAotxRWhhliA2rNcHsOLNGL2AQeXjdLxpZYwi1CGZU=; b=QLh2o6UShqfNCgQKF2xtyTUMULvkjX0GM+yN/8k/E6b6mrNOmvsNdTwx33J2kNUxJo ct7ht6R4Q+kkCAPOr//KKgXcVNkaqAPgX/UqCjh7pZYI1eI34RlEaN+cPEs3FAejhbOq YWPtMtGbeClUmuSL/5Ag1kSPCQTMdaviUxZMeYENN5SkIzQKuH3huvzSb0mXK1ZDk8x3 jPRcUYQyIRw/ospC66bTYQMTxCFf6xrJ+obF9+p5o8NfpFtymKT2oHadjv3mIbmApwNM PLaJ4JSUrgn7J4tpmGg3txniVBFFUHEx++LVRXnssFirsT3oA12ErZT2YZQ7zeWghUGE KFwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VBp4P5QY; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s187-v6si22908686pgc.447.2018.06.05.14.52.00; Tue, 05 Jun 2018 14:52:14 -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=@google.com header.s=20161025 header.b=VBp4P5QY; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752220AbeFEVvi (ORCPT + 99 others); Tue, 5 Jun 2018 17:51:38 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:39961 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751721AbeFEVvg (ORCPT ); Tue, 5 Jun 2018 17:51:36 -0400 Received: by mail-pf0-f195.google.com with SMTP id z24-v6so2026193pfe.7 for ; Tue, 05 Jun 2018 14:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TUAotxRWhhliA2rNcHsOLNGL2AQeXjdLxpZYwi1CGZU=; b=VBp4P5QY5Pz5ImhfBUsyEoWtZNjO3GCL5Ez4Y/M0MTpVqH8E0n8FvrfCdMv0mdvmdq DoDeOBlqfzi5nb2KbnJXlvzBNzMry6x3ajXMpIvkp/QjaEZkPguKnR07ruNZT7Vh7D8E 2n6eMFQF/wJ2GnS8G6AW0LwWQogimWUmrLxr6hTUFoJo9YUNd3Y1ven6uAfLsFZ/hKvo +vMc05LMCEdyyhnT+FY0Pq/InLjV//NxVa4NicSertJ/hAjyzo2a+UVKUXRvPlpu6lpN WqhkcDMQngFhXhdQ2u5pvwBaG9YPCXfqrJ3+iX3RKkH3qycI/hILAbfJ0cgjdA7N1i6J HjqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TUAotxRWhhliA2rNcHsOLNGL2AQeXjdLxpZYwi1CGZU=; b=UQ7+TDv0RCZ1YzOXNxBuMbCT97fpxEWrqfyEDsJHVqH/FX7cMASLz6yxUYsRtYqiYD gDWwTgy8GbZoymeA0fohahjO6QTxLMSVywOkeD7gCf3F16iGAUBymDrfSDRpfnMDNqaJ uxixhUkN4eKN50JMMKN7Ybpkc+PvStLsc/f/uITe96tXmz8O/G9Tp+J96UbzeLv90J/3 9tRBOsK6Vw3P+MO24jlLHBUzeCtNG3LrQ5IHoOAYMzvxthoOuGS5gn1Rl/LS4EJVB9Ux Dkh9q7Zz5IHs/lAkG7xX3ciSEuOm/quCz7YpG6BfqeJK/j7AYLKyhK1moIeCpkqTKEXk Dsnw== X-Gm-Message-State: APt69E0S7YlU7AaVVOPA2LXtldnLYZQgznEp7nsR9jB4AJBvtSCHa8r/ cb1C8vrJhA1zOU9IMZAEqI3l7TWWjOmjM3R/p/bY4Q== X-Received: by 2002:a63:ad46:: with SMTP id y6-v6mr304617pgo.10.1528235495028; Tue, 05 Jun 2018 14:51:35 -0700 (PDT) MIME-Version: 1.0 References: <20180605170532.170361-1-ndesaulniers@google.com> <20180605170532.170361-3-ndesaulniers@google.com> In-Reply-To: From: Nick Desaulniers Date: Tue, 5 Jun 2018 14:51:23 -0700 Message-ID: Subject: Re: [PATCH v2 2/2] x86: paravirt: make native_save_fl extern inline To: Arnd Bergmann Cc: Andrew Morton , Ard Biesheuvel , Andrey Ryabinin , akataria@vmware.com, boris.ostrovsky@oracle.com, brijesh.singh@amd.com, Cao jin , Greg KH , hpa@zytor.com, "J. Kiszka" , jarkko.sakkinen@linux.intel.com, jgross@suse.com, Josh Poimboeuf , kirill.shutemov@linux.intel.com, mingo@redhat.com, mjg59@google.com, Matthias Kaehlcke , Philippe Ombredanne , rostedt@goodmis.org, Thomas Gleixner , thomas.lendacky@amd.com, Thiebaud Weksteen , linux-efi@vger.kernel.org, LKML , x86@kernel.org, virtualization@lists.linux-foundation.org, Alistair Strachan , Manoj Gupta , Greg Hackmann , sedat.dilek@gmail.com, tstellar@redhat.com, Kees Cook , Masahiro Yamada , Michal Marek , Linux Kbuild mailing list , geert@linux-m68k.org, 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 2:31 PM Arnd Bergmann wrote: > > On Tue, Jun 5, 2018 at 11:28 PM, Arnd Bergmann wrote: > > 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. > > Nevermind, I just saw you already posted that. > > Arnd That's ok, I appreciate you taking the time to review. Your point made me consider adding the function attribute to just native_save_fl() in this patch, but it seems that that lone function attribute is not used outside of compiler-gcc.h, so it would be good to change all users of inline in one place. -- Thanks, ~Nick Desaulniers