From: Lars-Peter Clausen Date: Mon, 27 Apr 2015 10:20:28 +0000 (+0200) Subject: ALSA: Close holes in struct snd_pcm_hw_rule X-Git-Tag: v4.2-rc1~109^2~111^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d16efa0626bfd11157d4a622a24aaae98435f26d;p=karo-tx-linux.git ALSA: Close holes in struct snd_pcm_hw_rule On a 64-bit system there are two 32-bit holes due to the alignment of 64-bit fields. Reordering things slightly gets rid of those holes, reducing the size of the struct by 17% percent of its original size. Signed-off-by: Lars-Peter Clausen Signed-off-by: Takashi Iwai --- diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 0cb7f3f5df7b..d632809d9425 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -224,9 +224,10 @@ typedef int (*snd_pcm_hw_rule_func_t)(struct snd_pcm_hw_params *params, struct snd_pcm_hw_rule { unsigned int cond; - snd_pcm_hw_rule_func_t func; int var; int deps[4]; + + snd_pcm_hw_rule_func_t func; void *private; };