diff options
Diffstat (limited to 'include/linux/cgroup-defs.h')
-rw-r--r-- | include/linux/cgroup-defs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index 9f242b876fde..f8e76d01a5ad 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h | |||
@@ -755,13 +755,13 @@ struct sock_cgroup_data { | |||
755 | * updaters and return part of the previous pointer as the prioidx or | 755 | * updaters and return part of the previous pointer as the prioidx or |
756 | * classid. Such races are short-lived and the result isn't critical. | 756 | * classid. Such races are short-lived and the result isn't critical. |
757 | */ | 757 | */ |
758 | static inline u16 sock_cgroup_prioidx(struct sock_cgroup_data *skcd) | 758 | static inline u16 sock_cgroup_prioidx(const struct sock_cgroup_data *skcd) |
759 | { | 759 | { |
760 | /* fallback to 1 which is always the ID of the root cgroup */ | 760 | /* fallback to 1 which is always the ID of the root cgroup */ |
761 | return (skcd->is_data & 1) ? skcd->prioidx : 1; | 761 | return (skcd->is_data & 1) ? skcd->prioidx : 1; |
762 | } | 762 | } |
763 | 763 | ||
764 | static inline u32 sock_cgroup_classid(struct sock_cgroup_data *skcd) | 764 | static inline u32 sock_cgroup_classid(const struct sock_cgroup_data *skcd) |
765 | { | 765 | { |
766 | /* fallback to 0 which is the unconfigured default classid */ | 766 | /* fallback to 0 which is the unconfigured default classid */ |
767 | return (skcd->is_data & 1) ? skcd->classid : 0; | 767 | return (skcd->is_data & 1) ? skcd->classid : 0; |