All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Zheng Zengkai <zhengzengkai@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-5.10 2579/2579] mm/share_pool.c:1215:12: warning: 'spa_stat_show' defined but not used
Date: Fri, 13 Dec 2024 08:35:02 +0800	[thread overview]
Message-ID: <202412130822.tSyyPsoM-lkp@intel.com> (raw)

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@intel.com/config)
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@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 <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

                 reply	other threads:[~2024-12-13  0:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202412130822.tSyyPsoM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=zhengzengkai@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.