From: Linus Torvalds Subject: Re: Regression: commit "ide: constify struct ide_port_info" causes breakage Date: Fri, 26 Oct 2007 09:30:20 -0700 (PDT) Message-ID: References: <20071026155648.GB4321@flint.arm.linux.org.uk> <47221164.10200@ru.mvista.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=us-ascii Return-path: In-Reply-To: <47221164.10200@ru.mvista.com> Sender: linux-kernel-owner@vger.kernel.org To: Sergei Shtylyov Cc: Russell King , linux-ide@vger.kernel.org, Bartlomiej Zolnierkiewicz , Jeff Garzik , Alan Cox , Linux Kernel List , Andrew Morton List-Id: linux-ide@vger.kernel.org On Fri, 26 Oct 2007, Sergei Shtylyov wrote: > > We can just convert cariables declared as 'struct hpt_info' to const too -- > they are read-only templates. Generally "__devinitdata" is better than "const", since it means that the data may be thrown away. So if you drop one over the other, it's generally the "const" that should be dropped ;/ Linus