From: kernel test robot <lkp@intel.com>
To: aubrey.li@linux.intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [anolis-intel-cloud:intel-6.6-add-OMR-event-ANBZ51468 11/11] include/linux/unevictable.h:51:57: warning: 'struct cgroup_taskset' declared inside parameter list will not be visible outside of this definition or declaration
Date: Sun, 18 Oct 2026 01:12:14 +0800 [thread overview]
Message-ID: <202610180028.pAt1zKtD-lkp@intel.com> (raw)
tree: https://gitee.com/anolis/intel-cloud-kernel.git intel-6.6-add-OMR-event-ANBZ51468
head: 2ee4460ef69eb7f1a40741d26df51a3565558ea4
commit: ca52bb27199fe783cfa248f43f8e86bcf15843c6 [11/11] anolis: mm/unevictable: re-arm text locking on post-scan dlopen
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20261018/202610180028.pAt1zKtD-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.4.0-5) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261018/202610180028.pAt1zKtD-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/202610180028.pAt1zKtD-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from mm/mmap.c:60:
>> include/linux/unevictable.h:51:57: warning: 'struct cgroup_taskset' declared inside parameter list will not be visible outside of this definition or declaration
51 | static inline void mem_cgroup_attach_unevictable(struct cgroup_taskset *tset)
| ^~~~~~~~~~~~~~
vim +51 include/linux/unevictable.h
acc0f6b61e192d Xin Hao 2022-12-02 10
acc0f6b61e192d Xin Hao 2022-12-02 11 static inline bool unevictable_enabled(void)
acc0f6b61e192d Xin Hao 2022-12-02 12 {
acc0f6b61e192d Xin Hao 2022-12-02 13 return static_branch_unlikely(&unevictable_enabled_key);
acc0f6b61e192d Xin Hao 2022-12-02 14 }
8586d4b5f2a5c4 Xin Hao 2022-12-03 15 bool is_memcg_unevictable_enabled(struct mem_cgroup *memcg);
8586d4b5f2a5c4 Xin Hao 2022-12-03 16 void memcg_increase_unevict_size(struct mem_cgroup *memcg, unsigned long size);
8586d4b5f2a5c4 Xin Hao 2022-12-03 17 void memcg_decrease_unevict_size(struct mem_cgroup *memcg, unsigned long size);
8586d4b5f2a5c4 Xin Hao 2022-12-03 18 bool is_unevictable_size_overflow(struct mem_cgroup *memcg);
8586d4b5f2a5c4 Xin Hao 2022-12-03 19 unsigned long memcg_exstat_text_unevict_gather(struct mem_cgroup *memcg);
9f95c5d2e9cad8 Zelin Deng 2026-09-01 20 void mem_cgroup_attach_unevictable(struct cgroup_taskset *tset);
8586d4b5f2a5c4 Xin Hao 2022-12-03 21 void memcg_all_processes_unevict(struct mem_cgroup *memcg, bool enable);
8586d4b5f2a5c4 Xin Hao 2022-12-03 22 void del_unevict_task(struct task_struct *tsk);
8586d4b5f2a5c4 Xin Hao 2022-12-03 23 void clean_task_unevict_size(struct task_struct *tsk);
d30f7906f08ec3 Zelin Deng 2026-09-01 24 void unevict_task_fork(struct task_struct *tsk);
ca52bb27199fe7 Zelin Deng 2026-09-18 25 void unevict_rearm_current(void);
acc0f6b61e192d Xin Hao 2022-12-02 26 #else
acc0f6b61e192d Xin Hao 2022-12-02 27 static inline bool unevictable_enabled(void)
acc0f6b61e192d Xin Hao 2022-12-02 28 {
acc0f6b61e192d Xin Hao 2022-12-02 29 return false;
acc0f6b61e192d Xin Hao 2022-12-02 30 }
8586d4b5f2a5c4 Xin Hao 2022-12-03 31 static inline bool is_memcg_unevictable_enabled(struct mem_cgroup *memcg)
8586d4b5f2a5c4 Xin Hao 2022-12-03 32 {
8586d4b5f2a5c4 Xin Hao 2022-12-03 33 return false;
8586d4b5f2a5c4 Xin Hao 2022-12-03 34 }
8586d4b5f2a5c4 Xin Hao 2022-12-03 35 static inline void memcg_increase_unevict_size(struct mem_cgroup *memcg,
8586d4b5f2a5c4 Xin Hao 2022-12-03 36 unsigned long size)
8586d4b5f2a5c4 Xin Hao 2022-12-03 37 {
8586d4b5f2a5c4 Xin Hao 2022-12-03 38 }
8586d4b5f2a5c4 Xin Hao 2022-12-03 39 static inline void memcg_decrease_unevict_size(struct mem_cgroup *memcg,
8586d4b5f2a5c4 Xin Hao 2022-12-03 40 unsigned long size)
8586d4b5f2a5c4 Xin Hao 2022-12-03 41 {
8586d4b5f2a5c4 Xin Hao 2022-12-03 42 }
8586d4b5f2a5c4 Xin Hao 2022-12-03 43 static inline bool is_unevictable_size_overflow(struct mem_cgroup *memcg)
8586d4b5f2a5c4 Xin Hao 2022-12-03 44 {
8586d4b5f2a5c4 Xin Hao 2022-12-03 45 return false;
8586d4b5f2a5c4 Xin Hao 2022-12-03 46 }
8586d4b5f2a5c4 Xin Hao 2022-12-03 47 static inline unsigned long memcg_exstat_text_unevict_gather(struct mem_cgroup *memcg)
8586d4b5f2a5c4 Xin Hao 2022-12-03 48 {
8586d4b5f2a5c4 Xin Hao 2022-12-03 49 return 0;
8586d4b5f2a5c4 Xin Hao 2022-12-03 50 }
9f95c5d2e9cad8 Zelin Deng 2026-09-01 @51 static inline void mem_cgroup_attach_unevictable(struct cgroup_taskset *tset)
:::::: The code at line 51 was first introduced by commit
:::::: 9f95c5d2e9cad8cbf1712aadceb8268703e0eff7 anolis: mm/unevictable: move cgroup migration arm/disarm from can_attach to attach
:::::: TO: Zelin Deng <zelin.deng@linux.alibaba.com>
:::::: CC: 小龙 <chenghaosong.chs@alibaba-inc.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-17 17:12 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=202610180028.pAt1zKtD-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.