Skip to content

os: add missing includes - #71677

Merged
Jayaprakash-ibm merged 1 commit into
ceph:mainfrom
MaxKellermann:os__missing_include
Nov 20, 2026
Merged

Jayaprakash-ibm merged 1 commit into
ceph:mainfrom
MaxKellermann:os__missing_include

Conversation

@MaxKellermann

Copy link
Copy Markdown
Member

Another PR split from #60490

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

Signed-off-by: Max Kellermann <[email protected]>

@aclamk aclamk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does not make sense.
We have:

namespace ceph {
  class Formatter;
}

and we use ceph::Formatter* everywhere.

@MaxKellermann

Copy link
Copy Markdown
Member Author

Does not make sense.

@aclamk, that's a strongly worded claim, and it's not correct.

That source file dereferences Formatter objects, e.g. here:

void dump(ceph::Formatter *f) const {
f->dump_unsigned("length", length);
f->dump_unsigned("refs", refs);
}

A forward declaration is not enough, this requires including the header with the full class definition. Not doing so is a bug that is fixed by this PR.

@aclamk

aclamk commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

@MaxKellermann
Right. I was wrong.
Thank you for the PR.

@Jayaprakash-ibm

Copy link
Copy Markdown
Contributor

This PR has been added to wip-jaya-bs-testing2-18-11-2026.

@Jayaprakash-ibm

Copy link
Copy Markdown
Contributor

@Jayaprakash-ibm
Jayaprakash-ibm merged commit aaffa6f into ceph:main Nov 20, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants