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 365FC20B22 for ; Sat, 23 Aug 2025 02:40:13 +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=1755916815; cv=none; b=uV1bo14PIOxZlwMYi9SOe0fIRhQ5igggyAJK3FEMRCMVIUIIZrduggdbflFL58deoToJRX0QMbM1fjXJCcw5atT1hmLX6+ay2vv02D8GOQAfULt4zIgW3lxIeInk5PjjcCFpucDX4Ing1oJlBsLl3XH7K618A8G0t5P0tDKRySs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755916815; c=relaxed/simple; bh=b381sk1kuxYZNvrYkmTCdXJoGNZfn3h+EhUDmH+qFXc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=uU3+tqjk0kkVa9gnF8EIQf7Gk2jFeX13/rsU6cNfK68WhmDiH19a71xr+feIbgs1RsVfUrbh/VFqmZyfcK18TbT2z84wMcEiu3Gc8YtDri5bjD2yEKG3Cdi8C4C/aEGN8348oAE0kKskTgjYnwZhRyix2Sqcg3nZVP5LYKKYkKk= 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=S6gkS+m9; 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="S6gkS+m9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1755916814; x=1787452814; h=date:from:to:cc:subject:message-id:mime-version; bh=b381sk1kuxYZNvrYkmTCdXJoGNZfn3h+EhUDmH+qFXc=; b=S6gkS+m9RlXRaQftbZOiHyIJ1OTYX2KhJ9UM1XnGJgw8H0E+u5U9CRLg dPEQkPQ8AUl7jwp+7QruQWQ01UNe6B/qljhB2YCE4GDdm1PVbUWWCBfB4 E0DUfVa8F9XxA+5/CaXfLK3l87StZB0ynXk3i9yEYZpSMWvWyeX0q2JP8 +A9PTDKjNmv0m9W5bkho/d+3nM4Zl+9vHDgzv/e04L1kKT4+zZOsMSiar i37HgBf6V78o+aDqnuxZDbpBOTUcRjyY+3XH0QeBk7obITC3uzShw3DEK qFsLClnCuCXOCwlkkzkLr9qHSrXtkz9DSeu0CqJPIdEWY1by7G5p3+COO w==; X-CSE-ConnectionGUID: 4VKWPffhQ4qYtHmLgWAaIg== X-CSE-MsgGUID: LWmXeQrWRc6oMFH7ao4TZA== X-IronPort-AV: E=McAfee;i="6800,10657,11529"; a="58289922" X-IronPort-AV: E=Sophos;i="6.17,312,1747724400"; d="scan'208";a="58289922" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2025 19:40:13 -0700 X-CSE-ConnectionGUID: siMe7KBIRYy+8WeOhp2sMQ== X-CSE-MsgGUID: JMbpPMJXTWOtIXgmQ0FR4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,312,1747724400"; d="scan'208";a="168747367" Received: from lkp-server02.sh.intel.com (HELO 4ea60e6ab079) ([10.239.97.151]) by fmviesa006.fm.intel.com with ESMTP; 22 Aug 2025 19:40:13 -0700 Received: from kbuild by 4ea60e6ab079 with local (Exim 4.96) (envelope-from ) id 1upeAj-000M1h-1P; Sat, 23 Aug 2025 02:40:02 +0000 Date: Sat, 23 Aug 2025 10:39:23 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android15-6.6 3/3] include/trace/stages/init.h:2:23: warning: 'str__perf__trace_system_name' defined but not used Message-ID: <202508231057.BO4xeORd-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 Hi linjunjie1, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android15-6.6 head: ef85a20527168f70211b3855161de53e5f797427 commit: eec127b5484d09fef414b9914710cd1faa7be1bc [3/3] ANDROID: vendor_hooks:vendor hook for perf config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20250823/202508231057.BO4xeORd-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250823/202508231057.BO4xeORd-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/202508231057.BO4xeORd-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/trace/trace_events.h:27, from include/trace/define_trace.h:102, from include/trace/hooks/perf.h:24, from drivers/android/vendor_hooks.c:77: >> include/trace/stages/init.h:2:23: warning: 'str__perf__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:2:23: note: in definition of macro '__app__' 2 | #define __app__(x, y) str__##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/fsnotify.h:22, from drivers/android/vendor_hooks.c:76: include/trace/stages/init.h:2:23: warning: 'str__fsnotify__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:2:23: note: in definition of macro '__app__' 2 | #define __app__(x, y) str__##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/suspend.h:23, from drivers/android/vendor_hooks.c:75: include/trace/stages/init.h:2:23: warning: 'str__suspend__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:2:23: note: in definition of macro '__app__' 2 | #define __app__(x, y) str__##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/blk.h:39, from drivers/android/vendor_hooks.c:74: include/trace/stages/init.h:2:23: warning: 'str__blk__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:2:23: note: in definition of macro '__app__' 2 | #define __app__(x, y) str__##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/psi.h:29, from drivers/android/vendor_hooks.c:73: include/trace/stages/init.h:2:23: warning: 'str__psi__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:2:23: note: in definition of macro '__app__' 2 | #define __app__(x, y) str__##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/fuse.h:24, from drivers/android/vendor_hooks.c:72: include/trace/stages/init.h:2:23: warning: 'str__fuse__trace_system_name' defined but not used [-Wunused-const-variable=] 2 | #define __app__(x, y) str__##x##y | ^~~~~ include/trace/stages/init.h:2:23: note: in definition of macro '__app__' 2 | #define __app__(x, y) str__##x##y | ^~~~~ vim +/str__perf__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