All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:dd-drm-rfc 16/20] lib/test_dynamic_debug.c:171:13: error: unused variable 'match_count'
@ 2021-09-19 22:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-19 22:49 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2364 bytes --]

tree:   https://github.com/jimc/linux.git dd-drm-rfc
head:   224af29513f2a5ee5b6d8fd69e28d3b0fb0557ac
commit: 451be346ce77cbd61f5cd67aa49f2348a6d3ad81 [16/20] dyndbg: RFC add trace-print callback RFC
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/jimc/linux/commit/451be346ce77cbd61f5cd67aa49f2348a6d3ad81
        git remote add jimc https://github.com/jimc/linux.git
        git fetch --no-tags jimc dd-drm-rfc
        git checkout 451be346ce77cbd61f5cd67aa49f2348a6d3ad81
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   lib/test_dynamic_debug.c: In function 'test_dynamic_debug_init':
>> lib/test_dynamic_debug.c:171:13: error: unused variable 'match_count' [-Werror=unused-variable]
     171 |         int match_count; /* rc from ddebug_exec_queries. meh. */
         |             ^~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/match_count +171 lib/test_dynamic_debug.c

   168	
   169	static int __init test_dynamic_debug_init(void)
   170	{
 > 171		int match_count; /* rc from ddebug_exec_queries. meh. */
   172		int i;
   173	
   174		pick_tracer();
   175	
   176		pr_debug("Entry:\n");
   177		do_debugging(3);
   178		expect_count(0, "nothing unless dyndbg=+T at modprobe");
   179	
   180		do_debugging(2);
   181		expect_count(10, "do_debugging 2 times after +T");
   182	
   183		dynamic_debug_register_tracer(my_mod, my_tracer);
   184	
   185		for (i = 0; i < ARRAY_SIZE(exec_tests); i++)
   186			do_exec_test(&exec_tests[i]);
   187	
   188		dynamic_debug_unregister_tracer(my_mod, my_tracer);
   189	
   190		do_debugging(4);
   191		expect_count(0, "everything is off");
   192	
   193		report("init");
   194		pr_debug("Exit:\n");
   195		return 0;
   196	}
   197	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 69190 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-19 22:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-19 22:49 [jimc:dd-drm-rfc 16/20] lib/test_dynamic_debug.c:171:13: error: unused variable 'match_count' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.