From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android12-5.4 18038/27779] include/trace/hooks/net.h:26:1: sparse: sparse: incorrect type in assignment (different address spaces)
Date: Wed, 21 Jun 2023 21:41:11 +0800 [thread overview]
Message-ID: <202306212118.IyNw9Z2c-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android12-5.4
head: 29b74661c49e8dd78b13878e23f6e20910e52e39
commit: 48b03352a3bd46c2aec1804fd36fc78b4270e3d0 [18038/27779] ANDROID: GKI: net: add vendor hooks for 'struct sock' lifecycle
config: i386-randconfig-s003-20230620 (https://download.01.org/0day-ci/archive/20230621/202306212118.IyNw9Z2c-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230621/202306212118.IyNw9Z2c-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306212118.IyNw9Z2c-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
net/core/sock.c: note: in included file:
>> include/trace/hooks/net.h:26:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] <asn:4> *funcs @@
include/trace/hooks/net.h:26:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/net.h:26:1: sparse: got struct tracepoint_func [noderef] <asn:4> *funcs
include/trace/hooks/net.h:28:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] <asn:4> *funcs @@
include/trace/hooks/net.h:28:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/net.h:28:1: sparse: got struct tracepoint_func [noderef] <asn:4> *funcs
include/trace/hooks/net.h:28:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] <asn:4> *funcs @@
include/trace/hooks/net.h:28:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/net.h:28:1: sparse: got struct tracepoint_func [noderef] <asn:4> *funcs
net/core/sock.c:1910:9: sparse: sparse: context imbalance in 'sk_clone_lock' - wrong count at exit
net/core/sock.c:1914:6: sparse: sparse: context imbalance in 'sk_free_unlock_clone' - unexpected unlock
net/core/sock.c:3003:6: sparse: sparse: context imbalance in 'lock_sock_fast' - different lock contexts for basic block
net/core/sock.c:3502:13: sparse: sparse: context imbalance in 'proto_seq_start' - wrong count at exit
net/core/sock.c:3514:13: sparse: sparse: context imbalance in 'proto_seq_stop' - wrong count at exit
vim +26 include/trace/hooks/net.h
11
12 struct packet_type;
13 struct list_head;
14 struct sk_buff;
15 struct nf_conn;
16 struct sock;
17 DECLARE_HOOK(android_vh_ptype_head,
18 TP_PROTO(const struct packet_type *pt, struct list_head *vendor_pt),
19 TP_ARGS(pt, vendor_pt));
20 DECLARE_HOOK(android_vh_kfree_skb,
21 TP_PROTO(struct sk_buff *skb), TP_ARGS(skb));
22 DECLARE_RESTRICTED_HOOK(android_rvh_nf_conn_alloc,
23 TP_PROTO(struct nf_conn *nf_conn), TP_ARGS(nf_conn), 1);
24 DECLARE_RESTRICTED_HOOK(android_rvh_nf_conn_free,
25 TP_PROTO(struct nf_conn *nf_conn), TP_ARGS(nf_conn), 1);
> 26 DECLARE_RESTRICTED_HOOK(android_rvh_sk_alloc,
27 TP_PROTO(struct sock *sock), TP_ARGS(sock), 1);
28 DECLARE_RESTRICTED_HOOK(android_rvh_sk_free,
29 TP_PROTO(struct sock *sock), TP_ARGS(sock), 1);
30
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-06-21 13:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202306212118.IyNw9Z2c-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.