[cgroup:review-cgroup2-rgroup 55/58] include/linux/cgroup.h:552:1: warning: no return statement in function returning non-void

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-cgroup2-rgroup
head:   b8a6f70a51d537bf2a1fd47b90a29af6807ad978
commit: 1e9fdf21c0176c14ca30b3c5c4ed0bf57581eb69 [55/58] cgroup: introduce resource group
config: i386-tinyconfig (attached as .config)
reproduce:
        git checkout 1e9fdf21c0176c14ca30b3c5c4ed0bf57581eb69
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from include/linux/memcontrol.h:22:0,
                    from include/linux/swap.h:8,
                    from include/linux/suspend.h:4,
                    from arch/x86/kernel/asm-offsets.c:12:
   include/linux/cgroup.h: In function 'cgroup_exec':
>> include/linux/cgroup.h:552:1: warning: no return statement in function returning non-void [-Wreturn-type]
    static inline int cgroup_exec(void) {}
    ^

vim +552 include/linux/cgroup.h

   536	
   537	static inline void css_put(struct cgroup_subsys_state *css) {}
   538	static inline int cgroup_attach_task_all(struct task_struct *from,
   539						 struct task_struct *t) { return 0; }
   540	static inline int cgroupstats_build(struct cgroupstats *stats,
   541					    struct dentry *dentry) { return -EINVAL; }
   542	
   543	static inline int cgroup_can_fork(struct task_struct *p,
   544					  unsigned long clone_flags,
   545					  struct css_set **new_rgrp_csetp) { return 0; }
   546	static inline void cgroup_cancel_fork(struct task_struct *p,
   547					      unsigned long clone_flags,
   548					      struct css_set *new_rgrp_cset) {}
   549	static inline void cgroup_post_fork(struct task_struct *p,
   550					    unsigned long clone_flags,
   551					    struct css_set *new_rgrp_cset) {}
 > 552	static inline int cgroup_exec(void) {}
   553	static inline void cgroup_exit(struct task_struct *p) {}
   554	static inline void cgroup_free(struct task_struct *p) {}
   555	
   556	static inline int cgroup_init_early(void) { return 0; }
   557	static inline int cgroup_init(void) { return 0; }
   558	
   559	#endif /* !CONFIG_CGROUPS */
   560	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux