Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp198351ybe; Thu, 12 Sep 2019 18:17:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCgje5Fhupjl+je2x1ZZADtbX+eVQoliNz5xjKi9cmiMPYxXNZw9/eCCHX1JqBaxZz9l0+ X-Received: by 2002:a05:6402:b11:: with SMTP id bm17mr45167499edb.31.1568337463604; Thu, 12 Sep 2019 18:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568337463; cv=none; d=google.com; s=arc-20160816; b=rMOGmZkCV91WPqIwuxpV8FBhkiVKp838G2aCpwpZHPerHr6W8lrWtHorJ71DHKin5L ho474XeGbQhC08X/hGFa6TJI5UQbgTKBtRFJ4S31qYv02QhxX4+nXOxicO+1s4VgY/Vm 52V88UEH4mIXXsCrM9NNKSOX4JZnE6MSopEaHRvCTmaDasJPw6yUVxp3swTxrlmKvyjT DcDncdHopm2dxv2N2oGZQDurKpGZxm9NSr1HBs5Dt0sJiN15gd8S63hs4DTZx02JvSpu mxd67KZBPh8/CV+DPcIXYP3DkicMFffPC7iX1Ag2LR7206OqBc67QtHkjn0hoGecB7WM hpAA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=OHOoE81/vagVdgBIH9CLF85wSTRP1qRZlYCJ09Kjkp4=; b=GCzf98bpKIiBTrB/dZxstleTIs55Mxk5GdtmYt+jctO0tSKsJ8XQ5wSVof90m/jxKc 7Ed327RLFFy83EE5jAlB4J93uTLl8IVJXea1vHbvxmeoHeTX7C2kkic1LU8qzzj0noek gn1OLAw9j6W52SWdnN9Wbym6c7dytbWsqq3FQQPFuysmvGBqEeXpchsV1Bs+2up06PDp xKZbtzwcmAVDM4A7y9ek2am45yh7mSIjbn/KadxB5DSAsSY+0VEMZvNMrr7LM4XCvacK LfNQoPWGKrfPWf6+0li4aqEUuYeGOB4Jh6/6Q7jcWr4VmtaY9nBsfvdv5gcafnLi20VE Qt/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=TjJrxsl4; 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 y19si8170158edr.66.2019.09.12.18.17.20; Thu, 12 Sep 2019 18:17:43 -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=@rasmusvillemoes.dk header.s=google header.b=TjJrxsl4; 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 S1729608AbfILWUB (ORCPT + 99 others); Thu, 12 Sep 2019 18:20:01 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:39761 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726897AbfILWTq (ORCPT ); Thu, 12 Sep 2019 18:19:46 -0400 Received: by mail-ed1-f67.google.com with SMTP id u6so25329731edq.6 for ; Thu, 12 Sep 2019 15:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OHOoE81/vagVdgBIH9CLF85wSTRP1qRZlYCJ09Kjkp4=; b=TjJrxsl4zMXNrJFiUwiLu0rXfmuD+c9bLYta25oBAOywi1uIcNZagWhJtH0/xc4JQq 5tPlC0jgBNcItarWE0JdpGDg0KttyWH7BoiWpfLd9T2xttJtJfLjff5GzrVD0HBOs7s/ azlms+/f5/MN5FdWxUmiuSCwyzgP12gCZp/Xk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OHOoE81/vagVdgBIH9CLF85wSTRP1qRZlYCJ09Kjkp4=; b=GibmSHpci1x1odUCSebcE2fkp0xRwmZz+hRNWaRRu0j9oaUT5fXNiFmGFyyOu/yEKn PpQTvHwmL6FXPL935yytWrHilNBMFXqCyMTR/HnPGPDgkd7oI7XNFcCOkgek7OzJAAZo 7pMXXmB2rU2nKlfGBU88Auw32o5j4mRkHbTnlCFL1YgbNqCVQPVPJb5tTkueMnYHubqj C00zvd/VNXelbzdDn03vgG1QYmR0We2br7oi9rA9aW384/G2Ko4yLtoojUr8PrthVe8B uUpuXvbZj56hPAa4N4xlB6r1mP4tulUE9iSDJLWT1iDrLSe72qClSEOEDGqB23a71+za 4qZg== X-Gm-Message-State: APjAAAUBbb3sQqykmUVUEYE3MKE+JxM6dtj+mvcdnnU9X7tjTTQICXTy pxzSZn7iB1wF0C2EZGS1Tohmyg== X-Received: by 2002:aa7:d607:: with SMTP id c7mr45378150edr.286.1568326784935; Thu, 12 Sep 2019 15:19:44 -0700 (PDT) Received: from prevas-ravi.prevas.se (ip-5-186-115-35.cgn.fibianet.dk. [5.186.115.35]) by smtp.gmail.com with ESMTPSA id 36sm4305228edz.92.2019.09.12.15.19.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2019 15:19:44 -0700 (PDT) From: Rasmus Villemoes To: Miguel Ojeda , ndesaulniers@google.com, Masahiro Yamada Cc: Greg Kroah-Hartman , Ingo Molnar , Linus Torvalds , Nadav Amit , x86@kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , Rasmus Villemoes Subject: [PATCH v3 2/6] lib/zstd/mem.h: replace __inline by inline Date: Fri, 13 Sep 2019 00:19:23 +0200 Message-Id: <20190912221927.18641-3-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190912221927.18641-1-linux@rasmusvillemoes.dk> References: <20190830231527.22304-1-linux@rasmusvillemoes.dk> <20190912221927.18641-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. While at it, also remove the __attribute__((unused)) - it's already included in the definition of the inline macro, and "open-coded" __attribute__(()) should be avoided. Since commit a95b37e20db9 (kbuild: get out of ), compiler_types.h is automatically included by all kernel C code - i.e., the definition of inline including the unused attribute is guaranteed to be in effect whenever ZSTD_STATIC is expanded. 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..93d7a2c377fe 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 /*-************************************************************** * Basic Types -- 2.20.1