Skip to content

Commit

Permalink
wdc: enable wdc-nvme.c build without json-c dependencies checking
Browse files Browse the repository at this point in the history
Only build json print codes with CONFIG_JSONC build option instead.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Dec 21, 2024
1 parent d65e0de commit 2a40ac8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
if json_c_dep.found()
sources += [
'plugins/solidigm/solidigm-nvme.c',
'plugins/wdc/wdc-nvme.c',
'plugins/wdc/wdc-utils.c',
]
subdir('solidigm')
endif
Expand All @@ -31,6 +29,8 @@ sources += [
'plugins/toshiba/toshiba-nvme.c',
'plugins/transcend/transcend-nvme.c',
'plugins/virtium/virtium-nvme.c',
'plugins/wdc/wdc-nvme.c',
'plugins/wdc/wdc-utils.c',
'plugins/ymtc/ymtc-nvme.c',
'plugins/zns/zns.c',
]
Expand Down
4 changes: 3 additions & 1 deletion util/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ struct json_object;
#define json_create_object(o) NULL
#define json_create_array(a) NULL
#define json_free_object(o) ((void)(o))
#define json_object_add_value_uint(o, k, v)
#define json_object_add_value_uint(o, k, v) ((void)(v))
#define json_object_add_value_int(o, k, v) ((void)(v))
#define json_object_add_value_uint64(o, k, v) ((void)(v))
#define json_object_add_value_uint128(o, k, v)
#define json_object_add_value_double(o, k, v)
#define json_object_add_value_array(o, k, v) ((void)(v))
#define json_object_add_value_object(o, k, v) ((void)(v))
Expand Down

0 comments on commit 2a40ac8

Please sign in to comment.