[cgroup:for-4.8 4/4] kernel/cgroup_pids.c:313:24: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int'

[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.8
head:   135b8b37bd91cc82f83e98fca109b80375f5317e
commit: 135b8b37bd91cc82f83e98fca109b80375f5317e [4/4] cgroup: Add pids controller event when fork fails because of pid limit
config: i386-randconfig-s0-201625 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 135b8b37bd91cc82f83e98fca109b80375f5317e
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   kernel/cgroup_pids.c: In function 'pids_events_show':
>> kernel/cgroup_pids.c:313:24: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=]
     seq_printf(sf, "max %ld\n", atomic64_read(&pids->events_limit));
                           ^

vim +313 kernel/cgroup_pids.c

   297	
   298		return 0;
   299	}
   300	
   301	static s64 pids_current_read(struct cgroup_subsys_state *css,
   302				     struct cftype *cft)
   303	{
   304		struct pids_cgroup *pids = css_pids(css);
   305	
   306		return atomic64_read(&pids->counter);
   307	}
   308	
   309	static int pids_events_show(struct seq_file *sf, void *v)
   310	{
   311		struct pids_cgroup *pids = css_pids(seq_css(sf));
   312	
 > 313		seq_printf(sf, "max %ld\n", atomic64_read(&pids->events_limit));
   314		return 0;
   315	}
   316	
   317	static struct cftype pids_files[] = {
   318		{
   319			.name = "max",
   320			.write = pids_max_write,
   321			.seq_show = pids_max_show,

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