Skip to content

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 <[email protected]>
Since the field defined by the NVMe timestamp feature.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since the 64 bits variables not necessary to mask by 64 bits.

Signed-off-by: Tokunori Ikegami <[email protected]>
This is to reduce unnecessary mask with 0x0000FFFFFFFFFFFF.

Signed-off-by: Tokunori Ikegami <[email protected]>
This is to remove unnecessary mask with 0x00FFFFFFFFFFFFFF.

Signed-off-by: Tokunori Ikegami <[email protected]>
@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