From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6883798953761049609==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [android-common:android12-5.10 7995/13830] include/trace/hooks/cgroup.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) Date: Sun, 12 Dec 2021 13:04:58 +0800 Message-ID: <202112121302.uuXUQcL2-lkp@intel.com> List-Id: --===============6883798953761049609== 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: 295ce88224ff163b6632f74e2255807ae4ab6cd8 [7995/13830] ANDROID: cgro= up: Add vendor hook for cpuset. config: x86_64-randconfig-s021-20211207 (https://download.01.org/0day-ci/ar= chive/20211212/202112121302.uuXUQcL2-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 295ce88224ff163b6632f74e2255807ae4ab6cd8 # 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/media/mc= / drivers/media/v4l2-core/ drivers/pci/ kernel/cgroup/ net/core/ net/ipv4/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) include/trace/hooks/sched.h:190:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:194:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:194:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:194:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:199:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:199:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:199:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:203:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:203:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:203:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:208:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:208:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:208:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:212:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:212:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:212:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:216:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:216:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:216:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:220:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:220:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:220:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:224:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:224:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:224:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:240:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:240:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:240:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:244:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:244:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:244:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:249:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:249:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:249:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:254:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:254:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:254:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:268:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:268:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:268:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:276:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:276:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:276:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:279:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:279:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:279:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:282:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:282:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:282:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:286:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:286:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:286:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:294:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/sched.h:294:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:294:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs drivers/android/vendor_hooks.c: note: in included file (through include/= trace/define_trace.h, include/trace/hooks/cpufreq.h): include/trace/hooks/cpufreq.h:23:1: sparse: sparse: incorrect type in as= signment (different address spaces) @@ expected struct tracepoint_func = *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/cpufreq.h:23:1: sparse: expected struct tracepoi= nt_func *it_func_ptr include/trace/hooks/cpufreq.h:23:1: sparse: got struct tracepoint_fu= nc [noderef] __rcu *funcs drivers/android/vendor_hooks.c: note: in included file (through include/= trace/define_trace.h, include/trace/hooks/mm.h): include/trace/hooks/mm.h:18:1: sparse: sparse: incorrect type in assignm= ent (different address spaces) @@ expected struct tracepoint_func *it_f= unc_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/mm.h:18:1: sparse: expected struct tracepoint_fu= nc *it_func_ptr include/trace/hooks/mm.h:18:1: sparse: got struct tracepoint_func [n= oderef] __rcu *funcs include/trace/hooks/mm.h:21:1: sparse: sparse: incorrect type in assignm= ent (different address spaces) @@ expected struct tracepoint_func *it_f= unc_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/mm.h:21:1: sparse: expected struct tracepoint_fu= nc *it_func_ptr include/trace/hooks/mm.h:21:1: sparse: got struct tracepoint_func [n= oderef] __rcu *funcs include/trace/hooks/mm.h:24:1: sparse: sparse: incorrect type in assignm= ent (different address spaces) @@ expected struct tracepoint_func *it_f= unc_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/mm.h:24:1: sparse: expected struct tracepoint_fu= nc *it_func_ptr include/trace/hooks/mm.h:24:1: sparse: got struct tracepoint_func [n= oderef] __rcu *funcs drivers/android/vendor_hooks.c: note: in included file (through include/= trace/define_trace.h, include/trace/hooks/preemptirq.h): include/trace/hooks/preemptirq.h:14:1: sparse: sparse: incorrect type in= assignment (different address spaces) @@ expected struct tracepoint_fu= nc *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/preemptirq.h:14:1: sparse: expected struct trace= point_func *it_func_ptr include/trace/hooks/preemptirq.h:14:1: sparse: got struct tracepoint= _func [noderef] __rcu *funcs include/trace/hooks/preemptirq.h:18:1: sparse: sparse: incorrect type in= assignment (different address spaces) @@ expected struct tracepoint_fu= nc *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/preemptirq.h:18:1: sparse: expected struct trace= point_func *it_func_ptr include/trace/hooks/preemptirq.h:18:1: sparse: got struct tracepoint= _func [noderef] __rcu *funcs include/trace/hooks/preemptirq.h:22:1: sparse: sparse: incorrect type in= assignment (different address spaces) @@ expected struct tracepoint_fu= nc *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/preemptirq.h:22:1: sparse: expected struct trace= point_func *it_func_ptr include/trace/hooks/preemptirq.h:22:1: sparse: got struct tracepoint= _func [noderef] __rcu *funcs include/trace/hooks/preemptirq.h:26:1: sparse: sparse: incorrect type in= assignment (different address spaces) @@ expected struct tracepoint_fu= nc *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/preemptirq.h:26:1: sparse: expected struct trace= point_func *it_func_ptr include/trace/hooks/preemptirq.h:26:1: sparse: got struct tracepoint= _func [noderef] __rcu *funcs drivers/android/vendor_hooks.c: note: in included file (through include/= trace/define_trace.h, include/trace/hooks/bug.h): include/trace/hooks/bug.h:14:1: sparse: sparse: incorrect type in assign= ment (different address spaces) @@ expected struct tracepoint_func *it_= func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/bug.h:14:1: sparse: expected struct tracepoint_f= unc *it_func_ptr include/trace/hooks/bug.h:14:1: sparse: got struct tracepoint_func [= noderef] __rcu *funcs drivers/android/vendor_hooks.c: note: in included file (through include/= trace/define_trace.h, include/trace/hooks/fault.h): include/trace/hooks/fault.h:15:1: sparse: sparse: incorrect type in assi= gnment (different address spaces) @@ expected struct tracepoint_func *i= t_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/fault.h:15:1: sparse: expected struct tracepoint= _func *it_func_ptr include/trace/hooks/fault.h:15:1: sparse: got struct tracepoint_func= [noderef] __rcu *funcs include/trace/hooks/fault.h:19:1: sparse: sparse: incorrect type in assi= gnment (different address spaces) @@ expected struct tracepoint_func *i= t_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/fault.h:19:1: sparse: expected struct tracepoint= _func *it_func_ptr include/trace/hooks/fault.h:19:1: sparse: got struct tracepoint_func= [noderef] __rcu *funcs include/trace/hooks/fault.h:23:1: sparse: sparse: incorrect type in assi= gnment (different address spaces) @@ expected struct tracepoint_func *i= t_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/fault.h:23:1: sparse: expected struct tracepoint= _func *it_func_ptr include/trace/hooks/fault.h:23:1: sparse: got struct tracepoint_func= [noderef] __rcu *funcs include/trace/hooks/fault.h:27:1: sparse: sparse: incorrect type in assi= gnment (different address spaces) @@ expected struct tracepoint_func *i= t_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/fault.h:27:1: sparse: expected struct tracepoint= _func *it_func_ptr include/trace/hooks/fault.h:27:1: sparse: got struct tracepoint_func= [noderef] __rcu *funcs drivers/android/vendor_hooks.c: note: in included file (through include/= trace/define_trace.h, include/trace/hooks/cgroup.h): >> include/trace/hooks/cgroup.h:15:1: sparse: sparse: incorrect type in ass= ignment (different address spaces) @@ expected struct tracepoint_func *= it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/cgroup.h:15:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/cgroup.h:15:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs drivers/android/vendor_hooks.c: note: in included file (through include/= trace/define_trace.h, include/trace/hooks/traps.h): include/trace/hooks/traps.h:15:1: sparse: sparse: incorrect type in assi= gnment (different address spaces) @@ expected struct tracepoint_func *i= t_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/traps.h:15:1: sparse: expected struct tracepoint= _func *it_func_ptr include/trace/hooks/traps.h:15:1: sparse: got struct tracepoint_func= [noderef] __rcu *funcs include/trace/hooks/traps.h:20:1: sparse: sparse: incorrect type in assi= gnment (different address spaces) @@ expected struct tracepoint_func *i= t_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/traps.h:20:1: sparse: expected struct tracepoint= _func *it_func_ptr include/trace/hooks/traps.h:20:1: sparse: got struct tracepoint_func= [noderef] __rcu *funcs include/trace/hooks/traps.h:24:1: sparse: sparse: incorrect type in assi= gnment (different address spaces) @@ expected struct tracepoint_func *i= t_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/traps.h:24:1: sparse: expected struct tracepoint= _func *it_func_ptr include/trace/hooks/traps.h:24:1: sparse: got struct tracepoint_func= [noderef] __rcu *funcs drivers/android/vendor_hooks.c: note: in included file (through include/= trace/define_trace.h, include/trace/hooks/typec.h): include/trace/hooks/typec.h:32:1: sparse: sparse: incorrect type in assi= gnment (different address spaces) @@ expected struct tracepoint_func *i= t_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/typec.h:32:1: sparse: expected struct tracepoint= _func *it_func_ptr include/trace/hooks/typec.h:32:1: sparse: got struct tracepoint_func= [noderef] __rcu *funcs include/trace/hooks/typec.h:43:1: sparse: sparse: incorrect type in assi= gnment (different address spaces) @@ expected struct tracepoint_func *i= t_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@ include/trace/hooks/typec.h:43:1: sparse: expected struct tracepoint= _func *it_func_ptr include/trace/hooks/typec.h:43:1: sparse: got struct tracepoint_func= [noderef] __rcu *funcs vim +15 include/trace/hooks/cgroup.h 10 = 11 struct task_struct; 12 DECLARE_HOOK(android_vh_cgroup_set_task, 13 TP_PROTO(int ret, struct task_struct *task), 14 TP_ARGS(ret, task)); > 15 DECLARE_RESTRICTED_HOOK(android_rvh_cpuset_fork, 16 TP_PROTO(struct task_struct *p, int *inherit_cpus), 17 TP_ARGS(p, inherit_cpus), 1); 18 #endif 19 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6883798953761049609==--