Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751561AbdGRSCH (ORCPT ); Tue, 18 Jul 2017 14:02:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:38405 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751402AbdGRSCG (ORCPT ); Tue, 18 Jul 2017 14:02:06 -0400 Date: Tue, 18 Jul 2017 20:02:04 +0200 Message-ID: From: Takashi Iwai To: "Arvind Yadav" Cc: , , Subject: Re: [PATCH] ALSA: hda: constify pci_device_id. In-Reply-To: References: 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: 635 Lines: 21 On Tue, 18 Jul 2017 19:05:06 +0200, Arvind Yadav wrote: > > pci_device_id are not supposed to change at runtime. All functions > working with pci_device_id provided by work with > const pci_device_id. So mark the non-const structs as const. > > File size before: > text data bss dec hex filename > 2610 304 8 2922 b6a sound/hda/hdac_i915.o > > File size After adding 'const': > text data bss dec hex filename > 2674 240 8 2922 b6a sound/hda/hdac_i915.o > > Signed-off-by: Arvind Yadav Applied, thanks. Takashi