aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler_types.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-08-07 14:18:42 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2018-09-04 11:37:03 +0800
commitf3569fd613f669c95ad187208ad281995f30cc2a (patch)
tree7e5516a5ba41982e79f2493a3eba2327d4da4586 /include/linux/compiler_types.h
parentcrypto: qat - Remove VLA usage (diff)
downloadlinux-dev-f3569fd613f669c95ad187208ad281995f30cc2a.tar.xz
linux-dev-f3569fd613f669c95ad187208ad281995f30cc2a.zip
crypto: shash - Remove VLA usage in unaligned hashing
In the quest to remove all stack VLA usage from the kernel[1], this uses the newly defined max alignment to perform unaligned hashing to avoid VLAs, and drops the helper function while adding sanity checks on the resulting buffer sizes. Additionally, the __aligned_largest macro is removed since this helper was the only user. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--include/linux/compiler_types.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h
index 3525c179698c..13fee5fe734b 100644
--- a/include/linux/compiler_types.h
+++ b/include/linux/compiler_types.h
@@ -198,7 +198,6 @@ struct ftrace_likely_data {
*/
#define __pure __attribute__((pure))
#define __aligned(x) __attribute__((aligned(x)))
-#define __aligned_largest __attribute__((aligned))
#define __printf(a, b) __attribute__((format(printf, a, b)))
#define __scanf(a, b) __attribute__((format(scanf, a, b)))
#define __maybe_unused __attribute__((unused))