2 +++ b/include/asm/types.h
5 +#include_next <asm/types.h>
7 --- a/util/mkfs.jffs2.c
8 +++ b/util/mkfs.jffs2.c
15 /* Do not use the wierd XPG version of basename */
17 @@ -1032,7 +1033,7 @@ static void recursive_populate_directory
20 printf("\td %04o %9lu %5d:%-3d %s\n",
21 - e->sb.st_mode & ~S_IFMT, e->sb.st_size,
22 + e->sb.st_mode & ~S_IFMT, (unsigned long)e->sb.st_size,
23 (int) (e->sb.st_uid), (int) (e->sb.st_gid),
26 @@ -1041,7 +1042,7 @@ static void recursive_populate_directory
29 printf("\ts %04o %9lu %5d:%-3d %s\n",
30 - e->sb.st_mode & ~S_IFMT, e->sb.st_size,
31 + e->sb.st_mode & ~S_IFMT, (unsigned long)e->sb.st_size,
32 (int) e->sb.st_uid, (int) e->sb.st_gid, e->name);
35 @@ -1049,7 +1050,7 @@ static void recursive_populate_directory
38 printf("\tp %04o %9lu %5d:%-3d %s\n",
39 - e->sb.st_mode & ~S_IFMT, e->sb.st_size,
40 + e->sb.st_mode & ~S_IFMT, (unsigned long)e->sb.st_size,
41 (int) e->sb.st_uid, (int) e->sb.st_gid, e->name);
44 @@ -1075,7 +1076,7 @@ static void recursive_populate_directory
47 printf("\tl %04o %9lu %5d:%-3d %s -> %s\n",
48 - e->sb.st_mode & ~S_IFMT, e->sb.st_size,
49 + e->sb.st_mode & ~S_IFMT, (unsigned long)e->sb.st_size,
50 (int) e->sb.st_uid, (int) e->sb.st_gid, e->name,
53 @@ -1084,7 +1085,7 @@ static void recursive_populate_directory
56 printf("\tf %04o %9lu %5d:%-3d %s\n",
57 - e->sb.st_mode & ~S_IFMT, e->sb.st_size,
58 + e->sb.st_mode & ~S_IFMT, (unsigned long)e->sb.st_size,
59 (int) e->sb.st_uid, (int) e->sb.st_gid, e->name);
61 write_regular_file(e);