summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2024-05-10 13:23:09 -0700
committerJens Axboe <axboe@kernel.dk>2024-05-14 07:22:35 -0600
commit08190cc4d8a62f2a07b4158751afd3a01638c4c5 (patch)
tree5888574fb101217580898aab43d2143cfb21a8fb /include
parent9ead7efc6f3f2b46c4ec68209bca4888cfbd4c19 (diff)
downloadlinux-stable-08190cc4d8a62f2a07b4158751afd3a01638c4c5.tar.gz
linux-stable-08190cc4d8a62f2a07b4158751afd3a01638c4c5.tar.bz2
linux-stable-08190cc4d8a62f2a07b4158751afd3a01638c4c5.zip
nbd: Use NULL to represent a pointer
This patch fixes the following sparse warnings: drivers/block/nbd.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/nbd.h): ./include/trace/events/nbd.h:61:1: warning: Using plain integer as NULL pointer drivers/block/nbd.c: note: in included file (through include/trace/perf.h, include/trace/define_trace.h, include/trace/events/nbd.h): ./include/trace/events/nbd.h:61:1: warning: Using plain integer as NULL pointer Cc: Christoph Hellwig <hch@lst.de> Cc: Josef Bacik <jbacik@fb.com> Cc: Yu Kuai <yukuai3@huawei.com> Cc: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20240510202313.25209-2-bvanassche@acm.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/nbd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/nbd.h b/include/trace/events/nbd.h
index 9849956f34d8..390d98a05c9d 100644
--- a/include/trace/events/nbd.h
+++ b/include/trace/events/nbd.h
@@ -72,7 +72,7 @@ DECLARE_EVENT_CLASS(nbd_send_request,
),
TP_fast_assign(
- __entry->nbd_request = 0;
+ __entry->nbd_request = NULL;
__entry->dev_index = index;
__entry->request = rq;
),