net/core: Allow the compiler to verify declaration and definition consistency
authorBart Van Assche <bvanassche@acm.org>
Mon, 25 Mar 2019 16:17:23 +0000 (09:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Mar 2019 20:49:44 +0000 (13:49 -0700)
commit7b7ed885aff2eede24d641c3b042ebcf7517a5c5
tree97c9dd78b5eeaf2b43636b3a1b9618e3400b407d
parenta986967eb8e991481d688b74266d817e5341916a
net/core: Allow the compiler to verify declaration and definition consistency

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
52267790ef52 ("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>
net/core/datagram.c
net/core/datagram.h [new file with mode: 0644]
net/core/skbuff.c