* [ammarfaizi2-block:viro/vfs/work.csum 5/5] include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
@ 2023-03-07 12:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-07 12:53 UTC (permalink / raw)
To: Al Viro; +Cc: oe-kbuild-all, Ammar Faizi, GNU/Weeb Mailing List
tree: https://github.com/ammarfaizi2/linux-block viro/vfs/work.csum
head: 8b3fb774b1eee6ee4f8c896e3d2f25bb82d2f467
commit: 8b3fb774b1eee6ee4f8c896e3d2f25bb82d2f467 [5/5] consolidate default ip_compute_csum()
config: um-x86_64_defconfig (https://download.01.org/0day-ci/archive/20230307/202303072040.UFmbNAHT-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/8b3fb774b1eee6ee4f8c896e3d2f25bb82d2f467
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block viro/vfs/work.csum
git checkout 8b3fb774b1eee6ee4f8c896e3d2f25bb82d2f467
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=um SUBARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=um SUBARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303072040.UFmbNAHT-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from init/main.c:104:
>> include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
35 | static inline __sum16 ip_compute_csum(const void *buff, int len)
| ^~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/checksum.h:105,
from include/net/checksum.h:21,
from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from init/main.c:104:
arch/x86/um/asm/checksum_64.h:17:16: note: previous declaration of 'ip_compute_csum' with type '__sum16(const void *, int)' {aka 'short unsigned int(const void *, int)'}
17 | extern __sum16 ip_compute_csum(const void *buff, int len);
| ^~~~~~~~~~~~~~~
init/main.c:775:20: warning: no previous prototype for 'arch_post_acpi_subsys_init' [-Wmissing-prototypes]
775 | void __init __weak arch_post_acpi_subsys_init(void) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
init/main.c:787:20: warning: no previous prototype for 'mem_encrypt_init' [-Wmissing-prototypes]
787 | void __init __weak mem_encrypt_init(void) { }
| ^~~~~~~~~~~~~~~~
init/main.c:789:20: warning: no previous prototype for 'poking_init' [-Wmissing-prototypes]
789 | void __init __weak poking_init(void) { }
| ^~~~~~~~~~~
--
In file included from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/inet.h:42,
from include/linux/sunrpc/msg_prot.h:205,
from include/linux/sunrpc/auth.h:14,
from include/linux/nfs_fs.h:31,
from init/do_mounts.c:22:
>> include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
35 | static inline __sum16 ip_compute_csum(const void *buff, int len)
| ^~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/checksum.h:105,
from include/net/checksum.h:21,
from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/inet.h:42,
from include/linux/sunrpc/msg_prot.h:205,
from include/linux/sunrpc/auth.h:14,
from include/linux/nfs_fs.h:31,
from init/do_mounts.c:22:
arch/x86/um/asm/checksum_64.h:17:16: note: previous declaration of 'ip_compute_csum' with type '__sum16(const void *, int)' {aka 'short unsigned int(const void *, int)'}
17 | extern __sum16 ip_compute_csum(const void *buff, int len);
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/skbuff.h:26,
from include/linux/if_arp.h:22,
from arch/um/drivers/slirp_kern.c:6:
>> include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
35 | static inline __sum16 ip_compute_csum(const void *buff, int len)
| ^~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/checksum.h:105,
from include/net/checksum.h:21,
from include/linux/skbuff.h:26,
from include/linux/if_arp.h:22,
from arch/um/drivers/slirp_kern.c:6:
arch/x86/um/asm/checksum_64.h:17:16: note: previous declaration of 'ip_compute_csum' with type '__sum16(const void *, int)' {aka 'short unsigned int(const void *, int)'}
17 | extern __sum16 ip_compute_csum(const void *buff, int len);
| ^~~~~~~~~~~~~~~
arch/um/drivers/slirp_kern.c:18:6: warning: no previous prototype for 'slirp_init' [-Wmissing-prototypes]
18 | void slirp_init(struct net_device *dev, void *data)
| ^~~~~~~~~~
--
kernel/fork.c:162:13: warning: no previous prototype for 'arch_release_task_struct' [-Wmissing-prototypes]
162 | void __weak arch_release_task_struct(struct task_struct *tsk)
| ^~~~~~~~~~~~~~~~~~~~~~~~
kernel/fork.c:859:20: warning: no previous prototype for 'arch_task_cache_init' [-Wmissing-prototypes]
859 | void __init __weak arch_task_cache_init(void) { }
| ^~~~~~~~~~~~~~~~~~~~
kernel/fork.c:954:12: warning: no previous prototype for 'arch_dup_task_struct' [-Wmissing-prototypes]
954 | int __weak arch_dup_task_struct(struct task_struct *dst,
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/init_task.h:18,
from kernel/fork.c:1088:
>> include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
35 | static inline __sum16 ip_compute_csum(const void *buff, int len)
| ^~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/checksum.h:105,
from include/net/checksum.h:21,
from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/init_task.h:18,
from kernel/fork.c:1088:
arch/x86/um/asm/checksum_64.h:17:16: note: previous declaration of 'ip_compute_csum' with type '__sum16(const void *, int)' {aka 'short unsigned int(const void *, int)'}
17 | extern __sum16 ip_compute_csum(const void *buff, int len);
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/init_task.h:18,
from kernel/exit.c:55:
>> include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
35 | static inline __sum16 ip_compute_csum(const void *buff, int len)
| ^~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/checksum.h:105,
from include/net/checksum.h:21,
from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/init_task.h:18,
from kernel/exit.c:55:
arch/x86/um/asm/checksum_64.h:17:16: note: previous declaration of 'ip_compute_csum' with type '__sum16(const void *, int)' {aka 'short unsigned int(const void *, int)'}
17 | extern __sum16 ip_compute_csum(const void *buff, int len);
| ^~~~~~~~~~~~~~~
kernel/exit.c:1915:32: warning: no previous prototype for 'abort' [-Wmissing-prototypes]
1915 | __weak __function_aligned void abort(void)
| ^~~~~
--
In file included from include/linux/skbuff.h:26,
from include/linux/filter.h:12,
from kernel/kallsyms.c:25:
>> include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
35 | static inline __sum16 ip_compute_csum(const void *buff, int len)
| ^~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/checksum.h:105,
from include/net/checksum.h:21,
from include/linux/skbuff.h:26,
from include/linux/filter.h:12,
from kernel/kallsyms.c:25:
arch/x86/um/asm/checksum_64.h:17:16: note: previous declaration of 'ip_compute_csum' with type '__sum16(const void *, int)' {aka 'short unsigned int(const void *, int)'}
17 | extern __sum16 ip_compute_csum(const void *buff, int len);
| ^~~~~~~~~~~~~~~
kernel/kallsyms.c:663:12: warning: no previous prototype for 'arch_get_kallsym' [-Wmissing-prototypes]
663 | int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
| ^~~~~~~~~~~~~~~~
--
In file included from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/netdevice.h:38,
from arch/um/os-Linux/drivers/ethertap_kern.c:10:
>> include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
35 | static inline __sum16 ip_compute_csum(const void *buff, int len)
| ^~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/checksum.h:105,
from include/net/checksum.h:21,
from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/netdevice.h:38,
from arch/um/os-Linux/drivers/ethertap_kern.c:10:
arch/x86/um/asm/checksum_64.h:17:16: note: previous declaration of 'ip_compute_csum' with type '__sum16(const void *, int)' {aka 'short unsigned int(const void *, int)'}
17 | extern __sum16 ip_compute_csum(const void *buff, int len);
| ^~~~~~~~~~~~~~~
arch/um/os-Linux/drivers/ethertap_kern.c:66:5: warning: no previous prototype for 'ethertap_setup' [-Wmissing-prototypes]
66 | int ethertap_setup(char *str, char **mac_out, void *data)
| ^~~~~~~~~~~~~~
--
In file included from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/netdevice.h:38,
from arch/um/os-Linux/drivers/tuntap_kern.c:6:
>> include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
35 | static inline __sum16 ip_compute_csum(const void *buff, int len)
| ^~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/checksum.h:105,
from include/net/checksum.h:21,
from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/netdevice.h:38,
from arch/um/os-Linux/drivers/tuntap_kern.c:6:
arch/x86/um/asm/checksum_64.h:17:16: note: previous declaration of 'ip_compute_csum' with type '__sum16(const void *, int)' {aka 'short unsigned int(const void *, int)'}
17 | extern __sum16 ip_compute_csum(const void *buff, int len);
| ^~~~~~~~~~~~~~~
arch/um/os-Linux/drivers/tuntap_kern.c:56:5: warning: no previous prototype for 'tuntap_setup' [-Wmissing-prototypes]
56 | int tuntap_setup(char *str, char **mac_out, void *data)
| ^~~~~~~~~~~~
--
In file included from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/netdevice.h:38,
from include/net/sock.h:46,
from io_uring/io_uring.c:61:
>> include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
35 | static inline __sum16 ip_compute_csum(const void *buff, int len)
| ^~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/checksum.h:105,
from include/net/checksum.h:21,
from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/netdevice.h:38,
from include/net/sock.h:46,
from io_uring/io_uring.c:61:
arch/x86/um/asm/checksum_64.h:17:16: note: previous declaration of 'ip_compute_csum' with type '__sum16(const void *, int)' {aka 'short unsigned int(const void *, int)'}
17 | extern __sum16 ip_compute_csum(const void *buff, int len);
| ^~~~~~~~~~~~~~~
io_uring/io_uring.c: In function '__io_submit_flush_completions':
io_uring/io_uring.c:1502:40: warning: variable 'prev' set but not used [-Wunused-but-set-variable]
1502 | struct io_wq_work_node *node, *prev;
| ^~~~
--
In file included from include/linux/skbuff.h:26,
from include/linux/tcp.h:17,
from include/linux/ipv6.h:93,
from include/net/addrconf.h:52,
from lib/vsprintf.c:40:
>> include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
35 | static inline __sum16 ip_compute_csum(const void *buff, int len)
| ^~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/checksum.h:105,
from include/net/checksum.h:21,
from include/linux/skbuff.h:26,
from include/linux/tcp.h:17,
from include/linux/ipv6.h:93,
from include/net/addrconf.h:52,
from lib/vsprintf.c:40:
arch/x86/um/asm/checksum_64.h:17:16: note: previous declaration of 'ip_compute_csum' with type '__sum16(const void *, int)' {aka 'short unsigned int(const void *, int)'}
17 | extern __sum16 ip_compute_csum(const void *buff, int len);
| ^~~~~~~~~~~~~~~
lib/vsprintf.c: In function 'va_format':
lib/vsprintf.c:1681:9: warning: function 'va_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
1681 | buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va);
| ^~~
--
In file included from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/netdevice.h:38,
from include/net/sock.h:46,
from include/linux/bpf-cgroup.h:11,
from net/socket.c:55:
>> include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration
35 | static inline __sum16 ip_compute_csum(const void *buff, int len)
| ^~~~~~~~~~~~~~~
In file included from arch/x86/um/asm/checksum.h:105,
from include/net/checksum.h:21,
from include/linux/skbuff.h:26,
from include/net/net_namespace.h:43,
from include/linux/netdevice.h:38,
from include/net/sock.h:46,
from include/linux/bpf-cgroup.h:11,
from net/socket.c:55:
arch/x86/um/asm/checksum_64.h:17:16: note: previous declaration of 'ip_compute_csum' with type '__sum16(const void *, int)' {aka 'short unsigned int(const void *, int)'}
17 | extern __sum16 ip_compute_csum(const void *buff, int len);
| ^~~~~~~~~~~~~~~
net/socket.c: In function '__sys_getsockopt':
net/socket.c:2300:13: warning: variable 'max_optlen' set but not used [-Wunused-but-set-variable]
2300 | int max_optlen;
| ^~~~~~~~~~
..
vim +/ip_compute_csum +35 include/net/checksum.h
25
26 /**
27 * ip_compute_csum - Compute an 16bit IP checksum.
28 * @buff: buffer address.
29 * @len: length of buffer.
30 *
31 * Returns the 16bit folded/inverted checksum of the passed buffer.
32 * Ready to fill in.
33 */
34 #ifndef _HAVE_IP_COMPUTE_CSUM
> 35 static inline __sum16 ip_compute_csum(const void *buff, int len)
36 {
37 return csum_fold (csum_partial(buff, len, 0));
38 }
39 #else
40 extern __sum16 ip_compute_csum(const void *buff, int len);
41 #endif
42
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-07 12:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-07 12:53 [ammarfaizi2-block:viro/vfs/work.csum 5/5] include/net/checksum.h:35:23: error: static declaration of 'ip_compute_csum' follows non-static declaration kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.