mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-26 12:26:11 +00:00
7b7ed885af
Instead of declaring a function in a .c file, declare it in a header
file and include that header file from the source files that define
and that use the function. That allows the compiler to verify
consistency of declaration and definition. See also commit
52267790ef
("sock: add MSG_ZEROCOPY") # v4.14.
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
15 lines
322 B
C
15 lines
322 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _NET_CORE_DATAGRAM_H_
|
|
#define _NET_CORE_DATAGRAM_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct sock;
|
|
struct sk_buff;
|
|
struct iov_iter;
|
|
|
|
int __zerocopy_sg_from_iter(struct sock *sk, struct sk_buff *skb,
|
|
struct iov_iter *from, size_t length);
|
|
|
|
#endif /* _NET_CORE_DATAGRAM_H_ */
|