lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110301175425.50296d21.sfr@canb.auug.org.au>
Date:	Tue, 1 Mar 2011 17:54:25 +1100
From:	Stephen Rothwell <sfr@...b.auug.org.au>
To:	Grant Likely <grant.likely@...retlab.ca>
Cc:	linux-next@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: linux-next: build failure after merge of the final tree (devicetree
 tree related)

Hi Grant,

After merging the final tree, today's linux-next build (powerpc
allyesconfig) failed like this:

drivers/mtd/nand/pasemi_nand.c:221: error: variable 'pasemi_nand_driver' has initializer but incomplete type
drivers/mtd/nand/pasemi_nand.c:223: error: unknown field 'driver' specified in initializer
drivers/mtd/nand/pasemi_nand.c:223: error: extra brace group at end of initializer
drivers/mtd/nand/pasemi_nand.c:223: error: (near initialization for 'pasemi_nand_driver')
drivers/mtd/nand/pasemi_nand.c:227: warning: excess elements in struct initializer
drivers/mtd/nand/pasemi_nand.c:227: warning: (near initialization for 'pasemi_nand_driver')
drivers/mtd/nand/pasemi_nand.c:228: error: unknown field 'probe' specified in initializer
drivers/mtd/nand/pasemi_nand.c:228: warning: excess elements in struct initializer
drivers/mtd/nand/pasemi_nand.c:228: warning: (near initialization for 'pasemi_nand_driver')
drivers/mtd/nand/pasemi_nand.c:229: error: unknown field 'remove' specified in initializer
drivers/mtd/nand/pasemi_nand.c:229: warning: excess elements in struct initializer
drivers/mtd/nand/pasemi_nand.c:229: warning: (near initialization for 'pasemi_nand_driver')
drivers/mtd/nand/pasemi_nand.c: In function 'pasemi_nand_init':
drivers/mtd/nand/pasemi_nand.c:234: warning: passing argument 1 of 'platform_driver_register' from incompatible pointer type
include/linux/platform_device.h:124: note: expected 'struct platform_driver *' but argument is of type 'struct latform_driver *'
drivers/mtd/nand/pasemi_nand.c: In function 'pasemi_nand_exit':
drivers/mtd/nand/pasemi_nand.c:240: warning: passing argument 1 of 'platform_driver_unregister' from incompatible pointer type
include/linux/platform_device.h:125: note: expected 'struct platform_driver *' but argument is of type 'struct latform_driver *'

Caused by commit ac677e82cd5c031a010458304821bb8b1e47cf24 ("dt: Eliminate
of_platform_{,un}register_driver").  Looks like a typo to me :-)

I applied this patch for today:

From: Stephen Rothwell <sfr@...b.auug.org.au>
Date: Tue, 1 Mar 2011 17:51:33 +1100
Subject: [PATCH] dt: fix typo

Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
---
 drivers/mtd/nand/pasemi_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/pasemi_nand.c b/drivers/mtd/nand/pasemi_nand.c
index 5a0f1cf..59efa82 100644
--- a/drivers/mtd/nand/pasemi_nand.c
+++ b/drivers/mtd/nand/pasemi_nand.c
@@ -218,7 +218,7 @@ static const struct of_device_id pasemi_nand_match[] =
 
 MODULE_DEVICE_TABLE(of, pasemi_nand_match);
 
-static struct latform_driver pasemi_nand_driver =
+static struct platform_driver pasemi_nand_driver =
 {
 	.driver = {
 		.name = (char*)driver_name,
-- 
1.7.4.1

-- 
Cheers,
Stephen Rothwell                    sfr@...b.auug.org.au
http://www.canb.auug.org.au/~sfr/
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ