From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (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 B0BB2184C for ; Sun, 18 Jun 2023 13:29:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687094964; x=1718630964; h=date:from:to:cc:subject:message-id:mime-version; bh=OzEBnJAVQuQF+skDX6H/3xajsnB3muB+xoovJ5xNBbA=; b=bEFwVuiJ3FnWp/QMKmM7aL0TEYntUWpRdiYzWgMk9c7LGahl/t+M44JM 9EjKWyfOZ63+ih+RLD9wH70zF+KOAI/5SAzRoE8hs2pb5JMqX5RW76WBC peUkph2Lk1y0cfO23XoI7vDeBqz8q0wUIlPBNGwFWwHl8edCjypQff6qa NHFK3XkP2HHVYU0pjwsPeEzvOsxjtfNy6vVNM2tntuskNGepD+YmnVuGL JlBp+FFPVPhI0yD5APXHhLmU6rNS5GDxuT4VaEgRBuqkmvakI3hFHCG2+ 8WnqGTl7ZWmUrLNvnawzaeqywYpM3hkDB+LwqeX2Et0PiGnSa6sPWRdoz A==; X-IronPort-AV: E=McAfee;i="6600,9927,10745"; a="339093453" X-IronPort-AV: E=Sophos;i="6.00,252,1681196400"; d="scan'208";a="339093453" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2023 06:29:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10745"; a="743169553" X-IronPort-AV: E=Sophos;i="6.00,252,1681196400"; d="scan'208";a="743169553" Received: from lkp-server01.sh.intel.com (HELO 783282924a45) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 18 Jun 2023 06:29:19 -0700 Received: from kbuild by 783282924a45 with local (Exim 4.96) (envelope-from ) id 1qAsT0-0003kW-0c; Sun, 18 Jun 2023 13:29:18 +0000 Date: Sun, 18 Jun 2023 21:29:01 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:mirror-chromeos-5.10-arcvm 6061/27674] include/trace/hooks/bug.h:14:1: sparse: sparse: incorrect type in assignment (different address spaces) Message-ID: <202306182132.KOSG19Jj-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 mirror-chromeos-5.10-arcvm head: 31e1367ff78eb68e54a2025e9c6601e3fa6c6312 commit: 39fedc3a58f46a8aa8b35e451db9cea67126858a [6061/27674] ANDROID: Fix compilation error when CPU_FREQ is disabled config: x86_64-randconfig-s021-20230614 (https://download.01.org/0day-ci/archive/20230618/202306182132.KOSG19Jj-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230618/202306182132.KOSG19Jj-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/202306182132.KOSG19Jj-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) 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:183: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:183:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:183:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:187: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:187:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:187: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:200: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:200:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:200:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:204: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:204:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:204: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:225: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:225:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:225:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:229: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:229:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:229:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:245: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:245:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:245:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:249: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:249:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:249:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:254: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:254:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:254:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:259: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:259:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:259:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/sched.h:273: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:273:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/sched.h:273: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: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/mm.h:16:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/mm.h:16:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/mm.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/mm.h:19:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/mm.h:19:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs include/trace/hooks/mm.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/mm.h:22:1: sparse: expected struct tracepoint_func *it_func_ptr include/trace/hooks/mm.h:22: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 +14 include/trace/hooks/bug.h 505e967879727f Sangmoon Kim 2021-01-19 5 505e967879727f Sangmoon Kim 2021-01-19 6 #if !defined(_TRACE_HOOK_BUG_H) || defined(TRACE_HEADER_MULTI_READ) 505e967879727f Sangmoon Kim 2021-01-19 7 #define _TRACE_HOOK_BUG_H 505e967879727f Sangmoon Kim 2021-01-19 8 #include 505e967879727f Sangmoon Kim 2021-01-19 9 #include 505e967879727f Sangmoon Kim 2021-01-19 10 /* 505e967879727f Sangmoon Kim 2021-01-19 11 * Following tracepoints are not exported in tracefs and provide a 505e967879727f Sangmoon Kim 2021-01-19 12 * mechanism for vendor modules to hook and extend functionality 505e967879727f Sangmoon Kim 2021-01-19 13 */ 505e967879727f Sangmoon Kim 2021-01-19 @14 DECLARE_RESTRICTED_HOOK(android_rvh_report_bug, 505e967879727f Sangmoon Kim 2021-01-19 15 TP_PROTO(const char *file, unsigned int line, unsigned long bugaddr), 505e967879727f Sangmoon Kim 2021-01-19 16 TP_ARGS(file, line, bugaddr), 1); 505e967879727f Sangmoon Kim 2021-01-19 17 :::::: The code at line 14 was first introduced by commit :::::: 505e967879727f5c83185c633c7824e900fb2774 ANDROID: bug: add vendor hook for bug trap :::::: TO: Sangmoon Kim :::::: CC: Greg Kroah-Hartman -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki