Эх сурвалжийг харах

UBI: allow all ioctls

Some ioctl's in UBI are enabled only when debugging is switched
on. There is not particular reason for this, just noone needed
them. However, some people need the now for their user-space
development. Thus, allow these ioctl's even if UBI debugging
is disabled.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Artem Bityutskiy 16 жил өмнө
parent
commit
ade44ce07c

+ 0 - 2
drivers/mtd/ubi/cdev.c

@@ -486,7 +486,6 @@ static int vol_cdev_ioctl(struct inode *inode, struct file *file,
 		break;
 		break;
 	}
 	}
 
 
-#ifdef CONFIG_MTD_UBI_DEBUG_USERSPACE_IO
 	/* Logical eraseblock erasure command */
 	/* Logical eraseblock erasure command */
 	case UBI_IOCEBER:
 	case UBI_IOCEBER:
 	{
 	{
@@ -559,7 +558,6 @@ static int vol_cdev_ioctl(struct inode *inode, struct file *file,
 		err = ubi_is_mapped(desc, lnum);
 		err = ubi_is_mapped(desc, lnum);
 		break;
 		break;
 	}
 	}
-#endif
 
 
 	default:
 	default:
 		err = -ENOTTY;
 		err = -ENOTTY;