]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - kernel/cgroup_pids.c
cgroup: Use lld instead of ld when printing pids controller events_limit
authorKenny Yu <kennyyu@fb.com>
Tue, 21 Jun 2016 18:55:35 +0000 (11:55 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 21 Jun 2016 19:03:36 +0000 (15:03 -0400)
commit9f6870dd9790dd87da1d0cf9e43e60113f3a278d
treea2d81063b5e6bff867fc49db5702de4e3c9e7839
parent135b8b37bd91cc82f83e98fca109b80375f5317e
cgroup: Use lld instead of ld when printing pids controller events_limit

The `events_limit` variable needs to be formatted with %lld and not %ld.
This fixes the following warning discovered by kbuild test robot:

   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));
                                   ^

tj: Added explicit (s64) cast as atomic64 switches between long long
    and long depending on 32 or 64.

Signed-off-by: Kenny Yu <kennyyu@fb.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup_pids.c