Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751422AbdGQUiU (ORCPT ); Mon, 17 Jul 2017 16:38:20 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:57790 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751317AbdGQUiS (ORCPT ); Mon, 17 Jul 2017 16:38:18 -0400 Date: Mon, 17 Jul 2017 13:38:16 -0700 (PDT) Message-Id: <20170717.133816.1738351399213402373.davem@davemloft.net> To: arvind.yadav.cs@gmail.com Cc: reksio@newterm.pl, kvalo@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/11] net: ec_bhf: constify pci_device_id. From: David Miller In-Reply-To: <1500315154-3304-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1500315154-3304-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 17 Jul 2017 13:38:17 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 660 Lines: 18 From: Arvind Yadav Date: Mon, 17 Jul 2017 23:42:34 +0530 > 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 > 5113 384 0 5497 1579 drivers/net/ethernet/ec_bhf.o > > File size After adding 'const': > text data bss dec hex filename > 5177 320 0 5497 1579 drivers/net/ethernet/ec_bhf.o > > Signed-off-by: Arvind Yadav Applied.