From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 EF1C82E62B3 for ; Thu, 2 Jul 2026 11:15:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782990943; cv=none; b=sXF/NURqkDtT6vT/Sl348E3sb8BZH4LBujs2OxC/z7JkyUJhKGvfft+4tH+NAvBjCLW8/EZmsnuaAbx3oxz88ty1nNiby1tth2hv8tEyT8xkqJTvKufo0ZTeS7sHEbbEU+erYS5DwK8H01Q/VU5sNcBTTpL/tOhjBLU2uV/LzTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782990943; c=relaxed/simple; bh=WBVYK32+MAsennjbYLPX/KRAbPhTAs4VFB4vUwlmIKI=; h=Date:From:To:Cc:Subject:Message-ID; b=SnBdv/be88hGSnuXmDLcfWW7PauO8gICI+Tt5eezEvUKZNpzoQRlY9lhDlcyu51IQog9U1OywGx2ZhANG9bbxX3wo9tz1+lFOFlQ8pUjUeQ60ZYLjc5lxm1LPHwdKo1zpty2n68NJH2+bLtsqSCUSkRN8m2h40j4VAOf5MuIxFc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=UUhnNko9; arc=none smtp.client-ip=192.198.163.14 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="UUhnNko9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1782990941; x=1814526941; h=date:from:to:cc:subject:message-id; bh=WBVYK32+MAsennjbYLPX/KRAbPhTAs4VFB4vUwlmIKI=; b=UUhnNko9/dBJigExiUx9cqgVU1XWwU172BVpMInoSPjCNj5BO9x4khfr pGq9oYbtHoo6YcUdsq7mCz6R04V08cXfgN8R8lAaU9Kojzd60oY+kkdJq wQfdeWZ0LAIZFeRjPqshf2fST6hl6eEfiuFLq3xVXIJXC0fGWrhpdEDie I6efhX5XEyrw+xlDFfpT67yrf8dFoLbrTgzcuYZ74kb6wqxbvch793tO7 qLHEh9WW/YrARxjpmjBS7CQuAUHlSLR/hmTGNNX7tOFlTWlkWmqmtuuAE 9uckiJyuDTZpV7K1DUK8lNT6oTncX9E3ki0smvtBPEJNC5QBltQm/eKx+ w==; X-CSE-ConnectionGUID: YIFIbPVlTLmCF1uS4LKPfA== X-CSE-MsgGUID: +h4OSaplT0+qxWxbSsLYew== X-IronPort-AV: E=McAfee;i="6800,10657,11834"; a="83792490" X-IronPort-AV: E=Sophos;i="6.25,143,1779174000"; d="scan'208";a="83792490" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2026 04:15:40 -0700 X-CSE-ConnectionGUID: MXOPmzjkRLW/HboLJYLKvA== X-CSE-MsgGUID: vOb81E2qRD2uyvsL6/drZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,143,1779174000"; d="scan'208";a="257728810" Received: from lkp-server02.sh.intel.com (HELO ea128546eb3d) ([10.239.97.151]) by fmviesa005.fm.intel.com with ESMTP; 02 Jul 2026 04:15:39 -0700 Received: from kbuild by ea128546eb3d with local (Exim 4.98.2) (envelope-from ) id 1wfFOK-00000000AjH-2nKz; Thu, 02 Jul 2026 11:15:36 +0000 Date: Thu, 02 Jul 2026 19:15:33 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android15-6.6 2/2] include/trace/stages/init.h:2:23: warning: 'str__logbuf__trace_system_name' defined but not used Message-ID: <202607021946.Sdc8e57B-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Hi Mukesh, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android15-6.6 head: 8c31c796da2a12150982fe17d21be422f34e8eaf commit: e22678715e9f188f443f57496e30d3101ab0874b [2/2] ANDROID: logbuf: vendor hook for logbuf dump on oops config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20260702/202607021946.Sdc8e57B-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260702/202607021946.Sdc8e57B-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/202607021946.Sdc8e57B-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/fs.h:33, from include/linux/huge_mm.h:8, from include/linux/mm.h:1082, from include/linux/scatterlist.h:8, from include/linux/dma-mapping.h:11, from include/linux/iova.h:15, from drivers/android/vendor_hooks.c:9: include/linux/percpu-rwsem.h: In function 'percpu_down_read': include/linux/percpu-rwsem.h:70:55: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 70 | _trace_android_vh_record_pcpu_rwsem_starttime((u64)sem, jiffies); | ^ include/linux/percpu-rwsem.h: In function 'percpu_down_read_trylock': include/linux/percpu-rwsem.h:97:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 97 | _trace_android_vh_record_pcpu_rwsem_starttime((u64)sem, jiffies); | ^ include/linux/percpu-rwsem.h: In function 'percpu_up_read': include/linux/percpu-rwsem.h:128:55: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 128 | _trace_android_vh_record_pcpu_rwsem_starttime((u64)sem, 0); | ^ In file included from include/trace/trace_events.h:27, from include/trace/define_trace.h:102, from include/trace/hooks/logbuf.h:21, from drivers/android/vendor_hooks.c:61: include/trace/stages/init.h: At top level: >> include/trace/stages/init.h:2:23: warning: 'str__logbuf__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:3:21: note: in expansion of macro '__app__' 3 | #define __app(x, y) __app__(x, y) | ^~~~~~~ include/trace/stages/init.h:5:29: note: in expansion of macro '__app' 5 | #define TRACE_SYSTEM_STRING __app(TRACE_SYSTEM_VAR,__trace_system_name) | ^~~~~ include/trace/stages/init.h:8:27: note: in expansion of macro 'TRACE_SYSTEM_STRING' 8 | static const char TRACE_SYSTEM_STRING[] = \ | ^~~~~~~~~~~~~~~~~~~ include/trace/stages/init.h:11:1: note: in expansion of macro 'TRACE_MAKE_SYSTEM_STR' 11 | TRACE_MAKE_SYSTEM_STR(); | ^~~~~~~~~~~~~~~~~~~~~ In file included from include/trace/trace_events.h:27, from include/trace/define_trace.h:102, from include/trace/hooks/signal.h:16, from drivers/android/vendor_hooks.c:60: include/trace/stages/init.h:2:23: warning: 'str__signal__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:3:21: note: in expansion of macro '__app__' 3 | #define __app(x, y) __app__(x, y) | ^~~~~~~ include/trace/stages/init.h:5:29: note: in expansion of macro '__app' 5 | #define TRACE_SYSTEM_STRING __app(TRACE_SYSTEM_VAR,__trace_system_name) | ^~~~~ include/trace/stages/init.h:8:27: note: in expansion of macro 'TRACE_SYSTEM_STRING' 8 | static const char TRACE_SYSTEM_STRING[] = \ | ^~~~~~~~~~~~~~~~~~~ include/trace/stages/init.h:11:1: note: in expansion of macro 'TRACE_MAKE_SYSTEM_STR' 11 | TRACE_MAKE_SYSTEM_STR(); | ^~~~~~~~~~~~~~~~~~~~~ In file included from include/trace/trace_events.h:27, from include/trace/define_trace.h:102, from include/trace/hooks/gzvm.h:16, from drivers/android/vendor_hooks.c:59: include/trace/stages/init.h:2:23: warning: 'str__gzvm__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:3:21: note: in expansion of macro '__app__' 3 | #define __app(x, y) __app__(x, y) | ^~~~~~~ include/trace/stages/init.h:5:29: note: in expansion of macro '__app' 5 | #define TRACE_SYSTEM_STRING __app(TRACE_SYSTEM_VAR,__trace_system_name) | ^~~~~ include/trace/stages/init.h:8:27: note: in expansion of macro 'TRACE_SYSTEM_STRING' 8 | static const char TRACE_SYSTEM_STRING[] = \ | ^~~~~~~~~~~~~~~~~~~ include/trace/stages/init.h:11:1: note: in expansion of macro 'TRACE_MAKE_SYSTEM_STR' 11 | TRACE_MAKE_SYSTEM_STR(); | ^~~~~~~~~~~~~~~~~~~~~ In file included from include/trace/trace_events.h:27, from include/trace/define_trace.h:102, from include/trace/hooks/power.h:21, from drivers/android/vendor_hooks.c:58: include/trace/stages/init.h:2:23: warning: 'str__power__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:3:21: note: in expansion of macro '__app__' 3 | #define __app(x, y) __app__(x, y) | ^~~~~~~ include/trace/stages/init.h:5:29: note: in expansion of macro '__app' 5 | #define TRACE_SYSTEM_STRING __app(TRACE_SYSTEM_VAR,__trace_system_name) | ^~~~~ include/trace/stages/init.h:8:27: note: in expansion of macro 'TRACE_SYSTEM_STRING' 8 | static const char TRACE_SYSTEM_STRING[] = \ | ^~~~~~~~~~~~~~~~~~~ include/trace/stages/init.h:11:1: note: in expansion of macro 'TRACE_MAKE_SYSTEM_STR' 11 | TRACE_MAKE_SYSTEM_STR(); | ^~~~~~~~~~~~~~~~~~~~~ In file included from include/trace/trace_events.h:27, from include/trace/define_trace.h:102, from include/trace/hooks/softlockup.h:17, from drivers/android/vendor_hooks.c:57: include/trace/stages/init.h:2:23: warning: 'str__softlockup__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:3:21: note: in expansion of macro '__app__' 3 | #define __app(x, y) __app__(x, y) | ^~~~~~~ include/trace/stages/init.h:5:29: note: in expansion of macro '__app' 5 | #define TRACE_SYSTEM_STRING __app(TRACE_SYSTEM_VAR,__trace_system_name) | ^~~~~ include/trace/stages/init.h:8:27: note: in expansion of macro 'TRACE_SYSTEM_STRING' 8 | static const char TRACE_SYSTEM_STRING[] = \ | ^~~~~~~~~~~~~~~~~~~ include/trace/stages/init.h:11:1: note: in expansion of macro 'TRACE_MAKE_SYSTEM_STR' 11 | TRACE_MAKE_SYSTEM_STR(); | ^~~~~~~~~~~~~~~~~~~~~ In file included from include/trace/trace_events.h:27, from include/trace/define_trace.h:102, from include/trace/hooks/bug.h:16, from drivers/android/vendor_hooks.c:56: include/trace/stages/init.h:2:23: warning: 'str__bug__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:3:21: note: in expansion of macro '__app__' 3 | #define __app(x, y) __app__(x, y) | ^~~~~~~ vim +/str__logbuf__trace_system_name +2 include/trace/stages/init.h af6b9668e85ffd Steven Rostedt (Google 2022-03-03 @2) #define __app__(x, y) str__##x##y af6b9668e85ffd Steven Rostedt (Google 2022-03-03 3) #define __app(x, y) __app__(x, y) af6b9668e85ffd Steven Rostedt (Google 2022-03-03 4) :::::: The code at line 2 was first introduced by commit :::::: af6b9668e85ffd1502aada8036ccbf4dbd481708 tracing: Move the defines to create TRACE_EVENTS into their own files :::::: TO: Steven Rostedt (Google) :::::: CC: Steven Rostedt (Google) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki