Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754539AbcLaAto (ORCPT ); Fri, 30 Dec 2016 19:49:44 -0500 Received: from smtprelay0086.hostedemail.com ([216.40.44.86]:52707 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754394AbcLaAtm (ORCPT ); Fri, 30 Dec 2016 19:49:42 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1381:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3871:3872:4321:5007:6119:7514:7903:10004:10400:10471:10848:11026:11232:11473:11658:11914:12043:12048:12296:12438:12740:12760:12895:13069:13255:13311:13357:13439:14181:14659:14721:21080:21434:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: turn27_3737a0af2aa5d X-Filterd-Recvd-Size: 2638 Message-ID: <1483145368.1955.6.camel@perches.com> Subject: Re: [PATCH] This continues from this commit: 52f5684c8e1e ("kernel: use macros from compiler.h instead of __attribute__((...))") From: Joe Perches To: gidisrael@gmail.com, herbert@gondor.apana.org.au, davem@davemloft.net, nhorman@tuxdriver.com, akpm@linux-foundation.org, geert@linux-m68k.org, linux-kernel@vger.kernel.org Date: Fri, 30 Dec 2016 16:49:28 -0800 In-Reply-To: <1483144873-2932-1-git-send-email-gidisrael@gmail.com> References: <1483144873-2932-1-git-send-email-gidisrael@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.1-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1662 Lines: 43 On Sat, 2016-12-31 at 06:11 +0530, gidisrael@gmail.com wrote: > There is which provides macros for various gcc specific > constructs. Eg: __weak for __attribute__((weak)). I've cleaned all > instances of gcc specific attributes with the right macros for the crypto > subsystem. [] > diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c [] > @@ -394,7 +395,7 @@ static int crypto_ablkcipher_report(struct sk_buff *skb, struct crypto_alg *alg) > #endif > > static void crypto_ablkcipher_show(struct seq_file *m, struct crypto_alg *alg) > - __attribute__ ((unused)); > + __always_unused; > static void crypto_ablkcipher_show(struct seq_file *m, struct crypto_alg *alg) > { > struct ablkcipher_alg *ablkcipher = &alg->cra_ablkcipher; > @@ -468,7 +469,7 @@ static int crypto_givcipher_report(struct sk_buff *skb, struct crypto_alg *alg) > #endif > > static void crypto_givcipher_show(struct seq_file *m, struct crypto_alg *alg) > - __attribute__ ((unused)); > + __always_unused; > static void crypto_givcipher_show(struct seq_file *m, struct crypto_alg *alg) > { > struct ablkcipher_alg *ablkcipher = &alg->cra_ablkcipher; Perhaps it'd be better to remove the declaration/prototype of crypto_ablkcipher_show and surround the definition of crypto_ablkcipher_show with #ifdef CONFIG_PROC_FS / #endif [] > diff --git a/crypto/acompress.c b/crypto/acompress.c [] > @@ -50,7 +51,7 @@ static int crypto_acomp_report(struct sk_buff *skb, struct crypto_alg *alg) > #endif > > static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg) > - __attribute__ ((unused)); > + __always_unused; likewise and for others too.