From: Arjan van de Ven Subject: Re: Regression: commit "ide: constify struct ide_port_info" causes breakage Date: Fri, 26 Oct 2007 10:05:53 -0700 Message-ID: <20071026100553.754e20ab@laptopd505.fenrus.org> References: <20071026155648.GB4321@flint.arm.linux.org.uk> <47221164.10200@ru.mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from pentafluge.infradead.org ([213.146.154.40]:35121 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752447AbXJZRJq (ORCPT ); Fri, 26 Oct 2007 13:09:46 -0400 In-Reply-To: Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Linus Torvalds Cc: Sergei Shtylyov , Russell King , linux-ide@vger.kernel.org, Bartlomiej Zolnierkiewicz , Jeff Garzik , Alan Cox , Linux Kernel List , Andrew Morton On Fri, 26 Oct 2007 09:30:20 -0700 (PDT) Linus Torvalds wrote: > > > 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 ;/ > we could do a __constdevinitdata that translate to "const" for the "not throw away" cases, and to the throw-away secontion for the other cases...