]> 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)
commit0282e2b5d6334eecd2da4a8a988035cdce2ff885
tree97c9dd78b5eeaf2b43636b3a1b9618e3400b407d
parent87d27473434bf2e18de37b8d9d077dd4a0d76c4f
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
65e5928d94f9 ("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