[android-common:android12-5.10 1/1] drivers/edac/altera_edac.c:661:37: warning: 'altr_edac_a10_device_inject2_fops' defined but not used
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://android.googlesource.com/kernel/common android12-5.10 head: 1d929bc650954dfa344168039d30b1bc13a3e48e commit: 877902ee5c938719299123aadaffdc2dbde2f1bf [1/1] EDAC/altera: Use INTTEST register for Ethernet and USB SBE injection config: arm64-randconfig-004-20260813 (https://download.01.org/0day-ci/archive/20260813/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260813/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): In file included from include/linux/gfp.h:6, from include/linux/mm.h:10, from include/linux/kallsyms.h:12, from include/linux/ftrace.h:11, from include/linux/kprobes.h:29, from include/linux/kgdb.h:19, from arch/arm64/include/asm/cacheflush.h:11, from drivers/edac/altera_edac.c:8: include/linux/mmzone.h: In function 'movable_only_nodes': include/linux/mmzone.h:1136:13: warning: variable 'nid' set but not used [-Wunused-but-set-variable] 1136 | int nid; | ^~~ drivers/edac/altera_edac.c: At top level: >> drivers/edac/altera_edac.c:661:37: warning: 'altr_edac_a10_device_inject2_fops' defined but not used [-Wunused-const-variable=] 661 | static const struct file_operations altr_edac_a10_device_inject2_fops = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/edac/altera_edac.c:641:37: warning: 'altr_edac_device_inject_fops' defined but not used [-Wunused-const-variable=] 641 | static const struct file_operations altr_edac_device_inject_fops = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/edac/altera_edac.c:543:42: warning: 'a10_l2ecc_data' defined but not used [-Wunused-const-variable=] 543 | static const struct edac_device_prv_data a10_l2ecc_data; | ^~~~~~~~~~~~~~ drivers/edac/altera_edac.c:542:42: warning: 'a10_ocramecc_data' defined but not used [-Wunused-const-variable=] 542 | static const struct edac_device_prv_data a10_ocramecc_data; | ^~~~~~~~~~~~~~~~~ drivers/edac/altera_edac.c:541:42: warning: 'l2ecc_data' defined but not used [-Wunused-const-variable=] 541 | static const struct edac_device_prv_data l2ecc_data; | ^~~~~~~~~~ drivers/edac/altera_edac.c:540:42: warning: 'ocramecc_data' defined but not used [-Wunused-const-variable=] 540 | static const struct edac_device_prv_data ocramecc_data; | ^~~~~~~~~~~~~ vim +/altr_edac_a10_device_inject2_fops +661 drivers/edac/altera_edac.c c7b4be8db8bc33e Thor Thayer 2016-04-06 656 064acbd4f4ab509 Thor Thayer 2018-09-25 657 static ssize_t altr_edac_a10_device_trig2(struct file *file, 064acbd4f4ab509 Thor Thayer 2018-09-25 658 const char __user *user_buf, 064acbd4f4ab509 Thor Thayer 2018-09-25 659 size_t count, loff_t *ppos); 064acbd4f4ab509 Thor Thayer 2018-09-25 660 064acbd4f4ab509 Thor Thayer 2018-09-25 @661 static const struct file_operations altr_edac_a10_device_inject2_fops = { 064acbd4f4ab509 Thor Thayer 2018-09-25 662 .open = simple_open, 064acbd4f4ab509 Thor Thayer 2018-09-25 663 .write = altr_edac_a10_device_trig2, 064acbd4f4ab509 Thor Thayer 2018-09-25 664 .llseek = generic_file_llseek, 064acbd4f4ab509 Thor Thayer 2018-09-25 665 }; 064acbd4f4ab509 Thor Thayer 2018-09-25 666 :::::: The code at line 661 was first introduced by commit :::::: 064acbd4f4ab509dd3f31e1a2d1e04a43d5b1009 EDAC, altera: Add Stratix10 peripheral support :::::: TO: Thor Thayer <[email protected]> :::::: CC: Borislav Petkov <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki