[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20080730050750.A4C013608ED@adsl-69-226-248-13.dsl.pltn13.pacbell.net>
Date: Tue, 29 Jul 2008 22:07:50 -0700
From: David Brownell <david-b@...bell.net>
To: akpm@...ux-foundation.org
Cc: michael.hennerich@...log.com, linux-mtd@...ts.infradead.org,
linux-kernel@...r.kernel.org, dwmw2@...radead.org,
cooloney@...nel.org
Subject: Re: [RESEND x2 PATCH 2.6.26-git 1/2] MTD DataFlash: bugfix, binary
page sizes now handled (v3)
> drivers/mtd/devices/mtd_dataflash.c: In function 'jedec_probe':
> drivers/mtd/devices/mtd_dataflash.c:611: error: incompatible type for argument 1 of 'dev_name'
> drivers/mtd/devices/mtd_dataflash.c:619: error: incompatible type for argument 1 of 'dev_name'
>
It seems the MTD debug facility doesn't follow the (recent)
rule of making debug code subject to dead code elimination
rather than the more error-prone CPP level elimination.
I sense a patch coming ...
The following tweak resolves the stuff above ... do you want
a new patch?
- Dave
--- g26.orig/drivers/mtd/devices/mtd_dataflash.c 2008-07-29 22:00:32.000000000 -0700
+++ g26/drivers/mtd/devices/mtd_dataflash.c 2008-07-29 22:00:17.000000000 -0700
@@ -609,7 +609,7 @@ static struct flash_info *__devinit jede
tmp++, info++) {
if (info->jedec_id == jedec) {
DEBUG(MTD_DEBUG_LEVEL1, "%s: OTP, sector protect%s\n",
- dev_name(spi->dev),
+ dev_name(&spi->dev),
(info->flags & SUP_POW2PS)
? ", binary pagesize" : ""
);
@@ -618,7 +618,7 @@ static struct flash_info *__devinit jede
if (status < 0) {
DEBUG(MTD_DEBUG_LEVEL1,
"%s: status error %d\n",
- dev_name(spi->dev), status);
+ dev_name(&spi->dev), status);
return ERR_PTR(status);
}
if (status & 0x1) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists