Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: skcipher - Realign struct skcipher_walk to save 8 bytes

Reduce skcipher_walk's struct size by 8 bytes by realigning its members.

pahole output before:

/* size: 120, cachelines: 2, members: 13 */
/* sum members: 108, holes: 2, sum holes: 8 */
/* padding: 4 */
/* last cacheline: 56 bytes */

and after:

/* size: 112, cachelines: 2, members: 13 */
/* padding: 4 */
/* last cacheline: 48 bytes */

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Thorsten Blum and committed by
Herbert Xu
66fecd9d 34f170a5

+1 -2
+1 -2
include/crypto/internal/skcipher.h
··· 67 67 struct scatter_walk in; 68 68 }; 69 69 70 - unsigned int nbytes; 71 - 72 70 union { 73 71 /* Virtual address of the destination. */ 74 72 struct { ··· 79 81 struct scatter_walk out; 80 82 }; 81 83 84 + unsigned int nbytes; 82 85 unsigned int total; 83 86 84 87 u8 *page;