]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c234cf3f88b156212485c41f54b4184f0a32d45
treef22f174f2a645f496e2ab971453ddc750b10e5a4
parentd4af5abda2664f52c5d43457c52ea397f34be5cb
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