Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1557607 > unrolled thread

Re: [PATCH] crypto: Replaced gcc specific attributes with macros from compiler.h

Started byHerbert Xu <herbert@gondor.apana.org.au>
First post2017-01-12 17:50 +0100
Last post2017-01-12 17:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] crypto: Replaced gcc specific attributes with macros  from compiler.h Herbert Xu <herbert@gondor.apana.org.au> - 2017-01-12 17:50 +0100

#1557607 — Re: [PATCH] crypto: Replaced gcc specific attributes with macros from compiler.h

FromHerbert Xu <herbert@gondor.apana.org.au>
Date2017-01-12 17:50 +0100
SubjectRe: [PATCH] crypto: Replaced gcc specific attributes with macros from compiler.h
Message-ID<sYQJA-6gs-31@gated-at.bofh.it>
On Sat, Dec 31, 2016 at 09:26:23PM +0530, gidisrael@gmail.com wrote:
> From: Gideon Israel Dsouza <gidisrael@gmail.com>
> 
> Continuing from this commit: 52f5684c8e1e
> ("kernel: use macros from compiler.h instead of __attribute__((...))")
> 
> I submitted 4 total patches. They are part of task I've taken up to
> increase compiler portability in the kernel. I've cleaned up the
> subsystems under /kernel /mm /block and /security, this patch targets
> /crypto.
> 
> 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.
> 
> I had to make one additional change into compiler-gcc.h for the case when
> one wants to use this: __attribute__((aligned) and not specify an alignment
> factor. From the gcc docs, this will result in the largest alignment for
> that data type on the target machine so I've named the macro
> __aligned_largest. Please advise if another name is more appropriate.
> 
> Signed-off-by: Gideon Israel Dsouza <gidisrael@gmail.com>

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web