[PATCH 0/7] [PIDNS] Final
Dmitry V. Levin
ldv at altlinux.org
Thu Jul 16 15:20:45 UTC 2020
On Sun, Jul 12, 2020 at 09:46:29PM +0200, Ákos Uzonyi wrote:
> From: Uzonyi Ákos <uzonyi.akos at gmail.com>
>
> Since my last patch series I added a description to the manual page,
> updated NEWS, fixed a few bugs, added some comments, and wrote more tests.
>
> Now I consider this series ready to be merged.
Thanks, I tried to build this series, but failed with the following
diagnostics:
../pidns.c: In function 'put_proc_pid':
../pidns.c:97:19: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
97 | struct trie *b = (struct trie *) trie_get(ns_pid_to_proc_pid[type], ns);
| ^
../pidns.c:104:42: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
104 | trie_set(ns_pid_to_proc_pid[type], ns, (uint64_t) b);
| ^
../pidns.c: In function 'get_cached_proc_pid':
../pidns.c:112:19: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
112 | struct trie *b = (struct trie *) trie_get(ns_pid_to_proc_pid[type], ns);
| ^
../pidns.c: In function 'get_or_create_proc_data':
../pidns.c:353:25: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
353 | struct proc_data *pd = (struct proc_data *)
| ^
../pidns.c:362:39: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
362 | trie_set(proc_data_cache, proc_pid, (uint64_t) pd);
| ^
../pidns.c: In function 'update_proc_data':
../pidns.c:388:42: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
388 | trie_set(proc_data_cache, pd->proc_pid, (uint64_t) NULL);
| ^
../pidns.c: In function 'proc_data_cache_iterator_fn':
../pidns.c:515:25: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
515 | struct proc_data *pd = (struct proc_data *) val;
| ^
../pidns.c: In function 'get_pid_max':
../pidns.c:73:4: error: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Werror=unused-result]
73 | fscanf(f, "%d", &pid_max);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Could you have a look, please?
--
ldv
More information about the Strace-devel
mailing list