summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2012-06-27 22:49:21 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-07-11 15:04:04 +0200
commit2f9d8fef13e592d232a9bec3c1eb7c59fe048878 (patch)
treea0c4034def41e4f85f55394448f6786534f9d411 /meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch
parent9af2bd13c63655744785950a411a40f2848a9f3f (diff)
downloadmeta-openembedded-2f9d8fef13e592d232a9bec3c1eb7c59fe048878.tar.gz
ubi-utils-klibc: update to patched v. 1.5.0
* Fix build failing because of UBI_IOCSETPROP -> UBI_IOCSETVOLPROP renaming. * This patch follows the one in oe-core for mtd-utils_1.5.0 * which was staging an older version of the ubi-user.h header. * We need to match the renaming done in kernel 3.0 * http://lists.infradead.org/pipermail/linux-mtd/2011-March/ * 034419.html Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch')
-rw-r--r--meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch
index db95904ea..b52e20789 100644
--- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch
+++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libubi.c.patch
@@ -9,3 +9,20 @@
9 { 9 {
10 int fd, ret; 10 int fd, ret;
11 11
12@@ -1346,13 +1346,13 @@
13
14 int ubi_set_property(int fd, uint8_t property, uint64_t value)
15 {
16- struct ubi_set_prop_req r;
17+ struct ubi_set_vol_prop_req r;
18
19- memset(&r, 0, sizeof(struct ubi_set_prop_req));
20+ memset(&r, 0, sizeof(struct ubi_set_vol_prop_req));
21 r.property = property;
22 r.value = value;
23
24- return ioctl(fd, UBI_IOCSETPROP, &r);
25+ return ioctl(fd, UBI_IOCSETVOLPROP, &r);
26 }
27
28 int ubi_leb_unmap(int fd, int lnum)