]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit64873214491bb729a8b0c23a6d71bb1bbf79163f
tree97c9dd78b5eeaf2b43636b3a1b9618e3400b407d
parent9c69f1be4c5ec427ce5c5ef10eb76ef9e534ca22
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
188502b4826e ("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