diff options
author | Greg Kroah-Hartman <[email protected]> | 2022-11-21 10:46:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-11-22 17:34:29 +0100 |
commit | 02a476d932287cf3096f78962ccb70d94d6203c6 (patch) | |
tree | 4c72ed46d5be5fa0f1bc606f63b2e999ebc13082 /lib/mpi/mpi-mod.c | |
parent | 05df6ab8eba625a1d97eb67ee06d786b8e460685 (diff) |
kobject: make kobject_get_ownership() take a constant kobject *
The call, kobject_get_ownership(), does not modify the kobject passed
into it, so make it const. This propagates down into the kobj_type
function callbacks so make the kobject passed into them also const,
ensuring that nothing in the kobject is being changed here.
This helps make it more obvious what calls and callbacks do, and do not,
modify structures passed to them.
Cc: Trond Myklebust <[email protected]>
Cc: Anna Schumaker <[email protected]>
Cc: Roopa Prabhu <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Chuck Lever <[email protected]>
Cc: Jeff Layton <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Acked-by: Jakub Kicinski <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Acked-by: Nikolay Aleksandrov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions