libnvme: move fabrics include list into its own file#3462
Merged
Conversation
Collaborator
|
I claim the assisted tag here! :) |
The set of fabrics-only headers appended to the generated libnvme.h was carried as a single \n-escaped string argument to libconf.set() in meson.build. That form is hard to read and easy to get wrong when an include is added or removed. Move the include list into libnvme/src/fabrics-includes.h.in, one directive per line, and pull it in with fs.read(). The generated libnvme.h is unchanged. Suggested-by: Daniel Wagner <wagi@kernel.org> Signed-off-by: Martin Belanger <martin.belanger@dell.com>
61d7c23 to
deb3de0
Compare
Author
|
Ha! Fair enough — the idea was yours, so I swapped the Assisted-by for a Suggested-by: Daniel Wagner wagi@kernel.org. Credit where it's due. 😄 |
Collaborator
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fabrics-only headers appended to the generated
libnvme.hwere carried as a single\n-escaped string passed tolibconf.set()inlibnvme/src/meson.build. That form is hard to read and easy to get wrong when an include is added or removed.This moves the list into
libnvme/src/fabrics-includes.h.in(one#includeper line) and pulls it in withfs.read().strip(). The generatedlibnvme.his byte-identical.Suggested by @igaw during the registry PR (#3425) review as a small, standalone preparation patch.