diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-02 16:42:57 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-02 16:42:57 +0000 |
commit | 4e8f4e1d3968cc95ce33bb2e6ed54fae83a7cb49 (patch) | |
tree | becb9f41221e51b561153af4f98ac7b78051fc49 /tools/mtd-utils/patches/110-portability.patch | |
parent | ff9ddd7c0f6ca9b280691ff089cf4a688849c847 (diff) | |
download | upstream-4e8f4e1d3968cc95ce33bb2e6ed54fae83a7cb49.tar.gz upstream-4e8f4e1d3968cc95ce33bb2e6ed54fae83a7cb49.tar.bz2 upstream-4e8f4e1d3968cc95ce33bb2e6ed54fae83a7cb49.zip |
mtd-utils: refresh patches
SVN-Revision: 23179
Diffstat (limited to 'tools/mtd-utils/patches/110-portability.patch')
-rw-r--r-- | tools/mtd-utils/patches/110-portability.patch | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/mtd-utils/patches/110-portability.patch b/tools/mtd-utils/patches/110-portability.patch index 43b4faaca6..3b71231e48 100644 --- a/tools/mtd-utils/patches/110-portability.patch +++ b/tools/mtd-utils/patches/110-portability.patch @@ -10,14 +10,14 @@ #include "compr.h" --- a/compr_zlib.c +++ b/compr_zlib.c -@@ -35,7 +35,6 @@ - #include <stdint.h> +@@ -39,7 +39,6 @@ #include <zlib.h> + #undef crc32 #include <stdio.h> -#include <asm/types.h> #include <linux/jffs2.h> + #include "common.h" #include "compr.h" - --- a/rbtree.h +++ b/rbtree.h @@ -94,8 +94,7 @@ static inline struct page * rb_insert_pa @@ -67,7 +67,7 @@ #include <sys/types.h> --- a/mkfs.ubifs/mkfs.ubifs.c +++ b/mkfs.ubifs/mkfs.ubifs.c -@@ -773,8 +773,8 @@ int write_leb(int lnum, int len, void *b +@@ -805,8 +805,8 @@ int write_leb(int lnum, int len, void *b if (ubi_leb_change_start(ubi, out_fd, lnum, c->leb_size, dtype)) return sys_err_msg("ubi_leb_change_start failed"); @@ -78,7 +78,7 @@ (long long)pos); if (write(out_fd, buf, c->leb_size) != c->leb_size) -@@ -1029,6 +1029,7 @@ static int add_inode_with_data(struct st +@@ -1063,6 +1063,7 @@ static int add_inode_with_data(struct st if (c->default_compr != UBIFS_COMPR_NONE) use_flags |= UBIFS_COMPR_FL; @@ -86,7 +86,7 @@ if (flags & FS_COMPR_FL) use_flags |= UBIFS_COMPR_FL; if (flags & FS_SYNC_FL) -@@ -1039,6 +1040,7 @@ static int add_inode_with_data(struct st +@@ -1073,6 +1074,7 @@ static int add_inode_with_data(struct st use_flags |= UBIFS_APPEND_FL; if (flags & FS_DIRSYNC_FL && S_ISDIR(st->st_mode)) use_flags |= UBIFS_DIRSYNC_FL; @@ -94,7 +94,7 @@ memset(ino, 0, UBIFS_INO_NODE_SZ); -@@ -1108,7 +1110,9 @@ static int add_dir_inode(DIR *dir, ino_t +@@ -1142,7 +1144,9 @@ static int add_dir_inode(DIR *dir, ino_t fd = dirfd(dir); if (fd == -1) return sys_err_msg("dirfd failed"); @@ -104,7 +104,7 @@ flags = 0; } -@@ -1293,10 +1297,12 @@ static int add_file(const char *path_nam +@@ -1327,10 +1331,12 @@ static int add_file(const char *path_nam key_write(&key, &dn->key); dn->size = cpu_to_le32(bytes_read); out_len = NODE_BUFFER_SIZE - UBIFS_DATA_NODE_SZ; @@ -117,7 +117,7 @@ use_compr = c->default_compr; compr_type = compress_data(buf, bytes_read, &dn->data, &out_len, use_compr); -@@ -1338,7 +1344,9 @@ static int add_non_dir(const char *path_ +@@ -1372,7 +1378,9 @@ static int add_non_dir(const char *path_ if (fd == -1) return sys_err_msg("failed to open file '%s'", path_name); |