diff options
author | Nadia Derbey <Nadia.Derbey@bull.net> | 2007-10-19 02:40:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:46 -0400 |
commit | 03f02c7657f7948ab980280c54c9366f962b1474 (patch) | |
tree | 7b1f564772077db0aed1e3c5a79ae77d2c1d2307 /ipc/util.h | |
parent | 023a53557ea0e987b002e9a844242ef0b0aa1eb3 (diff) |
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 <Nadia.Derbey@bull.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/util.h')
-rw-r--r-- | ipc/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/util.h b/ipc/util.h index c4b0a9865bf5..2a03d8cc6a01 100644 --- a/ipc/util.h +++ b/ipc/util.h | |||
@@ -61,8 +61,8 @@ struct ipc_params { | |||
61 | */ | 61 | */ |
62 | struct ipc_ops { | 62 | struct ipc_ops { |
63 | int (*getnew) (struct ipc_namespace *, struct ipc_params *); | 63 | int (*getnew) (struct ipc_namespace *, struct ipc_params *); |
64 | int (*associate) (void *, int); | 64 | int (*associate) (struct kern_ipc_perm *, int); |
65 | int (*more_checks) (void *, struct ipc_params *); | 65 | int (*more_checks) (struct kern_ipc_perm *, struct ipc_params *); |
66 | }; | 66 | }; |
67 | 67 | ||
68 | struct seq_file; | 68 | struct seq_file; |