From: Tokunori Ikegami Date: Sat, 21 Dec 2024 07:58:35 +0000 (+0900) Subject: ssstc: build plugin not depended on json without json X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=116e0c9b6976250e22add1da5dbae9d61161be6d;p=users%2Fsagi%2Fnvme-cli.git ssstc: build plugin not depended on json without json ssstc plugin does not use json so no need to check the build dependency. Signed-off-by: Tokunori Ikegami --- diff --git a/plugins/meson.build b/plugins/meson.build index 7eaa35a7..cddff659 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -3,7 +3,6 @@ if json_c_dep.found() sources += [ 'plugins/solidigm/solidigm-nvme.c', - 'plugins/ssstc/ssstc-nvme.c', 'plugins/wdc/wdc-nvme.c', 'plugins/wdc/wdc-utils.c', ] @@ -28,6 +27,7 @@ sources += [ 'plugins/scaleflux/sfx-nvme.c', 'plugins/seagate/seagate-nvme.c', 'plugins/shannon/shannon-nvme.c', + 'plugins/ssstc/ssstc-nvme.c', 'plugins/toshiba/toshiba-nvme.c', 'plugins/transcend/transcend-nvme.c', 'plugins/virtium/virtium-nvme.c', diff --git a/plugins/ssstc/ssstc-nvme.c b/plugins/ssstc/ssstc-nvme.c index 5cbc8f96..f90ad605 100644 --- a/plugins/ssstc/ssstc-nvme.c +++ b/plugins/ssstc/ssstc-nvme.c @@ -383,7 +383,9 @@ int ssstc_get_add_smart_log(int argc, char **argv, struct command *cmd, struct p "(optionally, for the specified namespace), and show it."; const char *namespace = "(optional) desired namespace"; const char *raw = "Dump output in binary format"; +#ifdef CONFIG_JSONC const char *json = "Dump output in json format"; +#endif /* CONFIG_JSONC */ struct nvme_additional_smart_log smart_log_add; struct nvme_dev *dev;