Skip to content

Commit 3f0e18f

Browse files
committed
xfrm: Mark flowi arg to xfrm_dst_{alloc_copy,update_origin}() const.
Signed-off-by: David S. Miller <[email protected]>
1 parent 98313ad commit 3f0e18f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/xfrm/xfrm_policy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ static struct dst_entry *xfrm_bundle_create(struct xfrm_policy *policy,
15061506
}
15071507

15081508
static int inline
1509-
xfrm_dst_alloc_copy(void **target, void *src, int size)
1509+
xfrm_dst_alloc_copy(void **target, const void *src, int size)
15101510
{
15111511
if (!*target) {
15121512
*target = kmalloc(size, GFP_ATOMIC);
@@ -1530,7 +1530,7 @@ xfrm_dst_update_parent(struct dst_entry *dst, struct xfrm_selector *sel)
15301530
}
15311531

15321532
static int inline
1533-
xfrm_dst_update_origin(struct dst_entry *dst, struct flowi *fl)
1533+
xfrm_dst_update_origin(struct dst_entry *dst, const struct flowi *fl)
15341534
{
15351535
#ifdef CONFIG_XFRM_SUB_POLICY
15361536
struct xfrm_dst *xdst = (struct xfrm_dst *)dst;

0 commit comments

Comments
 (0)