diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-05-01 23:42:47 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-05-29 08:19:26 -0400 |
commit | 95f9a4d27eadcc1e76c9196e9d90cf41e9bba6ba (patch) | |
tree | 45937f99a7862e168cd8c1fde1188946080bf4b0 /include/uapi/mtd | |
parent | 1557b9e1cb669f90696c863fbf525a1033022c10 (diff) |
UBI: document UBI_IOCVOLUP better in user header
The current ioctl define implies that this func expects to be passed a
64bit number directly rather than a pointer to a 64bit. The code that
processes this ioctl shows that it clearly expects a pointer.
It'd be best if we could change the type to "__s64*", but that would
change the generated ioctl number thus breaking the userland ABI. So
just add a comment for intrepid developers.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'include/uapi/mtd')
-rw-r--r-- | include/uapi/mtd/ubi-user.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/uapi/mtd/ubi-user.h b/include/uapi/mtd/ubi-user.h index 53cae1e11e57..723c324590c1 100644 --- a/include/uapi/mtd/ubi-user.h +++ b/include/uapi/mtd/ubi-user.h | |||
@@ -173,7 +173,10 @@ | |||
173 | 173 | ||
174 | #define UBI_VOL_IOC_MAGIC 'O' | 174 | #define UBI_VOL_IOC_MAGIC 'O' |
175 | 175 | ||
176 | /* Start UBI volume update */ | 176 | /* Start UBI volume update |
177 | * Note: This actually takes a pointer (__s64*), but we can't change | ||
178 | * that without breaking the ABI on 32bit systems | ||
179 | */ | ||
177 | #define UBI_IOCVOLUP _IOW(UBI_VOL_IOC_MAGIC, 0, __s64) | 180 | #define UBI_IOCVOLUP _IOW(UBI_VOL_IOC_MAGIC, 0, __s64) |
178 | /* LEB erasure command, used for debugging, disabled by default */ | 181 | /* LEB erasure command, used for debugging, disabled by default */ |
179 | #define UBI_IOCEBER _IOW(UBI_VOL_IOC_MAGIC, 1, __s32) | 182 | #define UBI_IOCEBER _IOW(UBI_VOL_IOC_MAGIC, 1, __s32) |