-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
types: Define NS_FLBAS MASK and SHIFT to use NVME_GET #662
Conversation
Changes for the issue #148 . |
a66b14a
to
354581a
Compare
Rebased and fixed the NVME_NS_FLBAS_META_EXT macro definition. |
src/nvme/types.h
Outdated
}; | ||
|
||
#define NVME_NS_FLBAS_LOWER(flbas) NVME_GET(flbas, NS_FLBAS_LOWER) | ||
#define NVME_NS_FLBAS_META_EXT(flbas) NVME_GET(flbas, NS_FLBAS_META_EXT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change of NVME_NS_FLBAS_META_EXT
from a simple define to a macro will break existing users. While for nvme-cli that might be okay as we have to update the minimum dependency to libnvme anyway, it's not so easy to tell about other users. I am aware of that the udisk and nvme-stats project is using libnvme but not this define.
So what we can do is merge it but if someone complains we are reverting it. What do you think?
BTW, the build fails due to kdoc test failing:
|
354581a
to
26ac271
Compare
Thanks for your review comments. Changed the patch to remain existing macro definitions and add also additional macro definitions for a simple macro define. |
It looks like kdoc is not able to figure out that it should ignore the right handside of the enum definition. I couldn't figure out how fix address this. |
Signed-off-by: Tokunori Ikegami <[email protected]>
Signed-off-by: Tokunori Ikegami <[email protected]>
26ac271
to
7eb03c4
Compare
Sorry for the kernel-doc warnings. Fixed as remaining the original definitions. |
No problem. It seems that this version also avoids breakage. Nice. |
No description provided.