[cgroup:for-4.15 8/8] kernel/cgroup/cgroup.c:3360: warning: unused variable 'cgrp'

[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 for-4.15
head:   d41bf8c9deaed1a90b18d3ffc5639d4c19f0259a
commit: d41bf8c9deaed1a90b18d3ffc5639d4c19f0259a [8/8] cgroup, sched: Move basic cpu stats from cgroup.stat to cpu.stat
config: x86_64-randconfig-a0-10270506 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        git checkout d41bf8c9deaed1a90b18d3ffc5639d4c19f0259a
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   kernel/cgroup/cgroup.c: In function 'cpu_stat_show':
>> kernel/cgroup/cgroup.c:3360: warning: unused variable 'cgrp'

vim +/cgrp +3360 kernel/cgroup/cgroup.c

  3357	
  3358	static int cpu_stat_show(struct seq_file *seq, void *v)
  3359	{
> 3360		struct cgroup *cgrp = seq_css(seq)->cgroup;
  3361		int ret = 0;
  3362	
  3363		cgroup_stat_show_cputime(seq);
  3364	#ifdef CONFIG_CGROUP_SCHED
  3365		ret = cgroup_extra_stat_show(seq, cgrp, cpu_cgrp_id);
  3366	#endif
  3367		return ret;
  3368	}
  3369	

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

Attachment: .config.gz
Description: application/gzip


[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