Skip to content

ioctl: nvme_io_args.dspec(Directive Specific) value is 16 bits#230

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
sc108-lee:fix/io_cmd
Feb 11, 2022
Merged

ioctl: nvme_io_args.dspec(Directive Specific) value is 16 bits#230
igaw merged 1 commit intolinux-nvme:masterfrom
sc108-lee:fix/io_cmd

Conversation

@sc108-lee
Copy link
Copy Markdown
Contributor

Command Dword 13 [31:16]

Signed-off-by: Steven Seungcheol Lee sc108.lee@samsung.com

Comment thread src/nvme/ioctl.h Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the dspec before dsm so that we have all __u16 grouped together. This avoids holes in the data structures.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed :)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need also to update all inline function in the header which use struct nvme_io_args. Older compilers are complaining if the order of the struct initialization are not strictly following the order of the deceleration.

Comment thread src/nvme/ioctl.h Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need also to update all inline function in the header which use struct nvme_io_args. Older compilers are complaining if the order of the struct initialization are not strictly following the order of the deceleration.

Comment thread doc/html/_sources/libnvme.rst.txt Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, could you drop the generated documentation update in this patch? This makes backporting unnecessary complex. And the plan is to update the generated documentation right before each release.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for letting me know, I will remove doc updates :)

Command Dword 13 [31:16]

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
@sc108-lee
Copy link
Copy Markdown
Contributor Author

@igaw there is no direct use of this struct in inline function

@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Feb 11, 2022

Right you are! :)

@igaw igaw merged commit 6d38953 into linux-nvme:master Feb 11, 2022
@sc108-lee sc108-lee deleted the fix/io_cmd branch September 5, 2023 05:15
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