Skip to content

src: order includes per common recommendation#3172

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:header-mania-continues
Mar 13, 2026
Merged

src: order includes per common recommendation#3172
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:header-mania-continues

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented Mar 12, 2026

Apply the commonly recommended include ordering across all files.

  1. Standard/POSIX headers (alphabetical)
  2. System headers with path prefix: sys/, arpa/, linux/, net/ (alphabetical)
  3. Third-party library headers: ccan, dbus, json, keyutils, liburing, openssl (alphabetical)
  4. Project public headers: libnvme.h, libnvme-mi.h, nvme/...
  5. Local/private headers: "..."

The changes was prepared by Copilot.

@igaw
Copy link
Copy Markdown
Collaborator Author

igaw commented Mar 12, 2026

FWIW, there is also the recommendation to use the reverse ordering. Since this project started using the ordering as done in this patch, I'd say we go with this cleanup. If someone strongly objects we can still reorder them in reverse. I'd just like to get it consistent, which this patch does.

Apply the commonly recommended include ordering across all files.

1. Standard/POSIX headers (alphabetical)
2. System headers with path prefix: sys/, arpa/,
   linux/, net/ (alphabetical)
3. Third-party library headers: ccan, dbus, json, keyutils, liburing,
   openssl (alphabetical)
4. Project public headers: libnvme.h, libnvme-mi.h, nvme/...
5. Local/private headers: "..."

The changes was prepared by Copilot.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
@igaw igaw force-pushed the header-mania-continues branch from 8c20c42 to d854cb7 Compare March 12, 2026 11:01
@igaw igaw merged commit d7e1923 into linux-nvme:master Mar 13, 2026
26 checks passed
@igaw igaw deleted the header-mania-continues branch March 13, 2026 07:08
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.

1 participant