Skip to content

Commit 08190cc

Browse files
bvanasscheaxboe
authored andcommitted
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 <[email protected]> Cc: Josef Bacik <[email protected]> Cc: Yu Kuai <[email protected]> Cc: Markus Pargmann <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 9ead7ef commit 08190cc

File tree

1 file changed

+1
-1
lines changed
  • include/trace/events

1 file changed

+1
-1
lines changed

include/trace/events/nbd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ DECLARE_EVENT_CLASS(nbd_send_request,
7272
),
7373

7474
TP_fast_assign(
75-
__entry->nbd_request = 0;
75+
__entry->nbd_request = NULL;
7676
__entry->dev_index = index;
7777
__entry->request = rq;
7878
),

0 commit comments

Comments
 (0)