Skip to content

Commit c67b627

Browse files
dsahernkuba-moo
authored andcommitted
net: Make msg_zerocopy_alloc static
msg_zerocopy_alloc is only used by msg_zerocopy_realloc; remove the export and make static in skbuff.c Signed-off-by: David Ahern <dsahern@kernel.org> Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com> Link: https://lore.kernel.org/r/20220504170947.18773-1-dsahern@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 8d602e1 commit c67b627

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

include/linux/skbuff.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,6 @@ static inline void skb_set_end_offset(struct sk_buff *skb, unsigned int offset)
16651665
}
16661666
#endif
16671667

1668-
struct ubuf_info *msg_zerocopy_alloc(struct sock *sk, size_t size);
16691668
struct ubuf_info *msg_zerocopy_realloc(struct sock *sk, size_t size,
16701669
struct ubuf_info *uarg);
16711670

net/core/skbuff.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ void mm_unaccount_pinned_pages(struct mmpin *mmp)
11651165
}
11661166
EXPORT_SYMBOL_GPL(mm_unaccount_pinned_pages);
11671167

1168-
struct ubuf_info *msg_zerocopy_alloc(struct sock *sk, size_t size)
1168+
static struct ubuf_info *msg_zerocopy_alloc(struct sock *sk, size_t size)
11691169
{
11701170
struct ubuf_info *uarg;
11711171
struct sk_buff *skb;
@@ -1196,7 +1196,6 @@ struct ubuf_info *msg_zerocopy_alloc(struct sock *sk, size_t size)
11961196

11971197
return uarg;
11981198
}
1199-
EXPORT_SYMBOL_GPL(msg_zerocopy_alloc);
12001199

12011200
static inline struct sk_buff *skb_from_uarg(struct ubuf_info *uarg)
12021201
{

0 commit comments

Comments
 (0)