[cgroup:review-tracepoints 4/5] kernel/sched/debug.c:413:2: warning: return makes pointer from integer without a cast

[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-tracepoints
head:   471f89b317a21a78dacaee85957984b9f11e79e4
commit: d8126ae9d03560e125a53c0c01b16fce20593b0d [4/5] cgroup: make cgroup_path() and friends behave in the style of strlcpy()
config: i386-randconfig-i1-201632 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
        git checkout d8126ae9d03560e125a53c0c01b16fce20593b0d
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   kernel/sched/debug.c: In function 'task_group_path':
>> kernel/sched/debug.c:413:2: warning: return makes pointer from integer without a cast [enabled by default]
     return cgroup_path(tg->css.cgroup, group_path, PATH_MAX);
     ^

vim +413 kernel/sched/debug.c

9d89c257 kernel/sched/debug.c Yuyang Du     2015-07-15  397  	P(se->avg.load_avg);
9d89c257 kernel/sched/debug.c Yuyang Du     2015-07-15  398  	P(se->avg.util_avg);
9d85f21c kernel/sched/debug.c Paul Turner   2012-10-04  399  #endif
ff9b48c3 kernel/sched_debug.c Bharata B Rao 2008-11-10  400  #undef PN
ff9b48c3 kernel/sched_debug.c Bharata B Rao 2008-11-10  401  #undef P
ff9b48c3 kernel/sched_debug.c Bharata B Rao 2008-11-10  402  }
ff9b48c3 kernel/sched_debug.c Bharata B Rao 2008-11-10  403  #endif
ff9b48c3 kernel/sched_debug.c Bharata B Rao 2008-11-10  404  
efe25c2c kernel/sched_debug.c Bharata B Rao 2011-01-11  405  #ifdef CONFIG_CGROUP_SCHED
efe25c2c kernel/sched_debug.c Bharata B Rao 2011-01-11  406  static char group_path[PATH_MAX];
efe25c2c kernel/sched_debug.c Bharata B Rao 2011-01-11  407  
efe25c2c kernel/sched_debug.c Bharata B Rao 2011-01-11  408  static char *task_group_path(struct task_group *tg)
efe25c2c kernel/sched_debug.c Bharata B Rao 2011-01-11  409  {
8ecedd7a kernel/sched_debug.c Bharata B Rao 2011-01-11  410  	if (autogroup_path(tg, group_path, PATH_MAX))
8ecedd7a kernel/sched_debug.c Bharata B Rao 2011-01-11  411  		return group_path;
8ecedd7a kernel/sched_debug.c Bharata B Rao 2011-01-11  412  
e61734c5 kernel/sched/debug.c Tejun Heo     2014-02-12 @413  	return cgroup_path(tg->css.cgroup, group_path, PATH_MAX);
efe25c2c kernel/sched_debug.c Bharata B Rao 2011-01-11  414  }
efe25c2c kernel/sched_debug.c Bharata B Rao 2011-01-11  415  #endif
efe25c2c kernel/sched_debug.c Bharata B Rao 2011-01-11  416  
43ae34cb kernel/sched_debug.c Ingo Molnar   2007-07-09  417  static void
a48da48b kernel/sched_debug.c Ingo Molnar   2007-08-09  418  print_task(struct seq_file *m, struct rq *rq, struct task_struct *p)
43ae34cb kernel/sched_debug.c Ingo Molnar   2007-07-09  419  {
43ae34cb kernel/sched_debug.c Ingo Molnar   2007-07-09  420  	if (rq->curr == p)
43ae34cb kernel/sched_debug.c Ingo Molnar   2007-07-09  421  		SEQ_printf(m, "R");

:::::: The code at line 413 was first introduced by commit
:::::: e61734c55c24cdf11b07e52a74aec4dc4a7f4bd0 cgroup: remove cgroup->name

:::::: TO: Tejun Heo <tj@xxxxxxxxxx>
:::::: CC: Tejun Heo <tj@xxxxxxxxxx>

---
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