Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752584AbdF2QUm (ORCPT ); Thu, 29 Jun 2017 12:20:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:59632 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751669AbdF2QUg (ORCPT ); Thu, 29 Jun 2017 12:20:36 -0400 Date: Thu, 29 Jun 2017 18:20:34 +0200 Message-ID: From: Takashi Iwai To: "Arvind Yadav" Cc: , , Subject: Re: [PATCH] ALSA: pcm: constify attribute_group structures. In-Reply-To: <51656954c56bb69937adee61e23eec07b3bc08d0.1498729390.git.arvind.yadav.cs@gmail.com> References: <51656954c56bb69937adee61e23eec07b3bc08d0.1498729390.git.arvind.yadav.cs@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 636 Lines: 21 On Thu, 29 Jun 2017 12:32:56 +0200, Arvind Yadav wrote: > > attribute_groups are not supposed to change at runtime. All functions > working with attribute_groups provided by work with const > attribute_group. So mark the non-const structs as const. > > File size before: > text data bss dec hex filename > 9781 240 8 10029 272d sound/core/pcm.o > > File size After adding 'const': > text data bss dec hex filename > 9813 176 8 9997 270d sound/core/pcm.o > > Signed-off-by: Arvind Yadav Applied, thanks. Takashi