From: Joe Perches <joe@perches.com>
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
Subject: Re: [PATCH] This continues from this commit: 52f5684c8e1e ("kernel: use macros from compiler.h instead of __attribute__((...))")
Date: Fri, 30 Dec 2016 16:49:28 -0800 [thread overview]
Message-ID: <1483145368.1955.6.camel@perches.com> (raw)
In-Reply-To: <1483144873-2932-1-git-send-email-gidisrael@gmail.com>
On Sat, 2016-12-31 at 06:11 +0530, gidisrael@gmail.com wrote:
> There is <linux/compiler.h> 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.
next prev parent reply other threads:[~2016-12-31 0:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-31 0:41 [PATCH] This continues from this commit: 52f5684c8e1e ("kernel: use macros from compiler.h instead of __attribute__((...))") gidisrael
2016-12-31 0:49 ` Joe Perches [this message]
2016-12-31 9:03 ` Herbert Xu
2016-12-31 16:31 ` Joe Perches
2016-12-31 9:04 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1483145368.1955.6.camel@perches.com \
--to=joe@perches.com \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=geert@linux-m68k.org \
--cc=gidisrael@gmail.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-kernel@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.