gcc mkbootfs.c -o mkbootfs -I../include
mkbootfs.c: In function ‘fix_stat’:
mkbootfs.c:82:46: warning: passing argument 3 of ‘fs_config’ from incompatible pointer type [-Wincompatible-pointer-types]
fs_config(path, S_ISDIR(s->st_mode), target_out_path,
^
In file included from mkbootfs.c:14:0:
../include/private/android_filesystem_config.h:303:20: note: expected ‘unsigned int *’ but argument is of type ‘char *’
static inline void fs_config(const char *path, int dir,
^
mkbootfs.c:83:48: warning: passing argument 6 of ‘fs_config’ from incompatible pointer type [-Wincompatible-pointer-types]
&s->st_uid, &s->st_gid, &st_mode, &capabilities);
^
In file included from mkbootfs.c:14:0:
../include/private/android_filesystem_config.h:303:20: note: expected ‘uint64_t * {aka long unsigned int *}’ but argument is of type ‘unsigned int *’
static inline void fs_config(const char *path, int dir,
^
mkbootfs.c:82:9: error: too many arguments to function ‘fs_config’
fs_config(path, S_ISDIR(s->st_mode), target_out_path,
^
In file included from mkbootfs.c:14:0:
../include/private/android_filesystem_config.h:303:20: note: declared here
static inline void fs_config(const char *path, int dir,