From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0196651029181101654==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [android-common:android12-5.10 6328/13830] include/trace/hooks/traps.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) Date: Sun, 12 Dec 2021 06:45:48 +0800 Message-ID: <202112120636.bChSSkZs-lkp@intel.com> List-Id: --===============0196651029181101654== 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: 9108e9ba66fe26ed7d896febb70b8afafcc2b70f [6328/13830] ANDROID: arm6= 4: add vendor hooks for unusal abort cases config: x86_64-randconfig-s021-20211207 (https://download.01.org/0day-ci/ar= chive/20211212/202112120636.bChSSkZs-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 9108e9ba66fe26ed7d896febb70b8afafcc2b70f # 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/ 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:175:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:179: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:179:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:179:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:183: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:183:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:183:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:187: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:187:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:187:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:192: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:192:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:192:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:196: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:196:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:196:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:200: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:200:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:200:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:204: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:204:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:204:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:209: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:209:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:209:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:213: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:213:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:213:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:217: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:217:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:217:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:221: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:221:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:221:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:225: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:225:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:225:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:229: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:229:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:229:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:245: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:245:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:245: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:259: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:259:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:259:1: sparse: got struct tracepoint_fun= c [noderef] __rcu *funcs include/trace/hooks/sched.h:273: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:273:1: sparse: expected struct tracepoin= t_func *it_func_ptr include/trace/hooks/sched.h:273: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:16: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:16:1: sparse: expected struct tracepoint_fu= nc *it_func_ptr include/trace/hooks/mm.h:16:1: sparse: got struct tracepoint_func [n= oderef] __rcu *funcs include/trace/hooks/mm.h:19: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:19:1: sparse: expected struct tracepoint_fu= nc *it_func_ptr include/trace/hooks/mm.h:19:1: sparse: got struct tracepoint_func [n= oderef] __rcu *funcs include/trace/hooks/mm.h:22: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:22:1: sparse: expected struct tracepoint_fu= nc *it_func_ptr include/trace/hooks/mm.h:22: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/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 vim +15 include/trace/hooks/traps.h 5 = 6 #if !defined(_TRACE_HOOK_TRAPS_H) || defined(TRACE_HEADER_MULTI_READ) 7 #define _TRACE_HOOK_TRAPS_H 8 #include 9 #include 10 /* 11 * Following tracepoints are not exported in tracefs and provide a 12 * mechanism for vendor modules to hook and extend functionality 13 */ 14 struct pt_regs; > 15 DECLARE_RESTRICTED_HOOK(android_rvh_do_undefinstr, 16 TP_PROTO(struct pt_regs *regs, bool user), 17 TP_ARGS(regs, user), 18 TP_CONDITION(!user)); 19 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0196651029181101654==--