mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Storing ipcs into IDRs
This patch converts casts of struct kern_ipc_perm to . struct msg_queue . struct sem_array . struct shmid_kernel into the equivalent container_of() macro. It improves code maintenance because the code need not change if kern_ipc_perm is no longer at the beginning of the containing struct. Signed-off-by: Nadia Derbey <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
023a53557e
commit
03f02c7657
4 changed files with 46 additions and 18 deletions
|
|
@ -61,8 +61,8 @@ struct ipc_params {
|
|||
*/
|
||||
struct ipc_ops {
|
||||
int (*getnew) (struct ipc_namespace *, struct ipc_params *);
|
||||
int (*associate) (void *, int);
|
||||
int (*more_checks) (void *, struct ipc_params *);
|
||||
int (*associate) (struct kern_ipc_perm *, int);
|
||||
int (*more_checks) (struct kern_ipc_perm *, struct ipc_params *);
|
||||
};
|
||||
|
||||
struct seq_file;
|
||||
|
|
|
|||
Loading…
Reference in a new issue