• J
    virtio: use WARN_ON() to warning illegal status value · 619e9e14
    Jason Wang 提交于
    We used to use BUG_ON() in virtio_device_ready() to detect illegal
    status value, this seems sub-optimal since the value is under the
    control of the device. Switch to use WARN_ON() instead.
    
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: "Paul E. McKenney" <paulmck@kernel.org>
    Cc: Marc Zyngier <maz@kernel.org>
    Cc: Halil Pasic <pasic@linux.ibm.com>
    Cc: Cornelia Huck <cohuck@redhat.com>
    Cc: Vineeth Vijayan <vneethv@linux.ibm.com>
    Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
    Cc: linux-s390@vger.kernel.org
    Signed-off-by: NJason Wang <jasowang@redhat.com>
    Message-Id: <20220527060120.20964-10-jasowang@redhat.com>
    Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
    Reviewed-by: NXuan Zhuo <xuanzhuo@linux.alibaba.com>
    619e9e14
virtio_config.h 17.7 KB