From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2] net: moxa: constify net_device_ops structures Date: Mon, 23 Jan 2017 16:00:35 -0500 (EST) Message-ID: <20170123.160035.961350397041886364.davem@davemloft.net> References: <1484981846-29736-1-git-send-email-bhumirks@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: julia.lawall@lip6.fr, dan.carpenter@oracle.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: bhumirks@gmail.com Return-path: In-Reply-To: <1484981846-29736-1-git-send-email-bhumirks@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Bhumika Goyal Date: Sat, 21 Jan 2017 12:27:26 +0530 > Declare net_device_ops structure as const as it is only stored in > the netdev_ops field of a net_device structure. This field is of type > const, so net_device_ops structures having same properties can be made > const too. > Done using Coccinelle: ... > Signed-off-by: Bhumika Goyal Applied.