Skip to content

ocp: replace to use json_object_* macros to obj_* macros#2640

Merged
igaw merged 5 commits intolinux-nvme:masterfrom
ikegami-t:ocp-obj-macro
Jan 3, 2025
Merged

ocp: replace to use json_object_* macros to obj_* macros#2640
igaw merged 5 commits intolinux-nvme:masterfrom
ikegami-t:ocp-obj-macro

Conversation

@ikegami-t
Copy link
Contributor

Since currently mixed to use them in ocp-print-json.c then unify.

@igaw
Copy link
Collaborator

igaw commented Jan 3, 2025

I think we should not export the obj_add_* definition from nvme-print-json.c. Also we should move the existing obj_add_* definitions out of nvme-print.h and add them to util/json.h and use the same prefix, e.g. json_object_add_*.

It's a lot of code churn and adds an additional indirection without a lot of gain.

Also use the same prefix json_object_add_*.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Since the field defined by the NVMe timestamp feature.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Since the 64 bits variables not necessary to mask by 64 bits.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
This is to reduce unnecessary mask with 0x0000FFFFFFFFFFFF.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
This is to remove unnecessary mask with 0x00FFFFFFFFFFFFFF.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
@ikegami-t
Copy link
Contributor Author

Thanks for your review comments. Just fixed the patches as suggested.

@igaw
Copy link
Collaborator

igaw commented Jan 3, 2025

Looks good. Thanks!

@igaw igaw merged commit a95d951 into linux-nvme:master Jan 3, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants