[2.5 patch] two small MTD fixes

Adrian Bunk bunk at fs.tum.de
Tue Jun 24 13:26:39 EDT 2003


The patch below contains the following fixes for MTD in 2.5.73:
- postfix a constat in mptbase.c with ULL
- add an extern declaration for a function that is later called in
  gen_probe.c

Please apply
Adrian

--- linux-2.5.73-not-full/drivers/message/fusion/mptbase.c.old	2003-06-23 23:07:57.000000000 +0200
+++ linux-2.5.73-not-full/drivers/message/fusion/mptbase.c	2003-06-23 23:08:27.000000000 +0200
@@ -1279,7 +1279,7 @@
 	u32		 psize;
 	int		 ii;
 	int		 r = -ENODEV;
-	u64		 mask = 0xffffffffffffffff;
+	u64		 mask = 0xffffffffffffffffULL;
 
 	if (pci_enable_device(pdev))
 		return r;
--- linux-2.5.73-not-full/drivers/mtd/chips/gen_probe.c.old	2003-06-23 23:16:23.000000000 +0200
+++ linux-2.5.73-not-full/drivers/mtd/chips/gen_probe.c	2003-06-23 23:16:45.000000000 +0200
@@ -281,6 +281,7 @@
 
 extern cfi_cmdset_fn_t cfi_cmdset_0001;
 extern cfi_cmdset_fn_t cfi_cmdset_0002;
+extern cfi_cmdset_fn_t cfi_cmdset_0020;
 
 static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, 
 						  int primary)



More information about the linux-mtd mailing list