aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/shm.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-04-15 19:17:54 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-15 19:35:24 -0400
commit7f032d6ef6154868a2a5d5f6b2c3f8587292196c (patch)
tree4defd42c0bcae9ad3f1272002e2f718aaa56e669 /ipc/shm.c
parent4395eb1f16cc55406fe3de4546134fc61253a06b (diff)
ipc: remove use of seq_printf return value
The seq_printf return value, because it's frequently misused, will eventually be converted to void. See: commit 1f33c41c03da ("seq_file: Rename seq_overflow() to seq_has_overflowed() and make public") Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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