From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764018AbXJZQcZ (ORCPT ); Fri, 26 Oct 2007 12:32:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758114AbXJZQcN (ORCPT ); Fri, 26 Oct 2007 12:32:13 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:51174 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763559AbXJZQcL (ORCPT ); Fri, 26 Oct 2007 12:32:11 -0400 Date: Fri, 26 Oct 2007 09:30:20 -0700 (PDT) From: Linus Torvalds To: Sergei Shtylyov cc: Russell King , linux-ide@vger.kernel.org, Bartlomiej Zolnierkiewicz , Jeff Garzik , Alan Cox , Linux Kernel List , Andrew Morton Subject: Re: Regression: commit "ide: constify struct ide_port_info" causes breakage In-Reply-To: <47221164.10200@ru.mvista.com> 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 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@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