From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) (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 924A6487A0 for ; Thu, 30 Nov 2023 14:03:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EWfmAOqI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701353039; x=1732889039; h=date:from:to:cc:subject:message-id:mime-version; bh=z9qN2YGbigfAMOxxlQOL2mbnrLsyWXgKHGO6jwz4nGw=; b=EWfmAOqIAjD5ndux8zrjTU7Z2wuWpa6J4sg3Ab30A30TpBZBNYl1Uwbz 70Z3G2BND0xoS0sArKw4gtKPZUYTLnyVrpBbjA+PTkYN4+tkcPzZCy9Ei Tq3/6XriKZrjAQ5x7G624IX6aRjo6yLLVJt46kqD+B3GVa9jNGD9uS5yd vdGqx/L0bz0Jo1GowdQyNZNlGXsBehYHGQxNEOLkVSxVjM3OZudRi3mbh GpOL1/4ntWxAC0XwWY1kGOc/kZeUyoBX7YYuBmzFfG87VNtkZpk/CA0uG EPZj2h5GYO/BL9JzWbqAq3s/hU9odvpjVTqB7uWwE+inqHaMzprx7KSWQ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="378356081" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="378356081" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2023 06:03:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="719131875" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="719131875" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 30 Nov 2023 06:03:57 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1r8hdz-00025i-19; Thu, 30 Nov 2023 14:03:55 +0000 Date: Thu, 30 Nov 2023 22:03:34 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android-mainline 4/7] include/trace/hooks/selinux.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) Message-ID: <202311302149.Av9mLRGO-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 android-mainline head: db07b9d659ae41eefdb71c29fca90e35dbe6c7a8 commit: f2d4bb3c0e9a4167dec56df5ca1ec03bfae7ad97 [4/7] ANDROID: selinux: add restricted vendor hook in selinux config: x86_64-randconfig-122-20231027 (https://download.01.org/0day-ci/archive/20231130/202311302149.Av9mLRGO-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231130/202311302149.Av9mLRGO-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202311302149.Av9mLRGO-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) include/trace/hooks/sched.h:244:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:244:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:248: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:248:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:248:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:253: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:253:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:253:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:258: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:258:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:258:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:263: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:263:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:263:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:274: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:274:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:274:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:278: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:278:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:278:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:285: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:285:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:285:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:289: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:289:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:289:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:293: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:293:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:293:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:297: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:297:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:297:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:301: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:301:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:301: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/cpufreq.h): include/trace/hooks/cpufreq.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/cpufreq.h:14:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/cpufreq.h:14:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/cpufreq.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/cpufreq.h:23:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/cpufreq.h:23: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/cgroup.h): include/trace/hooks/cgroup.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/cgroup.h:21:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/cgroup.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/vmscan.h): include/trace/hooks/vmscan.h:13: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/vmscan.h:13:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/vmscan.h:13: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/avc.h): include/trace/hooks/avc.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/avc.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/avc.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/avc.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/avc.h:19:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/avc.h:19:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/avc.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/avc.h:23:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/avc.h:23:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/avc.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/avc.h:27:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/avc.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/creds.h): include/trace/hooks/creds.h:16: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/creds.h:16:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/creds.h:16:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/creds.h:20: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/creds.h:20:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/creds.h:20:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/creds.h:24: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/creds.h:24:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/creds.h:24:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/creds.h:28: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/creds.h:28:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/creds.h:28: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/selinux.h): >> include/trace/hooks/selinux.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/selinux.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/selinux.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs vim +15 include/trace/hooks/selinux.h 4 5 #define TRACE_INCLUDE_PATH trace/hooks 6 #if !defined(_TRACE_HOOK_SELINUX_H) || defined(TRACE_HEADER_MULTI_READ) 7 #define _TRACE_HOOK_SELINUX_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 selinux_state; > 15 DECLARE_RESTRICTED_HOOK(android_rvh_selinux_is_initialized, 16 TP_PROTO(const struct selinux_state *state), 17 TP_ARGS(state), 1); 18 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki