diff --git a/cr-dump.c b/cr-dump.c index b695095de..71a3ded35 100644 --- a/cr-dump.c +++ b/cr-dump.c @@ -130,7 +130,7 @@ static int dump_one_reg_file(const struct fd_parms *p, int lfd, if (likely(!fd_is_special(&e))) { u64 id; - id = fd_id_entry_collect((u32)p->id, p->pid, p->fd_name); + id = fd_id_entry_collect(p->id, p->pid, p->fd_name); if (id < 0) goto err; diff --git a/file-ids.c b/file-ids.c index 74ae3ffa6..6131ab799 100644 --- a/file-ids.c +++ b/file-ids.c @@ -191,7 +191,7 @@ err: return sub; } -static struct fd_id_entry *lookup_alloc_node(u64 genid, pid_t pid, int fd) +static struct fd_id_entry *lookup_alloc_node(u32 genid, pid_t pid, int fd) { struct rb_node *node = fd_id_root.rb_node; struct fd_id_entry *e = NULL; @@ -221,7 +221,7 @@ err: } -long fd_id_entry_collect(u64 genid, pid_t pid, int fd) +long fd_id_entry_collect(u32 genid, pid_t pid, int fd) { struct fd_id_entry *e = NULL; diff --git a/include/file-ids.h b/include/file-ids.h index fd565ac11..d4ce35201 100644 --- a/include/file-ids.h +++ b/include/file-ids.h @@ -11,7 +11,7 @@ #define MAKE_FD_GENID(dev, ino, pos) \ (((u32)(dev) ^ (u32)(ino) ^ (u32)(pos))) -extern long fd_id_entry_collect(u64 genid, pid_t pid, int fd); +extern long fd_id_entry_collect(u32 genid, pid_t pid, int fd); extern void fd_id_show_tree(void); #endif /* FILE_IDS_H__ */