[kernel/2.6.38] fix gcc-4.6 set but unused warnings
[openwrt.git] / target / linux / generic / patches-3.0 / 400-rootfs_split.patch
index d623bfd..9eb05c4 100644 (file)
  
 --- a/drivers/mtd/mtdchar.c
 +++ b/drivers/mtd/mtdchar.c
-@@ -834,6 +834,11 @@ static int mtd_ioctl(struct file *file,
-               file->f_pos = 0;
+@@ -949,6 +949,12 @@ static int mtd_ioctl(struct file *file,
                break;
        }
 +      case MTDREFRESH:
 +      {
 +              ret = mtd_device_refresh(mtd);
 +              break;
 +      }
-       case OTPGETREGIONCOUNT:
-       case OTPGETREGIONINFO:
++
+       default:
+               ret = -ENOTTY;
+       }
 --- a/include/linux/mtd/mtd.h
 +++ b/include/linux/mtd/mtd.h
 @@ -125,6 +125,7 @@ struct nand_ecclayout {
  };
  
  #define MTDPART_OFS_NXTBLK    (-2)
+--- a/include/mtd/mtd-abi.h
++++ b/include/mtd/mtd-abi.h
+@@ -127,6 +127,7 @@ struct otp_info {
+ #define MEMWRITEOOB64         _IOWR('M', 21, struct mtd_oob_buf64)
+ #define MEMREADOOB64          _IOWR('M', 22, struct mtd_oob_buf64)
+ #define MEMISLOCKED           _IOR('M', 23, struct erase_info_user)
++#define MTDREFRESH            _IO('M', 50)
+ /*
+  * Obsolete legacy interface. Keep it in order not to break userspace
This page took 0.02433 seconds and 4 git commands to generate.