From: Takashi Iwai Subject: Re: [PATCH 1/2] sound: Close holes in struct snd_pcm_hw_rule Date: Mon, 27 Apr 2015 12:27:04 +0200 Message-ID: References: <1430130030-17895-1-git-send-email-lars@metafoo.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 6C35F2605EF for ; Mon, 27 Apr 2015 12:27:05 +0200 (CEST) In-Reply-To: <1430130030-17895-1-git-send-email-lars@metafoo.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Lars-Peter Clausen Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 27 Apr 2015 12:20:28 +0200, Lars-Peter Clausen wrote: > > 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 Thanks, applied. Takashi > --- > include/sound/pcm.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/include/sound/pcm.h b/include/sound/pcm.h > index 0cb7f3f..d632809 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; > }; > > -- > 1.8.0 >