diff options
author | 2022-05-27 14:01:20 +0800 | |
---|---|---|
committer | 2022-05-31 12:45:10 -0400 | |
commit | 619e9e14ba3c97a80776c0b5a68a01caa41dd148 (patch) | |
tree | 7e5639c380b00bc85da8faafab869c26be5f5be6 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | virtio: harden vring IRQ (diff) | |
download | linux-dev-619e9e14ba3c97a80776c0b5a68a01caa41dd148.tar.xz linux-dev-619e9e14ba3c97a80776c0b5a68a01caa41dd148.zip |
virtio: use WARN_ON() to warning illegal status value
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: Jason Wang <jasowang@redhat.com>
Message-Id: <20220527060120.20964-10-jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions