All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Yang Yingliang <yangyingliang@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:openEuler-1.0-LTS 1341/1341] mm/share_pool.c:2121:12: warning: 'proc_stat_show' defined but not used
Date: Fri, 20 Dec 2024 14:55:21 +0800	[thread overview]
Message-ID: <202412201455.A4yCBFrP-lkp@intel.com> (raw)

Hi Ding,

FYI, the error/warning still remains.

tree:   https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head:   02951ceaa6d546dfa0f741f52f6d47e0fb0ac7b4
commit: 4a280fac30d27ae2aff096f9f99aa12d50f83426 [1341/1341] ascend: share_pool: support share pool features for ascend platform
config: arm64-randconfig-003-20241220 (https://download.01.org/0day-ci/archive/20241220/202412201455.A4yCBFrP-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/20241220/202412201455.A4yCBFrP-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/202412201455.A4yCBFrP-lkp@intel.com/

All warnings (new ones prefixed by >>):

   mm/share_pool.c:2235:12: warning: 'spa_stat_show' defined but not used [-Wunused-function]
    2235 | static int spa_stat_show(struct seq_file *seq, void *offset)
         |            ^~~~~~~~~~~~~
>> mm/share_pool.c:2121:12: warning: 'proc_stat_show' defined but not used [-Wunused-function]
    2121 | static int proc_stat_show(struct seq_file *seq, void *offset)
         |            ^~~~~~~~~~~~~~
   mm/share_pool.c:1069: warning: Function parameter or member 'size' not described in 'sp_alloc'
   mm/share_pool.c:1069: warning: Function parameter or member 'sp_flags' not described in 'sp_alloc'
   mm/share_pool.c:1069: warning: Function parameter or member 'spg_id' not described in 'sp_alloc'
   mm/share_pool.c:1582: warning: Function parameter or member 'uva' not described in '__sp_walk_page_range'
   mm/share_pool.c:1582: warning: Function parameter or member 'size' not described in '__sp_walk_page_range'
   mm/share_pool.c:1582: warning: Function parameter or member 'tsk' not described in '__sp_walk_page_range'
   mm/share_pool.c:1582: warning: Function parameter or member 'sp_walk_data' not described in '__sp_walk_page_range'
   mm/share_pool.c:1931: warning: Function parameter or member 'uva' not described in 'sp_walk_page_range'
   mm/share_pool.c:1931: warning: Function parameter or member 'size' not described in 'sp_walk_page_range'
   mm/share_pool.c:1931: warning: Function parameter or member 'tsk' not described in 'sp_walk_page_range'
   mm/share_pool.c:1931: warning: Function parameter or member 'sp_walk_data' not described in 'sp_walk_page_range'


vim +/proc_stat_show +2121 mm/share_pool.c

  2120	
> 2121	static int proc_stat_show(struct seq_file *seq, void *offset)
  2122	{
  2123		/* print the file header */
  2124		seq_printf(seq, "%-12s %-10s %-18s\n",
  2125			   "Process ID", "Group ID", "Aligned Apply(KB)");
  2126		/* print kthread buff_module_guard_work */
  2127		seq_printf(seq, "%-12s %-10s %-18ld\n",
  2128			   "guard", "-", byte2kb(kthread_stat.amount));
  2129		idr_for_each(&sp_stat_idr, idr_proc_stat_cb, seq);
  2130		return 0;
  2131	}
  2132	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-12-20  6:55 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=202412201455.A4yCBFrP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=yangyingliang@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.