From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH v5 5/9] [MTD] remove bogus warning about missing boot bank location From: David Woodhouse To: Chris Moore In-Reply-To: <4BECEAE9.2030008@free.fr> References: <20100424155751.14723.46761.stgit@shiryu.yomgui.biz> <20100424155812.14723.66554.stgit@shiryu.yomgui.biz> <1273796379.9999.509.camel@macbook.infradead.org> <4BECEAE9.2030008@free.fr> Content-Type: text/plain; charset="UTF-8" Date: Fri, 14 May 2010 08:54:02 +0100 Message-ID: <1273823642.9999.1528.camel@macbook.infradead.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-mtd , Guillaume LECERF , Wolfram Sang , Artem Bityutskiy List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2010-05-14 at 08:17 +0200, Chris Moore wrote: > Le 14/05/2010 02:19, David Woodhouse a écrit : > > On Sat, 2010-04-24 at 17:58 +0200, Guillaume LECERF wrote: > > > >> From: Uwe Kleine-König > >> > >> After the deleted block bootloc is only used once as follows: > >> > >> if (bootloc == 3&& something_else) { > >> ... > >> > >> So setting bootloc = 2 doesn't change anything. Taking that the > >> warning is wrong and missleading. > >> > >> Signed-off-by: Uwe Kleine-König > >> Signed-off-by: Guillaume LECERF > >> Acked-by: Christopher Moore > >> > > The warning should be preserved for invalid values, or values we don't > > support. I don't think it's correct to just remove it. > > > > > > But, David, the only effect of this code is to print an *erroneous* message. > The message says "Assuming top" but sets bootloc to bottom (2) :( > See this thread: http://thread.gmane.org/gmane.linux.drivers.mtd/22176 > Remark: this would be even clearer if the bootloc values were macros > instead of 2, 3, ... > > If you really want to keep the message then it must at least be changed > to "Assuming bottom". http://git.infradead.org/mtd-2.6.git/commitdiff/412da2f6 -- David Woodhouse Open Source Technology Centre David.Woodhouse@intel.com Intel Corporation