Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp56729imm; Tue, 5 Jun 2018 15:00:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLgqKAO7uwors8KnTue51Xpwu8z6VmuCW8VKoehPgm2pPaAKAhNg65Mx5A92EAM/X2eahaK X-Received: by 2002:a17:902:7891:: with SMTP id q17-v6mr402472pll.186.1528236018054; Tue, 05 Jun 2018 15:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528236018; cv=none; d=google.com; s=arc-20160816; b=G05U9kiWVQ1JuCtr8sY3PiSx/VxKkj9wrjG2ZxPNpPrPA79DMsmsOfLc7r8mJ6zfkU s1m5qJcWnLY+JVvyARf03E2zk/DJTApBNqwczdUDi8WefIrGZBhesGOVlTXdHfpH5Z1z reKzPHAg3Es3G2ui7grs9klMc4Ol4Xo05cpvZ2Ru1XDQ3lbDQjGef3VYFhnMbVm6bOop JqmZRYdm1ZFKbpx0W+t8Md0vnC7V5uefBuQeiTxtt3h0ydwkoozsa5O8DikF9Af0fXlk R3mUwo4G/3O4GLWWK6e3GxOyapdUJpsBQqaN7zuehYmd476Sqr9Dr3fW+4OiOKPPauE8 N2YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=fcMF4oTHuF4YjzZPoSWTeCYk9P7roonHmMPN/lpOSKk=; b=tLAKMihekkmh2jo95W38yChPduJzZlEDn79YyIc8Oa1f/S0LIH2el1moMolglstoLV d7teuv4XMj7UPoY+eLDWz3JWIaDkWp3FZC4xfS0GlCfh232wp93eqJv6QtAYBOYLRWmi bpMXAFq0DIHuTQhUoucriRIaWIf4IVyfo9z3szAxE+Y82e5Q9SDkPEiwLq9leeq4SLOK 1XYDG/jJweUE0wEVogYzyUpojPb2rQDXYqXLpVSjCiFn//Cb7oM8NN29FvuLVz0389Vs QCgd6fbVIR7e1mmejk+Rk8WIWoAaFc2mkAeZT2G5P/lVQay5FN+TK6rkpROxEpgYaw0/ jZZw== ARC-Authentication-Results: i=1; mx.google.com; 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 q4-v6si4963554pgc.302.2018.06.05.15.00.03; Tue, 05 Jun 2018 15:00:18 -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; 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 S1752581AbeFEV7h (ORCPT + 99 others); Tue, 5 Jun 2018 17:59:37 -0400 Received: from smtprelay0083.hostedemail.com ([216.40.44.83]:46626 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752405AbeFEV7e (ORCPT ); Tue, 5 Jun 2018 17:59:34 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 37DA8181D3964; Tue, 5 Jun 2018 21:59:33 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: X-HE-Tag: net32_8ccf64e335144 X-Filterd-Recvd-Size: 5529 Received: from XPS-9350.home (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf12.hostedemail.com (Postfix) with ESMTPA; Tue, 5 Jun 2018 21:59:27 +0000 (UTC) Message-ID: <91704f8e949fd48869e1b36b959780cf19e96d44.camel@perches.com> Subject: Re: [PATCH v2 1/2] compiler-gcc.h: add gnu_inline to all inline declarations From: Joe Perches To: Nick Desaulniers 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, Arnd Bergmann , David Rientjes Date: Tue, 05 Jun 2018 14:59:25 -0700 In-Reply-To: References: <20180605170532.170361-1-ndesaulniers@google.com> <20180605170532.170361-2-ndesaulniers@google.com> <202492204c2d5bd5ca27307cbca5e44673b739ed.camel@perches.com> <5ad1876557235a089a50e6ed6c558a7dcb0da714.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-06-05 at 12:50 -0700, Nick Desaulniers wrote: > On Tue, Jun 5, 2018 at 12:14 PM Joe Perches wrote: > > > > On Tue, 2018-06-05 at 10:23 -0700, Joe Perches wrote: > > > Perhaps these are simpler as > > > > > > #define __inline__ inline > > > #define __inline inline > > > > Currently, there are these uses of inline variants in the kernel > > > > $ git grep -w inline | wc -l > > 68410 > > $ git grep -w __inline__ | wc -l > > 503 > > $ git grep -w __inline | wc -l > > 57 > > > > So it seems it's also reasonable to sed all uses of __inline to inline > > and perhaps remove __inline eventually altogether. > > (perhaps there are still too many __inline__ uses) > > Yeah, that sounds good. Should I split that into 3 patches: > > > Excluding scripts and a few other files, > > here's a possible patch done with: > > > > $ git grep -w --name-only __inline | \ > > grep -vP '^(?:arch/alpha/|include/|scripts/)' | \ > > xargs sed -r -i -e 's/\b__inline\b/inline/g' \ > > -e 's/\binline\s+static\b/static inline/g' > > --- > > Documentation/trace/tracepoint-analysis.rst | 2 +- > > drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 4 ++-- > > drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 2 +- > > drivers/staging/rtl8723bs/include/drv_types.h | 6 +++--- > > drivers/staging/rtl8723bs/include/ieee80211.h | 6 +++--- > > drivers/staging/rtl8723bs/include/osdep_service.h | 10 +++++----- > > drivers/staging/rtl8723bs/include/osdep_service_linux.h | 14 +++++++------- > > drivers/staging/rtl8723bs/include/rtw_mlme.h | 14 +++++++------- > > drivers/staging/rtl8723bs/include/rtw_recv.h | 16 ++++++++-------- > > drivers/staging/rtl8723bs/include/sta_info.h | 2 +- > > drivers/staging/rtl8723bs/include/wifi.h | 14 +++++++------- > > drivers/staging/rtl8723bs/include/wlan_bssdef.h | 2 +- > > lib/zstd/mem.h | 2 +- > > 13 files changed, 47 insertions(+), 47 deletions(-) > > > 1 for documentation, 1 for rtl8723bs, 1 for zstd? Seems sensible to me. > Follow up set or include in v3? Your choice. Probably a follow up would work best. Also, the remaining __inline uses would be: arch/alpha/include/asm/compiler.h:#undef __inline include/linux/compiler-gcc.h:#define __inline __inline __attribute__((always_inline,unused)) notrace include/linux/compiler-gcc.h:#define __inline __inline __attribute__((unused)) notrace scripts/checkpatch.pl:our $Inline = qr{inline|__always_inline|noinline|__inline|__inline__}; scripts/checkpatch.pl:# Check for __inline__ and __inline, prefer inline scripts/checkpatch.pl: $line =~ /\b(__inline__|__inline)\b/) { scripts/checkpatch.pl: $fixed[$fixlinenr] =~ s/\b(__inline__|__inline)\b/inline/; scripts/genksyms/keywords.c: { "__inline", INLINE_KEYW }, scripts/kernel-doc: $prototype =~ s/^__inline +//; So all of these could be removed/updated appropriately too