All of lore.kernel.org
 help / color / mirror / Atom feed
* [cgroup:review-tracepoints 4/5] kernel/sched/debug.c:413:2: warning: return makes pointer from integer without a cast
@ 2016-08-09  5:49 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-08-09  5:49 UTC (permalink / raw)
  To: Tejun Heo; +Cc: kbuild-all-JC7UmRfGjtg, cgroups-u79uwXL29TY76Z2rM5mHXA

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

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-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
:::::: CC: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27164 bytes --]

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

only message in thread, other threads:[~2016-08-09  5:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-09  5:49 [cgroup:review-tracepoints 4/5] kernel/sched/debug.c:413:2: warning: return makes pointer from integer without a cast 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.