tree:
https://android.googlesource.com/kernel/common android12-5.10
head: 2d6a43c0364d3bb0c5c00b0a32b27f4c7740e004
commit: a8313dbdb3ababea980fdc4a8144349bcfdd04d8 [4429/13830] ANDROID: arm64: add vendor
hooks for kernel fault cases
config: x86_64-randconfig-s021-20211207
(
https://download.01.org/0day-ci/archive/20211212/202112120335.XOkoIrq3-lk...)
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/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout a8313dbdb3ababea980fdc4a8144349bcfdd04d8
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir
ARCH=x86_64 SHELL=/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 <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
include/trace/hooks/sched.h:135:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:135:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:135:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:139:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:139:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:139:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:143:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:143:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:143:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:147:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:147:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:147:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:151:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:151:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:151:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:155:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:155:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:155:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:159:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:159:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:159:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:163:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:163:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:163:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:167:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:167:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:167:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:171:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:171:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:171:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:175:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:175:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:175:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:179:1: sparse: sparse: incorrect type in assignment
(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 tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:179:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:184:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:184:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:184:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:188:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:188:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:188:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:192:1: sparse: sparse: incorrect type in assignment
(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 tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:192:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:196:1: sparse: sparse: incorrect type in assignment
(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 tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:196:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:201:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:201:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:201:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:205:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:205:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:205:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:209:1: sparse: sparse: incorrect type in assignment
(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 tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:209:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:213:1: sparse: sparse: incorrect type in assignment
(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 tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:213:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:217:1: sparse: sparse: incorrect type in assignment
(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 tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:217:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:221:1: sparse: sparse: incorrect type in assignment
(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 tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:221:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:237:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:237:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:237:1: sparse: got struct tracepoint_func [noderef]
__rcu *funcs
include/trace/hooks/sched.h:241:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:241:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/sched.h:241: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/mm.h):
include/trace/hooks/mm.h:15:1: sparse: sparse: incorrect type in assignment (different
address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct
tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:15:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/mm.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu
*funcs
include/trace/hooks/mm.h:18:1: sparse: sparse: incorrect type in assignment (different
address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct
tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:18:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/mm.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu
*funcs
include/trace/hooks/mm.h:21:1: sparse: sparse: incorrect type in assignment (different
address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct
tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:21:1: sparse: expected struct tracepoint_func
*it_func_ptr
include/trace/hooks/mm.h:21: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/preemptirq.h):
include/trace/hooks/preemptirq.h:14:1: sparse: sparse: incorrect type in assignment
(different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:14:1: sparse: expected struct tracepoint_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_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:18:1: sparse: expected struct tracepoint_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_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:22:1: sparse: expected struct tracepoint_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_func *it_func_ptr @@ got
struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:26:1: sparse: expected struct tracepoint_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 assignment (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_func
*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 assignment (different address spaces) @@ expected struct tracepoint_func
*it_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 assignment
(different address spaces) @@ expected struct tracepoint_func *it_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 assignment
(different address spaces) @@ expected struct tracepoint_func *it_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 assignment
(different address spaces) @@ expected struct tracepoint_func *it_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
vim +15 include/trace/hooks/fault.h
5
6 #if !defined(_TRACE_HOOK_FAULT_H) || defined(TRACE_HEADER_MULTI_READ)
7 #define _TRACE_HOOK_FAULT_H
8 #include <linux/tracepoint.h>
9 #include <trace/hooks/vendor_hooks.h>
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_die_kernel_fault,
16 TP_PROTO(struct pt_regs *regs, unsigned int esr, unsigned long addr, const char
*msg),
17 TP_ARGS(regs, esr, addr, msg), 1);
18
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org