aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/shm.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-04-15 19:39:15 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-15 19:39:15 -0400
commiteea3a00264cf243a28e4331566ce67b86059339d (patch)
tree487f16389e0dfa32e9caa7604d1274a7dcda8f04 /ipc/shm.c
parente7c82412433a8039616c7314533a0a1c025d99bf (diff)
parente693d73c20ffdb06840c9378f367bad849ac0d5d (diff)
Merge branch 'akpm' (patches from Andrew)
Merge second patchbomb from Andrew Morton: - the rest of MM - various misc bits - add ability to run /sbin/reboot at reboot time - printk/vsprintf changes - fiddle with seq_printf() return value * akpm: (114 commits) parisc: remove use of seq_printf return value lru_cache: remove use of seq_printf return value tracing: remove use of seq_printf return value cgroup: remove use of seq_printf return value proc: remove use of seq_printf return value s390: remove use of seq_printf return value cris fasttimer: remove use of seq_printf return value cris: remove use of seq_printf return value openrisc: remove use of seq_printf return value ARM: plat-pxa: remove use of seq_printf return value nios2: cpuinfo: remove use of seq_printf return value microblaze: mb: remove use of seq_printf return value ipc: remove use of seq_printf return value rtc: remove use of seq_printf return value power: wakeup: remove use of seq_printf return value x86: mtrr: if: remove use of seq_printf return value linux/bitmap.h: improve BITMAP_{LAST,FIRST}_WORD_MASK MAINTAINERS: CREDITS: remove Stefano Brivio from B43 .mailmap: add Ricardo Ribalda CREDITS: add Ricardo Ribalda Delgado ...
Diffstat (limited to 'ipc/shm.c')
-rw-r--r--ipc/shm.c42
1 files changed, 22 insertions, 20 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index 19633b4a2350..d280a74af2ef 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -1342,25 +1342,27 @@ static int sysvipc_shm_proc_show(struct seq_file *s, void *it)
1342#define SIZE_SPEC "%21lu" 1342#define SIZE_SPEC "%21lu"
1343#endif 1343#endif
1344 1344
1345 return seq_printf(s, 1345 seq_printf(s,
1346 "%10d %10d %4o " SIZE_SPEC " %5u %5u " 1346 "%10d %10d %4o " SIZE_SPEC " %5u %5u "
1347 "%5lu %5u %5u %5u %5u %10lu %10lu %10lu " 1347 "%5lu %5u %5u %5u %5u %10lu %10lu %10lu "
1348 SIZE_SPEC " " SIZE_SPEC "\n", 1348 SIZE_SPEC " " SIZE_SPEC "\n",
1349 shp->shm_perm.key, 1349 shp->shm_perm.key,
1350 shp->shm_perm.id, 1350 shp->shm_perm.id,
1351 shp->shm_perm.mode, 1351 shp->shm_perm.mode,
1352 shp->shm_segsz, 1352 shp->shm_segsz,
1353 shp->shm_cprid, 1353 shp->shm_cprid,
1354 shp->shm_lprid, 1354 shp->shm_lprid,
1355 shp->shm_nattch, 1355 shp->shm_nattch,
1356 from_kuid_munged(user_ns, shp->shm_perm.uid), 1356 from_kuid_munged(user_ns, shp->shm_perm.uid),
1357 from_kgid_munged(user_ns, shp->shm_perm.gid), 1357 from_kgid_munged(user_ns, shp->shm_perm.gid),
1358 from_kuid_munged(user_ns, shp->shm_perm.cuid), 1358 from_kuid_munged(user_ns, shp->shm_perm.cuid),
1359 from_kgid_munged(user_ns, shp->shm_perm.cgid), 1359 from_kgid_munged(user_ns, shp->shm_perm.cgid),
1360 shp->shm_atim, 1360 shp->shm_atim,
1361 shp->shm_dtim, 1361 shp->shm_dtim,
1362 shp->shm_ctim, 1362 shp->shm_ctim,
1363 rss * PAGE_SIZE, 1363 rss * PAGE_SIZE,
1364 swp * PAGE_SIZE); 1364 swp * PAGE_SIZE);
1365
1366 return 0;
1365} 1367}
1366#endif 1368#endif