From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [PATCH] acpi: constify ops structs Date: Fri, 15 Jul 2011 02:58:35 -0400 Message-ID: <4E1FE51B.70009@pobox.com> References: <20110625170752.GA10458@albatros> <20110715063526.GB3166@albatros> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110715063526.GB3166@albatros> Sender: linux-acpi-owner@vger.kernel.org To: Vasiliy Kulikov Cc: Len Brown , kernel-hardening@lists.openwall.com, Shaohua Li , Zhang Rui , Jesse Barnes , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-pci@vger.kernel.org List-Id: linux-ide@vger.kernel.org On 07/15/2011 02:35 AM, Vasiliy Kulikov wrote: > Hi Len, > > On Sat, Jun 25, 2011 at 21:07 +0400, Vasiliy Kulikov wrote: >> Structs battery_file, acpi_dock_ops, file_operations, >> thermal_cooling_device_ops, thermal_zone_device_ops, kernel_param_ops >> are not changed in runtime. It is safe to make them const. >> register_hotplug_dock_device() was altered to take const "ops" argument >> to respect acpi_dock_ops' const notion. >> >> Signed-off-by: Vasiliy Kulikov Acked-by: Jeff Garzik