[openeuler:OLK-5.10 2579/2579] mm/share_pool.c:1215:12: warning: 'spa_stat_show' defined but not used

tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: ff5378fff024fcb2552e6da22811cf933fe4a4c0 commit: d83dcc99d770b53e4839791fa2319c953fc6e42d [2579/2579] share_pool: Add proc interfaces to show sp info config: arm64-randconfig-004-20241213 (https://download.01.org/0day-ci/archive/20241213/202412130822.tSyyPsoM-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241213/202412130822.tSyyPsoM-lkp@i...) 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 <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202412130822.tSyyPsoM-lkp@intel.com/ All warnings (new ones prefixed by >>): mm/share_pool.c:877:6: warning: no previous prototype for 'sp_proc_stat_drop' [-Wmissing-prototypes] 877 | void sp_proc_stat_drop(struct sp_proc_stat *stat) | ^~~~~~~~~~~~~~~~~ mm/share_pool.c:1108:6: warning: no previous prototype for 'spa_overview_show' [-Wmissing-prototypes] 1108 | void spa_overview_show(struct seq_file *seq) | ^~~~~~~~~~~~~~~~~ mm/share_pool.c:1190:6: warning: no previous prototype for 'spg_overview_show' [-Wmissing-prototypes] 1190 | void spg_overview_show(struct seq_file *seq) | ^~~~~~~~~~~~~~~~~ mm/share_pool.c:1322:12: warning: 'proc_overview_show' defined but not used [-Wunused-function] 1322 | static int proc_overview_show(struct seq_file *seq, void *offset) | ^~~~~~~~~~~~~~~~~~ mm/share_pool.c:1279:12: warning: 'proc_stat_show' defined but not used [-Wunused-function] 1279 | static int proc_stat_show(struct seq_file *seq, void *offset) | ^~~~~~~~~~~~~~
mm/share_pool.c:1215:12: warning: 'spa_stat_show' defined but not used [-Wunused-function] 1215 | static int spa_stat_show(struct seq_file *seq, void *offset) | ^~~~~~~~~~~~~ mm/share_pool.c:489:21: warning: 'spa_file' defined but not used [-Wunused-function] 489 | static struct file *spa_file(struct sp_area *spa) | ^~~~~~~~ mm/share_pool.c:484:22: warning: 'spa_size' defined but not used [-Wunused-function] 484 | static unsigned long spa_size(struct sp_area *spa) | ^~~~~~~~ mm/share_pool.c:408:13: warning: 'free_spg_stat' defined but not used [-Wunused-function] 408 | static void free_spg_stat(int spg_id) | ^~~~~~~~~~~~~ mm/share_pool.c:385:12: warning: 'sp_init_spg_stat' defined but not used [-Wunused-function] 385 | static int sp_init_spg_stat(struct sp_group *spg) | ^~~~~~~~~~~~~~~~ mm/share_pool.c:344:30: warning: 'sp_init_process_stat' defined but not used [-Wunused-function] 344 | static struct spg_proc_stat *sp_init_process_stat(struct task_struct *tsk, | ^~~~~~~~~~~~~~~~~~~~ mm/share_pool.c:266:13: warning: 'update_spg_proc_stat_k2u' defined but not used [-Wunused-function] 266 | static void update_spg_proc_stat_k2u(unsigned long size, bool inc, | ^~~~~~~~~~~~~~~~~~~~~~~~ mm/share_pool.c:252:13: warning: 'update_spg_proc_stat_alloc' defined but not used [-Wunused-function] 252 | static void update_spg_proc_stat_alloc(unsigned long size, bool inc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ mm/share_pool.c:222:13: warning: 'update_spg_stat_k2u' defined but not used [-Wunused-function] 222 | static void update_spg_stat_k2u(unsigned long size, bool inc, | ^~~~~~~~~~~~~~~~~~~ mm/share_pool.c:200:13: warning: 'update_spg_stat_alloc' defined but not used [-Wunused-function] 200 | static void update_spg_stat_alloc(unsigned long size, bool inc, | ^~~~~~~~~~~~~~~~~~~~~ In file included from mm/share_pool.c:27: mm/share_pool.c:104:19: warning: 'sp_group_id_ida' defined but not used [-Wunused-variable] 104 | static DEFINE_IDA(sp_group_id_ida); | ^~~~~~~~~~~~~~~ include/linux/idr.h:253:44: note: in definition of macro 'DEFINE_IDA' 253 | #define DEFINE_IDA(name) struct ida name = IDA_INIT(name) | ^~~~ mm/share_pool.c:98:19: warning: 'sp_group_idr' defined but not used [-Wunused-variable] 98 | static DEFINE_IDR(sp_group_idr); | ^~~~~~~~~~~~ include/linux/idr.h:56:44: note: in definition of macro 'DEFINE_IDR' 56 | #define DEFINE_IDR(name) struct idr name = IDR_INIT(name) | ^~~~ mm/share_pool.c:81:18: warning: 'mdc_default_group_id' defined but not used [-Wunused-const-variable=] 81 | static const int mdc_default_group_id = 1; | ^~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PGP_KEY_PARSER Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] && ASYMMETRIC_PUBLIC_KEY_SUBTYPE [=n] Selected by [y]: - PGP_PRELOAD [=y] && CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=y] vim +/spa_stat_show +1215 mm/share_pool.c 1214
1215 static int spa_stat_show(struct seq_file *seq, void *offset) 1216 { 1217 spg_overview_show(seq); 1218 spa_overview_show(seq); 1219 /* print the file header */ 1220 seq_printf(seq, "%-10s %-16s %-16s %-10s %-7s %-5s %-8s %-8s\n", 1221 "Group ID", "va_start", "va_end", "Size(KB)", "Type", "Huge", "PID", "Ref"); 1222 rb_spa_stat_show(seq); 1223 return 0; 1224 } 1225
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot