All of lore.kernel.org
 help / color / mirror / Atom feed
* [brauner:clone_into_cgroup 4/5] include/linux/cgroup.h:719:14: warning: 'struct kernel_clone_args' declared inside parameter list will not be visible outside of this definition or declaration
@ 2020-01-16 23:16 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-16 23:16 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3261 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git clone_into_cgroup
head:   bcee1c13b6d8b10d4760fb74c4dfd3c0fe7d8414
commit: 5f6ef2aac1cac9e3925f2447e2a8738ce13a7153 [4/5] clone3: allow spawning processes into cgroups
config: xtensa-common_defconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5f6ef2aac1cac9e3925f2447e2a8738ce13a7153
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=xtensa 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/memcontrol.h:13:0,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from init/do_mounts.c:7:
>> include/linux/cgroup.h:719:14: warning: 'struct kernel_clone_args' declared inside parameter list will not be visible outside of this definition or declaration
          struct kernel_clone_args *kargs) { return 0; }
                 ^~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:722:18: warning: 'struct kernel_clone_args' declared inside parameter list will not be visible outside of this definition or declaration
              struct kernel_clone_args *kargs) {};
                     ^~~~~~~~~~~~~~~~~
   include/linux/cgroup.h:725:16: warning: 'struct kernel_clone_args' declared inside parameter list will not be visible outside of this definition or declaration
            struct kernel_clone_args *kargs) {};
                   ^~~~~~~~~~~~~~~~~

vim +719 include/linux/cgroup.h

   707	
   708	static inline u64 cgroup_id(struct cgroup *cgrp) { return 1; }
   709	static inline void css_get(struct cgroup_subsys_state *css) {}
   710	static inline void css_put(struct cgroup_subsys_state *css) {}
   711	static inline int cgroup_attach_task_all(struct task_struct *from,
   712						 struct task_struct *t) { return 0; }
   713	static inline int cgroupstats_build(struct cgroupstats *stats,
   714					    struct dentry *dentry) { return -EINVAL; }
   715	
   716	static inline void cgroup_fork(struct task_struct *p) {}
   717	static inline int cgroup_can_fork(struct task_struct *parent,
   718					  struct task_struct *child,
 > 719					  struct kernel_clone_args *kargs) { return 0; }
   720	static inline void cgroup_cancel_fork(struct task_struct *parent,
   721					      struct task_struct *child,
   722					      struct kernel_clone_args *kargs) {};
   723	static inline void cgroup_post_fork(struct task_struct *parent,
   724					    struct task_struct *child,
   725					    struct kernel_clone_args *kargs) {};
   726	static inline void cgroup_exit(struct task_struct *p) {}
   727	static inline void cgroup_release(struct task_struct *p) {}
   728	static inline void cgroup_free(struct task_struct *p) {}
   729	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 10551 bytes --]

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

only message in thread, other threads:[~2020-01-16 23:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16 23:16 [brauner:clone_into_cgroup 4/5] include/linux/cgroup.h:719:14: warning: 'struct kernel_clone_args' declared inside parameter list will not be visible outside of this definition or declaration kbuild 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.