[PATCH 0/2] Misc cleanups for ipc

From: Manfred Spraul
Date: Mon May 15 2017 - 13:19:27 EST


Hi all,

could you check the following three patches?

As explained, I try to combine the changes for static analyzers and for
the randstruct gcc plugin with cleanups.

0001-ipc-sem.c-remove-sem_base-embed-struct-sem.patch:
sem_base is not needed. Instead of improving the casts,
remove it entirely.

0002-ipc-merge-ipc_rcu-and-kern_ipc_perm.patch
struct ipc_rcu and struct kern_ipc_perm are always used together.
Thus merge them.

0003-include-linux-sem.h-Correctly-document-sem_ctime.patch
Noticed by chance: The comment regarding sem_ctime is wrong/
misleading.
And man semctl(2) contains the same wrong comment.

Especially:
@Kees: Do the patches resolve all warnings?

@Andrew: Could you add them to your tree?
And can we still aim for 4.13?

@Michael:
Should we update man semctl(2)?
Several years ago, I did a review and found that sem_ctime is only
for Coherent the time of the last change...

http://calculix-rpm.sourceforge.net/sysvsem.html

--
Manfred