From: kernel test robot <lkp@intel.com>
To: aubrey.li@linux.intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [anolis-intel-cloud:devel-5.10 19/19] mm/unevictable.c:156:6: warning: no previous prototype for 'del_unevict_task'
Date: Fri, 25 Apr 2025 10:35:00 +0800 [thread overview]
Message-ID: <202504251037.Ei4ihIzR-lkp@intel.com> (raw)
tree: https://gitee.com/anolis/intel-cloud-kernel.git devel-5.10
head: 4bad2cd1902185593ae2d7cdf67ac43d5aa2dfe9
commit: bba8483e73c9dae0b5c67f8143dc8f922a07580b [19/19] anolis: mm: unevictable: adjust three key functions
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20250425/202504251037.Ei4ihIzR-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250425/202504251037.Ei4ihIzR-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/202504251037.Ei4ihIzR-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/unevictable.c:156:6: warning: no previous prototype for 'del_unevict_task' [-Wmissing-prototypes]
156 | void del_unevict_task(struct task_struct *tsk)
| ^~~~~~~~~~~~~~~~
mm/unevictable.c:537:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
537 | const static struct proc_ops add_proc_fops = {
| ^~~~~
mm/unevictable.c:545:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
545 | const static struct proc_ops del_proc_fops = {
| ^~~~~
mm/unevictable.c:545:30: warning: 'del_proc_fops' defined but not used [-Wunused-const-variable=]
545 | const static struct proc_ops del_proc_fops = {
| ^~~~~~~~~~~~~
mm/unevictable.c:537:30: warning: 'add_proc_fops' defined but not used [-Wunused-const-variable=]
537 | const static struct proc_ops add_proc_fops = {
| ^~~~~~~~~~~~~
vim +/del_unevict_task +156 mm/unevictable.c
155
> 156 void del_unevict_task(struct task_struct *tsk)
157 {
158 struct evict_pid_entry *result;
159
160 if (!tsk) {
161 struct evict_pid_entry *pid_entry, *tmp;
162
163 mutex_lock(&pid_mutex);
164 list_for_each_entry_safe(pid_entry, tmp, &pid_list, list) {
165 rcu_read_lock();
166 tsk = find_task_by_pid_ns(pid_entry->rootpid,
167 &init_pid_ns);
168 rcu_read_unlock();
169 if (!tsk) {
170 list_del(&pid_entry->list);
171 __remove_entry(pid_entry);
172 kfree(pid_entry);
173 }
174 }
175 mutex_unlock(&pid_mutex);
176 return;
177 }
178
179 mutex_lock(&pid_mutex);
180 result = lookup_unevict_entry(tsk);
181 if (result) {
182 list_del(&result->list);
183 __remove_entry(result);
184 mutex_unlock(&pid_mutex);
185 __evict_pid(result);
186 kfree(result);
187 } else
188 mutex_unlock(&pid_mutex);
189 }
190
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-04-25 2:35 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=202504251037.Ei4ihIzR-lkp@intel.com \
--to=lkp@intel.com \
--cc=aubrey.li@linux.intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.