Re: [PATCH] crypto: skcipher - Realign struct skcipher_walk to save 8 bytes
From: Herbert Xu
Date: Wed Apr 16 2025 - 03:59:31 EST
On Fri, Apr 11, 2025 at 09:20:51PM +0200, Thorsten Blum wrote:
> 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@xxxxxxxxx>
> ---
> include/crypto/internal/skcipher.h | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt