OSDN Git Service

virtio: add unlikely() to WARN_ON_ONCE()
authorIgor Stoppa <igor.stoppa@gmail.com>
Fri, 7 Sep 2018 17:48:02 +0000 (20:48 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 May 2019 15:08:22 +0000 (11:08 -0400)
commit3d840e0636be64502f1d3da2e077dab390c04091
treef22f174f2a645f496e2ab971453ddc750b10e5a4
parentcd6c84d8f0cdc911df435bb075ba22ce3c605b07
virtio: add unlikely() to WARN_ON_ONCE()

The condition to test is unlikely() to be true. Add the hint.

Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Virtualization@lists.linux-foundation.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/linux/kernel.h