skbuff: struct ubuf_info callback type safety
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 9 Apr 2012 00:24:02 +0000 (00:24 +0000)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 30 Apr 2012 12:23:41 +0000 (17:23 +0530)
commit29e014fadac66f266e26d4168911248fc9b65271
treea0f9700fdbb5ab8adb8f32097544f2eee83e4192
parent10c335404a54caf6e1abda00acfa5d968dee90f3
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