[PATCH][MTD] Add COMPATIBLE_IOCTL() for MEMGETOOBSEL
Mark A. Greer
mgreer at mvista.com
Wed Jun 20 19:52:45 EDT 2007
The flash_eraseall MTD utility uses the MEMGETOOBSEL so add a
COMPATIBLE_IOCTL() entry for it.
Signed-off-by: Mark A. Greer <mgreer at mvista.com>
---
I know MEMGETOOBSEL is supposed to be obsolete but flash_eraseall uses
it so...
Also, MEMSETOOBSEL is used by nandwrite.c but that ioctl doesn't appear
to be implemented so I didn't add it. My util source is
http://ftp.linux.org.uk/pub/people/dwmw2/mtd/cvs/mtd/util/
in case I'm looking at old source.
include/linux/compat_ioctl.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/compat_ioctl.h b/include/linux/compat_ioctl.h
index c26c3ad..3f7d6ab 100644
--- a/include/linux/compat_ioctl.h
+++ b/include/linux/compat_ioctl.h
@@ -694,6 +694,7 @@ COMPATIBLE_IOCTL(MEMLOCK)
COMPATIBLE_IOCTL(MEMUNLOCK)
COMPATIBLE_IOCTL(MEMGETREGIONCOUNT)
COMPATIBLE_IOCTL(MEMGETREGIONINFO)
+COMPATIBLE_IOCTL(MEMGETOOBSEL)
COMPATIBLE_IOCTL(MEMGETBADBLOCK)
COMPATIBLE_IOCTL(MEMSETBADBLOCK)
/* NBD */
More information about the linux-mtd
mailing list