]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: skcipher - Realign struct skcipher_walk to save 8 bytes
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 11 Apr 2025 19:20:51 +0000 (21:20 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Apr 2025 07:36:24 +0000 (15:36 +0800)
commit66fecd9d94034b6193636fe3bc01f089439f5413
tree943aa43f238fc508a8d1e796d203cba93946ea7c
parent34f170a590710737f9611231cd77b37ea41f707a
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>
include/crypto/internal/skcipher.h