Commit be7928d2 authored by Daniel Borkmann's avatar Daniel Borkmann Committed by David S. Miller

net: xfrm: xfrm_policy: fix inline not at beginning of declaration

Fix three warnings related to:

  net/xfrm/xfrm_policy.c:1644:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
  net/xfrm/xfrm_policy.c:1656:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
  net/xfrm/xfrm_policy.c:1668:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]

Just removing the inline keyword is sufficient as the compiler will
decide on its own about inlining or not.
Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 74b9c3ea
...@@ -1641,20 +1641,20 @@ static struct dst_entry *xfrm_bundle_create(struct xfrm_policy *policy, ...@@ -1641,20 +1641,20 @@ static struct dst_entry *xfrm_bundle_create(struct xfrm_policy *policy,
goto out; goto out;
} }
static int inline static int xfrm_dst_alloc_copy(void **target, const void *src, int size)
xfrm_dst_alloc_copy(void **target, const void *src, int size)
{ {
if (!*target) { if (!*target) {
*target = kmalloc(size, GFP_ATOMIC); *target = kmalloc(size, GFP_ATOMIC);
if (!*target) if (!*target)
return -ENOMEM; return -ENOMEM;
} }
memcpy(*target, src, size); memcpy(*target, src, size);
return 0; return 0;
} }
static int inline static int xfrm_dst_update_parent(struct dst_entry *dst,
xfrm_dst_update_parent(struct dst_entry *dst, const struct xfrm_selector *sel) const struct xfrm_selector *sel)
{ {
#ifdef CONFIG_XFRM_SUB_POLICY #ifdef CONFIG_XFRM_SUB_POLICY
struct xfrm_dst *xdst = (struct xfrm_dst *)dst; struct xfrm_dst *xdst = (struct xfrm_dst *)dst;
...@@ -1665,8 +1665,8 @@ xfrm_dst_update_parent(struct dst_entry *dst, const struct xfrm_selector *sel) ...@@ -1665,8 +1665,8 @@ xfrm_dst_update_parent(struct dst_entry *dst, const struct xfrm_selector *sel)
#endif #endif
} }
static int inline static int xfrm_dst_update_origin(struct dst_entry *dst,
xfrm_dst_update_origin(struct dst_entry *dst, const struct flowi *fl) const struct flowi *fl)
{ {
#ifdef CONFIG_XFRM_SUB_POLICY #ifdef CONFIG_XFRM_SUB_POLICY
struct xfrm_dst *xdst = (struct xfrm_dst *)dst; struct xfrm_dst *xdst = (struct xfrm_dst *)dst;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment