Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

flow_offload: add const qualifiers to function arguments

Some functions do not modify the pointed-to data, but lack const
qualifiers. Add const qualifiers to the arguments of
flow_rule_match_has_control_flags() and flow_cls_offload_flow_rule().

Signed-off-by: David Yang <mmyangfl@gmail.com>
Link: https://patch.msgid.link/20260204052839.198602-1-mmyangfl@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

David Yang and committed by
Paolo Abeni
770e1126 651f7124

+2 -2
+2 -2
include/net/flow_offload.h
··· 526 526 * 527 527 * Return: true if control flags are set, false otherwise. 528 528 */ 529 - static inline bool flow_rule_match_has_control_flags(struct flow_rule *rule, 529 + static inline bool flow_rule_match_has_control_flags(const struct flow_rule *rule, 530 530 struct netlink_ext_ack *extack) 531 531 { 532 532 struct flow_match_control match; ··· 718 718 struct flow_offload_action *offload_action_alloc(unsigned int num_actions); 719 719 720 720 static inline struct flow_rule * 721 - flow_cls_offload_flow_rule(struct flow_cls_offload *flow_cmd) 721 + flow_cls_offload_flow_rule(const struct flow_cls_offload *flow_cmd) 722 722 { 723 723 return flow_cmd->rule; 724 724 }