Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp152350ybe; Wed, 4 Sep 2019 17:02:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtmzy5XIKB8YuUPb0i9WkMt/R3g15FnKodS1k1Y+J5ahsAfYDAeS4PMq6IFx2xRTN9zOPe X-Received: by 2002:a65:6850:: with SMTP id q16mr617616pgt.423.1567641731026; Wed, 04 Sep 2019 17:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567641731; cv=none; d=google.com; s=arc-20160816; b=TyMhYktcBhaqUnw9P1ZUA9TUU2dz4ShSTk5QV3+uE6djDQ+VSSqXh+ng1SHU95NkbT ppaadRhA82pNe/kqVGYZ7S6xEpRHpn+tYPFfefT00JANlDrBMBy3kUPni68rcLfkcpMF eq+UuKZgsFeLR+hcoAfnufLUZv7nvdFzVQlAqwQLhO1WdmCaV/cPI1/NOh1tqQtMygq9 D0ZKPhnXlnaqic+2qNO1Ls+JDL+8O0LiPk7T50IXJQ+XO0GxUD8UcSExQgr+tthoCVfB YRiRjpcPg2hfKizNxuDC71eLoF0/xg7X/CPPte0jT5QjceAU1L+/o+Yh3BgmXLrxZhke diMA== 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; bh=0NxsKgRGI2+KacBh6H56eCk9/oGHU02yt6ZfudyZ/ts=; b=x31ia6fKrUzqWoFnVvEnR5T6IFZWvf4By6pCdJZg5Ll4WAhZhaOGTvxrTFIteWHM7q u6VfwrQRqsUISJkjxm3dndgX+IC8rwg5pMFgrqJ9fv3PzAS/N/Mn08CLl8Uwz7G2CgVQ FE9jXxxvrweVm27fRvuyKQ3upPdKibXMGmLmxPj9FUzDn5HncNHFZB38gIxcYLZ3gGYh R4B48dkduEoUHVMuWSYE5g0DyN8GzRneNeRc/majZ0M6sJqmi8DzNwm5voL4+IwqAauH EutMnGQW3IptFnLI3hs3qCtyqYNbdDWMzxrIWam9xiWcPJEvuOs58F7eHf6mgkAoNBaB mmoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FMp6D3PY; 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 r133si334772pfc.16.2019.09.04.17.01.54; Wed, 04 Sep 2019 17:02:11 -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=FMp6D3PY; 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 S1730652AbfIEAAG (ORCPT + 99 others); Wed, 4 Sep 2019 20:00:06 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:47043 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730196AbfIEAAG (ORCPT ); Wed, 4 Sep 2019 20:00:06 -0400 Received: by mail-pf1-f194.google.com with SMTP id q5so445969pfg.13 for ; Wed, 04 Sep 2019 17:00:06 -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=0NxsKgRGI2+KacBh6H56eCk9/oGHU02yt6ZfudyZ/ts=; b=FMp6D3PYAa0+RBlQo6LHWUOI4fXTGDJIb5gG3z2Fb5W/5VzsQrv1mIsdmiH1sFEbBe m22uqgy7btZyc7Cm460jDTDO8UDAkcW+VR6Ragqi4P0lGFD9Fq7W/QXU6cwXHafgiXzu sLFV9HhFHwJMqzrhypXfrRMhgEmZMeeV89sW5jFkkmrLlhdvqHLeiWCG3xN9qFE69GFz S3HZX2ML1iMnMhSwo9GIqlOX8Kn9Dp5MuYb3BftNl3RepcvPiBNPPmR7ntSEIMvnrn1h dGp8yMIQ2BMbeC02rHaFrrMUBVq7LR3IDBrhdd7GoHqMDDEvTyub/NdUH5kTzrQ47iK9 fWkQ== 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=0NxsKgRGI2+KacBh6H56eCk9/oGHU02yt6ZfudyZ/ts=; b=UH2V1nP6QUecViWbtQ5Q6FbuWDQ65/otAi+hs/kR2S94BbiSdhG4z8DjDIV2lvU2TS utiKPK3t5WjnyP9X7+x6Iyrur2SoL/5z2FPsRVvxPvaQHt3Y8DbFwliYVFtPDNR8opOv nqwxzvwg4tnUaHWX8jrlyXURu4yI37BJg/Fs0gvLkBZHKYM0eC5e+K+Z5Zh9bC3NA0zP +Vej7yq0s5BZkV8H4iLbGoDm0+LV0Sn1hNDL0C94wNxw3JqGTpu74HTP8IWFHAI/A2kO GBFUQAQLrAh21AApkAjOJJjkK20i4t0gsVMdPFGqYM1DLfDf2sgJ0pFiN6BSJPP+G15g PioQ== X-Gm-Message-State: APjAAAW3NLIcRfwWD9QXLyJtDcQnNqyW4LFQf9Lcvh++1S1V5VRdj6Nu RAzhCxPSvlVoo6/dcg3qJHs0WWP2j4FO469JaiyD6w== X-Received: by 2002:a63:6193:: with SMTP id v141mr619229pgb.263.1567641604961; Wed, 04 Sep 2019 17:00:04 -0700 (PDT) MIME-Version: 1.0 References: <20190829083233.24162-1-linux@rasmusvillemoes.dk> <20190830231527.22304-1-linux@rasmusvillemoes.dk> <20190830231527.22304-3-linux@rasmusvillemoes.dk> In-Reply-To: <20190830231527.22304-3-linux@rasmusvillemoes.dk> From: Nick Desaulniers Date: Wed, 4 Sep 2019 16:59:53 -0700 Message-ID: Subject: Re: [PATCH v2 2/6] lib/zstd/mem.h: replace __inline by inline To: Rasmus Villemoes Cc: "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Nadav Amit , Linus Torvalds , Miguel Ojeda , 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, Aug 30, 2019 at 4:15 PM Rasmus Villemoes wrote: > > Currently, compiler_types.h #defines __inline as inline (and further > #defines inline to automatically attach some attributes), so this does > not change functionality. It serves as preparation for removing the > #define of __inline. > > (Note that if ZSTD_STATIC is expanded somewhere where compiler_types.h > has not yet been processed, both __inline and inline both refer to the > compiler keyword, so again this does not change anything.) > > Signed-off-by: Rasmus Villemoes > --- > lib/zstd/mem.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/zstd/mem.h b/lib/zstd/mem.h > index 3a0f34c8706c..739837a59ad6 100644 > --- a/lib/zstd/mem.h > +++ b/lib/zstd/mem.h > @@ -27,7 +27,7 @@ > /*-**************************************** > * Compiler specifics > ******************************************/ > -#define ZSTD_STATIC static __inline __attribute__((unused)) > +#define ZSTD_STATIC static inline __attribute__((unused)) While you're here, would you mind replacing `__attribute__((unused))` with `__unused`? I would consider "naked attributes" (haven't been feature tested in include/linux/compiler_attributes.h and are verbose) to be an antipattern. > > /*-************************************************************** > * Basic Types > -- > 2.20.1 > -- Thanks, ~Nick Desaulniers