From: "Jonathan Neuschäfer" <j.neuschaefer@gmx.net>
To: virtualization@lists.linux-foundation.org
Cc: "Jonathan Neuschäfer" <j.neuschaefer@gmx.net>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH RESEND] tools/virtio/ringtest: Remove bogus definition of BUG_ON()
Date: Mon, 18 Mar 2019 17:27:34 +0100 [thread overview]
Message-ID: <20190318162735.20706-1-j.neuschaefer@gmx.net> (raw)
BUG_ON(x) should raise an error if x is true, but assert(x) raises an
error if x is false. Remove this bogus definition of BUG_ON(), which
isn't used anyway.
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
Previous copy of v1:
https://lore.kernel.org/lkml/20190129140443.31161-1-j.neuschaefer@gmx.net/
---
tools/virtio/ringtest/ptr_ring.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/virtio/ringtest/ptr_ring.c b/tools/virtio/ringtest/ptr_ring.c
index 2d566fbd236b..c9b26335f891 100644
--- a/tools/virtio/ringtest/ptr_ring.c
+++ b/tools/virtio/ringtest/ptr_ring.c
@@ -18,7 +18,6 @@
#define ALIGN(x, a) (((x) + (a) - 1) / (a) * (a))
#define SIZE_MAX (~(size_t)0)
#define KMALLOC_MAX_SIZE SIZE_MAX
-#define BUG_ON(x) assert(x)
typedef pthread_spinlock_t spinlock_t;
--
2.20.1
reply other threads:[~2019-03-18 16:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190318162735.20706-1-j.neuschaefer@gmx.net \
--to=j.neuschaefer@gmx.net \
--cc=jasowang@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=virtualization@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®