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

Check for byteswap.h existence for src/f2fs/f2fs_fs.h #257

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

robert-scheck
Copy link
Contributor

src/f2fs/f2fs_fs.h uses bswap_64(), which is part of byteswap.h e.g. on glibc-based systems. The src/f2fs/f2fs_fs.h already knows how to handle the existence of byteswap.h, once there is a configure header check for it. Otherwise building on s390x fails like this:

f2fs/f2fs_fs.h:218:25: error: implicit declaration of function ‘bswap_64’; did you mean ‘bswap_32’? [-Wimplicit-function-declaration]

src/f2fs/f2fs_fs.h uses bswap_64(), which is part of byteswap.h e.g.
on glibc-based systems. The src/f2fs/f2fs_fs.h already knows how to
handle the existence of byteswap.h, once there is a configure header
check for it. Otherwise building on s390x fails like this:

f2fs/f2fs_fs.h:218:25: error: implicit declaration of function ‘bswap_64’; did you mean ‘bswap_32’? [-Wimplicit-function-declaration]
@Thomas-Tsai Thomas-Tsai merged commit 18afb18 into Thomas-Tsai:master Dec 18, 2024
1 check passed
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.

2 participants