Skip to content

common/platform_errno.{h,cc}: Fix Clang complaint that this is C99 code - #71442

Merged
tchaikov merged 1 commit into
ceph:mainfrom
wjwithagen:wip-freebsd-errno-c99
Oct 4, 2026
Merged

tchaikov merged 1 commit into
ceph:mainfrom
wjwithagen:wip-freebsd-errno-c99

Conversation

@wjwithagen

@wjwithagen wjwithagen commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

So rewrote it to be C++ compliant...

Depends on: #71441
Assisted-by: claude-code:claude-sonet-5

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Comment thread src/common/freebsd_errno.cc Resolved
Comment thread src/common/freebsd_errno.cc Resolved
Comment thread src/common/freebsd_errno.cc Resolved
So rewrote it to be C++ compliant...

Assisted-by: claude-code:claude-sonet-5
Signed-off-by: Willem Jan Withagen <[email protected]>
@tchaikov

Copy link
Copy Markdown
Contributor

@wjwithagen hi Willem, could you please reconsider the suggestion at #71442 (comment) ?

@wjwithagen

Copy link
Copy Markdown
Member Author

@wjwithagen hi Willem, could you please reconsider the suggestion at #71442 (comment) ?

'mmm
I thought I did undo the space<>tabs change, but could be that vi setting undo my undo.
And my version here does again have the spaces in it.

But note that the lines are all changed anyways since we have to change the terminator from , to ;
So if we want to fix anything on the indentation, this is the time to do it.

@tchaikov tchaikov 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.

lgtm

@tchaikov

tchaikov commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

@wjwithagen could you push your change to ceph-ci, just to verify that the tree still builds?

@wjwithagen

Copy link
Copy Markdown
Member Author

@wjwithagen could you push your change to ceph-ci, just to verify that the tree still builds?

Got to help me here with what you mean by running it thru ceph-ci???

It is in wjwithagen:ceph-freebsd, which is the tree I use to build freebd packages and run in poudriere.
So there it builds, but that is with Clang.

@tchaikov

tchaikov commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

@wjwithagen could you push your change to ceph-ci, just to verify that the tree still builds?

Got to help me here with what you mean by running it thru ceph-ci???

It is in wjwithagen:ceph-freebsd, which is the tree I use to build freebd packages and run in poudriere. So there it builds, but that is with Clang.

@wjwithagen by ceph-ci, i meant https://github.com/ceph/ceph-ci , we have a dedicated repo ceph-ci (https://github.com/ceph/ceph-ci), a new branch pushed to this repo is checked by jenkins. if it's a new commit, jenkins picks it up and build it to generated deb and rpm packages and setup repos for them. the build result can be found at https://shaman.ceph.com/builds/ceph/.

the idea is to verify that the change still builds on all distros on which we build packages.

i just pushed wip-pr-71442-kefu to this repo, so https://shaman.ceph.com/builds/ceph/wip-pr-71442-kefu/ should show the build job in around 30 minutes.

@tchaikov

tchaikov commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

@tchaikov
tchaikov merged commit dca6032 into ceph:main Oct 4, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants