All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2024-05-04  3:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-04  3:25 UTC (permalink / raw)
  To: Roman Gushchin; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-04  3:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-04  3:25 [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 kernel test robot

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.