[kernel] export rescan_partitions to prevent linking failures in block2mtd (#6741)
authorFlorian Fainelli <florian@openwrt.org>
Sun, 14 Mar 2010 16:21:33 +0000 (16:21 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 14 Mar 2010 16:21:33 +0000 (16:21 +0000)
SVN-Revision: 20205

target/linux/generic-2.6/patches-2.6.32/060-block2mtd_init.patch
target/linux/generic-2.6/patches-2.6.33/060-block2mtd_init.patch
target/linux/generic-2.6/patches-2.6.34/060-block2mtd_init.patch

index 50df4aae0feb16f252c5ee64c4322b19dbd0c12b..3a47c85bb9ffdf450c8532488db212b3ed3ba0d0 100644 (file)
  
  static int __init block2mtd_init(void)
  {
+--- a/fs/partitions/check.c
++++ b/fs/partitions/check.c
+@@ -625,6 +625,7 @@ try_scan:
+       kfree(state);
+       return 0;
+ }
++EXPORT_SYMBOL(rescan_partitions);
+ unsigned char *read_dev_sector(struct block_device *bdev, sector_t n, Sector *p)
+ {
index 50df4aae0feb16f252c5ee64c4322b19dbd0c12b..4adad9a02ebda34c0e4a597a7520154ad1a79395 100644 (file)
  
  static int __init block2mtd_init(void)
  {
+diff --git a/target/linux/generic-2.6/patches-2.6.32/060-block2mtd_init.patch b/target/linux/generic-2.6/patches-2.6.32/060-block2mtd_init.patch
+index 50df4aa..3a47c85 100644
+--- a/target/linux/generic-2.6/patches-2.6.32/060-block2mtd_init.patch
++++ b/target/linux/generic-2.6/patches-2.6.32/060-block2mtd_init.patch
+@@ -108,3 +108,13 @@
+  
+  static int __init block2mtd_init(void)
+  {
+--- a/fs/partitions/check.c
++++ b/fs/partitions/check.c
+@@ -625,6 +625,7 @@ try_scan:
+       kfree(state);
+       return 0;
+ }
++EXPORT_SYMBOL(rescan_partitions);
+ unsigned char *read_dev_sector(struct block_device *bdev, sector_t n, Sector *p)
+ {
index 50df4aae0feb16f252c5ee64c4322b19dbd0c12b..4adad9a02ebda34c0e4a597a7520154ad1a79395 100644 (file)
  
  static int __init block2mtd_init(void)
  {
+diff --git a/target/linux/generic-2.6/patches-2.6.32/060-block2mtd_init.patch b/target/linux/generic-2.6/patches-2.6.32/060-block2mtd_init.patch
+index 50df4aa..3a47c85 100644
+--- a/target/linux/generic-2.6/patches-2.6.32/060-block2mtd_init.patch
++++ b/target/linux/generic-2.6/patches-2.6.32/060-block2mtd_init.patch
+@@ -108,3 +108,13 @@
+  
+  static int __init block2mtd_init(void)
+  {
+--- a/fs/partitions/check.c
++++ b/fs/partitions/check.c
+@@ -625,6 +625,7 @@ try_scan:
+       kfree(state);
+       return 0;
+ }
++EXPORT_SYMBOL(rescan_partitions);
+ unsigned char *read_dev_sector(struct block_device *bdev, sector_t n, Sector *p)
+ {