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
kcapi-kdf: Move code to fix #83
Conversation
How about moving also the whole # ifdef __HAVE_BUILTIN_BSWAP32__
# define be_bswap32(x) (uint32_t)__builtin_bswap32((uint32_t)(x))
# else
# define be_bswap32(x) _bswap32(x)
# endif Actually, you should then also move the inline functions straight under the |
a028eaf
to
00c1654
Compare
@WOnder93 please check the latest version of patch, it should address your comments. |
36637cd
to
7b5dd67
Compare
Looks good now! (One minor nit: I would leave the first letter of the error message uppercase, but it's not a big deal :) |
Fixes clang build unused function '_bswap32' [-Werror,-Wunused-function] Signed-off-by: Khem Raj <raj.khem@gmail.com>
clang pretends to be gcc 4.2.1 so GCC_VERSION macro will decide that __builtin_bswap32 is not supported on clang, whereas in reality it might so its better to add a check for enquiring clang if it supports __builtin_bswap32 or not Signed-off-by: Khem Raj <raj.khem@gmail.com>
makes sense, done, please re-review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you very much. Applied. (sorry for the delay, but the LRNG development took my time) |
Fixes clang build
unused function '_bswap32' [-Werror,-Wunused-function]
Signed-off-by: Khem Raj raj.khem@gmail.com