From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 089D723B8 for ; Sun, 28 May 2023 22:37:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685313441; x=1716849441; h=date:from:to:cc:subject:message-id:mime-version; bh=ws0j9X8SB6FySD5C28kWUPjWtOarPQ0DViIIIWcaT5s=; b=TLXWhQewjs0MpPopvJ9nmIZOwM+cXue3oMnTJd7BbBYRv/430I9/gCf+ I6ljzcM05ZOiEl0kYy04dvju+K5LAGPtRL15g0JUjRY2VFo4TNc+rjrIU pwHhAJPLyZlXzy0FZii5vzY5dF6LC5DDP+ee4WWjl4qNvUAIRDr5DYaGD CuimXVD1bY0TWxoehj7YcvRheBYplxe6IMY23TnSqp9qixFKhj/hFIdJR nrLZrTr/It1TH0bcZ2mIi6UIsZLuM7gN7/+LoeJ2sukxn2XHHj3HaTzLW 3GR2P1xN7G/A+P5YAuqw+CyTGxpxgb1oTV551dk2s6pztHloHp59Q63db Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="353408174" X-IronPort-AV: E=Sophos;i="6.00,198,1681196400"; d="scan'208";a="353408174" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2023 15:37:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10724"; a="952511889" X-IronPort-AV: E=Sophos;i="6.00,198,1681196400"; d="scan'208";a="952511889" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 28 May 2023 15:37:16 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1q3P0m-000Kl8-0o; Sun, 28 May 2023 22:37:16 +0000 Date: Mon, 29 May 2023 06:36:22 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:arcvm12-5.10 4429/27651] include/trace/hooks/fault.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) Message-ID: <202305290643.qJSiKP6V-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://android.googlesource.com/kernel/common arcvm12-5.10 head: fb8d4193a852c7d62938aaf3a8c58bbc7888bb23 commit: a8313dbdb3ababea980fdc4a8144349bcfdd04d8 [4429/27651] ANDROID: arm64: add vendor hooks for kernel fault cases config: i386-randconfig-s001-20230528 (https://download.01.org/0day-ci/archive/20230529/202305290643.qJSiKP6V-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty git remote add android-common https://android.googlesource.com/kernel/common git fetch --no-tags android-common arcvm12-5.10 git checkout a8313dbdb3ababea980fdc4a8144349bcfdd04d8 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 olddefconfig make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/android/ drivers/pci/ kernel/ net/ipv4/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202305290643.qJSiKP6V-lkp@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 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_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 https://github.com/intel/lkp-tests/wiki