Skip to content
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

quincy: include: fix IS_ERR on Windows #47922

Closed
wants to merge 1 commit into from

Conversation

petrutlucian94
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/57402


backport of #47818
parent tracker: https://tracker.ceph.com/issues/57308

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

The "long" type uses 32b on x64 Windows platforms, which means
it's not large enough to store a pointer. intptr_t or uintptr_t
should be used instead.

This change fixes include/err.h, using the right types. There was
a previous patch on this topic but unfortunately it didn't address
all the type casts.

This issue was brought up by the unittest_crush test, which recently
started to fail as the CrushWrapper methods use IS_ERR.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit c95b6b6)
@petrutlucian94 petrutlucian94 added this to the quincy milestone Sep 2, 2022
@idryomov
Copy link
Contributor

idryomov commented Sep 3, 2022

make check failures are known, one of them is addressed in #47938.

@idryomov idryomov added bug-fix needs-qa win32 Specifix changes for the windows platform quincy-batch-1 labels Sep 3, 2022
@petrutlucian94
Copy link
Contributor Author

The commit has been included here #48016, I think we can close this PR.

@idryomov
Copy link
Contributor

idryomov commented Sep 9, 2022

Yup, I will update the backport tracker accordingly.

@idryomov idryomov closed this Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants