From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7132809088655430340==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [android-common:android12-5.10 12341/13830] include/trace/hooks/ipv4.h:20:1: sparse: sparse: incorrect type in assignment (different address spaces) Date: Sun, 12 Dec 2021 17:45:42 +0800 Message-ID: <202112121759.PWDl29OW-lkp@intel.com> List-Id: --===============7132809088655430340== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://android.googlesource.com/kernel/common android12-5.10 head: 2d6a43c0364d3bb0c5c00b0a32b27f4c7740e004 commit: 81c8161bed77ae0da88c78ff822220ba1a2a7a8a [12341/13830] ANDROID: ven= dor_hooks: Add hooks to tcp/udp send/recv msg functions. config: x86_64-randconfig-s021-20211207 (https://download.01.org/0day-ci/ar= chive/20211212/202112121759.PWDl29OW-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty git remote add android-common https://android.googlesource.com/kern= el/common git fetch --no-tags android-common android12-5.10 git checkout 81c8161bed77ae0da88c78ff822220ba1a2a7a8a # save the config file to linux build tree mkdir build_dir make W=3D1 C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3D= build_dir ARCH=3Dx86_64 SHELL=3D/bin/bash drivers/android/ drivers/pci/ net= /ipv4/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) net/ipv4/udp.c: note: in included file: >> include/trace/hooks/ipv4.h:20:1: sparse: sparse: incorrect type in assig= nment (different address spaces) @@ expected struct tracepoint_func *it= _func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/ipv4.h:20:1: sparse: expected struct tracepoint_= func *it_func_ptr include/trace/hooks/ipv4.h:20:1: sparse: got struct tracepoint_func = [noderef] __rcu *funcs net/ipv4/udp.c:1459:28: sparse: sparse: context imbalance in 'udp_rmem_r= elease' - unexpected unlock net/ipv4/udp.c:1491:19: sparse: sparse: context imbalance in 'busylock_a= cquire' - wrong count at exit net/ipv4/udp.c:1503:28: sparse: sparse: context imbalance in 'busylock_r= elease' - unexpected unlock net/ipv4/udp.c: note: in included file (through include/net/inet_sock.h,= include/net/icmp.h): include/net/sock.h:1621:31: sparse: sparse: context imbalance in 'skb_co= nsume_udp' - unexpected unlock net/ipv4/udp.c: note: in included file: include/trace/hooks/ipv4.h:24:1: sparse: sparse: incorrect type in assig= nment (different address spaces) @@ expected struct tracepoint_func *it= _func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/ipv4.h:24:1: sparse: expected struct tracepoint_= func *it_func_ptr include/trace/hooks/ipv4.h:24:1: sparse: got struct tracepoint_func = [noderef] __rcu *funcs net/ipv4/udp.c: note: in included file (through include/net/inet_sock.h,= include/net/icmp.h): include/net/sock.h:1621:31: sparse: sparse: context imbalance in 'udp_de= stroy_sock' - unexpected unlock net/ipv4/udp.c:2899:9: sparse: sparse: context imbalance in 'udp_get_fir= st' - wrong count at exit net/ipv4/udp.c:2921:39: sparse: sparse: context imbalance in 'udp_get_ne= xt' - unexpected unlock net/ipv4/udp.c:2971:31: sparse: sparse: context imbalance in 'udp_seq_st= op' - unexpected unlock vim +20 include/trace/hooks/ipv4.h 11 = 12 DECLARE_RESTRICTED_HOOK(android_rvh_tcp_sendmsg_locked, 13 TP_PROTO(struct sock *sk, int size), 14 TP_ARGS(sk, size), 1); 15 = 16 DECLARE_RESTRICTED_HOOK(android_rvh_tcp_recvmsg, 17 TP_PROTO(struct sock *sk), 18 TP_ARGS(sk), 1); 19 = > 20 DECLARE_RESTRICTED_HOOK(android_rvh_udp_sendmsg, 21 TP_PROTO(struct sock *sk), 22 TP_ARGS(sk), 1); 23 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7132809088655430340==--