All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Roman Gushchin <roman.gushchin@linux.dev>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [rgushchin:memcontrol_v1.1 3/3] mm/internal.h:1542:38: warning: 'struct cgroup_taskset' declared inside parameter list will not be visible outside of this definition or declaration
Date: Sat, 4 May 2024 11:25:43 +0800	[thread overview]
Message-ID: <202405041100.RZRTURAx-lkp@intel.com> (raw)

tree:   https://github.com/rgushchin/linux.git memcontrol_v1.1
head:   c5d0efd9ad4acbcf666aed6e47e15d1feefa4ff0
commit: c5d0efd9ad4acbcf666aed6e47e15d1feefa4ff0 [3/3] mm: memcg: move charge migration code to memcontrol-v1.c
config: openrisc-allnoconfig (https://download.01.org/0day-ci/archive/20240504/202405041100.RZRTURAx-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240504/202405041100.RZRTURAx-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/202405041100.RZRTURAx-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from mm/filemap.c:51:
>> mm/internal.h:1542:38: warning: 'struct cgroup_taskset' declared inside parameter list will not be visible outside of this definition or declaration
    1542 | void mem_cgroup_cancel_attach(struct cgroup_taskset *tset);
         |                                      ^~~~~~~~~~~~~~
   mm/internal.h:1543:34: warning: 'struct cgroup_taskset' declared inside parameter list will not be visible outside of this definition or declaration
    1543 | int mem_cgroup_can_attach(struct cgroup_taskset *tset);
         |                                  ^~~~~~~~~~~~~~
>> mm/internal.h:1545:40: warning: 'struct cftype' declared inside parameter list will not be visible outside of this definition or declaration
    1545 |                                 struct cftype *cft);
         |                                        ^~~~~~
   mm/internal.h:1547:41: warning: 'struct cftype' declared inside parameter list will not be visible outside of this definition or declaration
    1547 |                                  struct cftype *cft, u64 val);
         |                                         ^~~~~~
--
   In file included from mm/page-writeback.c:43:
>> mm/internal.h:1542:38: warning: 'struct cgroup_taskset' declared inside parameter list will not be visible outside of this definition or declaration
    1542 | void mem_cgroup_cancel_attach(struct cgroup_taskset *tset);
         |                                      ^~~~~~~~~~~~~~
   mm/internal.h:1543:34: warning: 'struct cgroup_taskset' declared inside parameter list will not be visible outside of this definition or declaration
    1543 | int mem_cgroup_can_attach(struct cgroup_taskset *tset);
         |                                  ^~~~~~~~~~~~~~
>> mm/internal.h:1545:40: warning: 'struct cftype' declared inside parameter list will not be visible outside of this definition or declaration
    1545 |                                 struct cftype *cft);
         |                                        ^~~~~~
   mm/internal.h:1547:41: warning: 'struct cftype' declared inside parameter list will not be visible outside of this definition or declaration
    1547 |                                  struct cftype *cft, u64 val);
         |                                         ^~~~~~
   mm/page-writeback.c: In function 'cgwb_calc_thresh':
   mm/page-writeback.c:900:39: warning: variable 'gdtc' set but not used [-Wunused-but-set-variable]
     900 |         struct dirty_throttle_control gdtc = { GDTC_INIT_NO_WB };
         |                                       ^~~~
--
   In file included from mm/slub.c:49:
>> mm/internal.h:1542:38: warning: 'struct cgroup_taskset' declared inside parameter list will not be visible outside of this definition or declaration
    1542 | void mem_cgroup_cancel_attach(struct cgroup_taskset *tset);
         |                                      ^~~~~~~~~~~~~~
   mm/internal.h:1543:34: warning: 'struct cgroup_taskset' declared inside parameter list will not be visible outside of this definition or declaration
    1543 | int mem_cgroup_can_attach(struct cgroup_taskset *tset);
         |                                  ^~~~~~~~~~~~~~
>> mm/internal.h:1545:40: warning: 'struct cftype' declared inside parameter list will not be visible outside of this definition or declaration
    1545 |                                 struct cftype *cft);
         |                                        ^~~~~~
   mm/internal.h:1547:41: warning: 'struct cftype' declared inside parameter list will not be visible outside of this definition or declaration
    1547 |                                  struct cftype *cft, u64 val);
         |                                         ^~~~~~
   mm/slub.c: In function 'slab_post_alloc_hook':
   mm/slub.c:3831:29: warning: variable 'obj_exts' set but not used [-Wunused-but-set-variable]
    3831 |         struct slabobj_ext *obj_exts;
         |                             ^~~~~~~~


vim +1542 mm/internal.h

  1540	
  1541	void mem_cgroup_move_task(void);
> 1542	void mem_cgroup_cancel_attach(struct cgroup_taskset *tset);
  1543	int mem_cgroup_can_attach(struct cgroup_taskset *tset);
  1544	u64 mem_cgroup_move_charge_read(struct cgroup_subsys_state *css,
> 1545					struct cftype *cft);
  1546	int mem_cgroup_move_charge_write(struct cgroup_subsys_state *css,
  1547					 struct cftype *cft, u64 val);
  1548	void __folio_memcg_unlock(struct mem_cgroup *memcg);
  1549	bool mem_cgroup_wait_acct_move(struct mem_cgroup *memcg);
  1550	void mem_cgroup_charge_statistics(struct mem_cgroup *memcg, int nr_pages);
  1551	void memcg_check_events(struct mem_cgroup *memcg, int nid);
  1552	void __maybe_unused mem_cgroup_id_get_many(struct mem_cgroup *memcg,
  1553						   unsigned int n);
  1554	void mem_cgroup_id_put_many(struct mem_cgroup *memcg, unsigned int n);
  1555	void memcg_oom_recover(struct mem_cgroup *memcg);
  1556	

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

                 reply	other threads:[~2024-05-04  3:26 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=202405041100.RZRTURAx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=roman.gushchin@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.