vdpa: Add documentation for vdpa_alloc_device() macro
authorXie Yongji <xieyongji@bytedance.com>
Thu, 15 Jul 2021 08:00:26 +0000 (16:00 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Aug 2021 10:44:23 +0000 (06:44 -0400)
commitc8d182bd387a09a8b95303c8086238e8bf61fcfc
tree72d7850c0a57529db989fd03a98b1fb108c64c83
parent1057afa0121db8bd3ca4718c8e0ca12388ab7759
vdpa: Add documentation for vdpa_alloc_device() macro

The return value of vdpa_alloc_device() macro is not very
clear, so that most of callers did the wrong check. Let's
add some comments to better document it.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Link: https://lore.kernel.org/r/20210715080026.242-4-xieyongji@bytedance.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
include/linux/vdpa.h