]> git.baikalelectronics.ru Git - kernel.git/commit
skbuff: struct ubuf_info callback type safety
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 9 Apr 2012 00:24:02 +0000 (00:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2012 17:09:19 +0000 (13:09 -0400)
commitcec19567b19e6c0d494ed4d9826927c2ba189b4a
treef18de0412ec64d7aa4a26ff85d0ad1c57263dbff
parente4e37f04e8f07c4aa2e23a6bbc06409216fd2115
skbuff: struct ubuf_info callback type safety

The skb struct ubuf_info callback gets passed struct ubuf_info
itself, not the arg value as the field name and the function signature
seem to imply. Rename the arg field to ctx to match usage,
add documentation and change the callback argument type
to make usage clear and to have compiler check correctness.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c
drivers/vhost/vhost.c
drivers/vhost/vhost.h
include/linux/skbuff.h