1
linux/drivers/crypto/nx
Gustavo A. R. Silva f2f853e7ae crypto: nx - Use static_assert() to check struct sizes
Commit 1e6b251ce1 ("crypto: nx - Avoid -Wflex-array-member-not-at-end
warning") introduced tagged `struct nx842_crypto_header_hdr`. We want
to ensure that when new members need to be added to the flexible
structure, they are always included within this tagged struct.

So, we use `static_assert()` to ensure that the memory layout for
both the flexible structure and the tagged struct is the same after
any changes.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2024-08-17 13:55:50 +08:00
..
Kconfig
Makefile
nx_csbcpb.h
nx_debugfs.c
nx-842.c crypto: nx - Avoid -Wflex-array-member-not-at-end warning 2024-04-02 10:49:38 +08:00
nx-842.h crypto: nx - Use static_assert() to check struct sizes 2024-08-17 13:55:50 +08:00
nx-aes-cbc.c
nx-aes-ccm.c
nx-aes-ctr.c
nx-aes-ecb.c
nx-aes-gcm.c
nx-aes-xcbc.c
nx-common-powernv.c
nx-common-pseries.c
nx-sha256.c
nx-sha512.c
nx.c
nx.h