]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-cli: Restore RHEL 7 compatibility
authorBart Van Assche <bvanassche@acm.org>
Mon, 24 Jun 2019 13:55:21 +0000 (06:55 -0700)
committerBart Van Assche <bvanassche@acm.org>
Mon, 24 Jun 2019 18:31:20 +0000 (11:31 -0700)
commitaff3bcc756323389b7d14e7257b9104f526832eb
tree7448ec3f14bdc87595c5df3a2e005a6b5157859c
parent673423892af17233d8dfb23b2ad9c74a917fb528
nvme-cli: Restore RHEL 7 compatibility

With glibc version 2.24 and before the endianness conversion macros
return a value with an incorrect type. Avoid that this causes the
nvme-cli build to fail on e.g. RHEL 7. A side effect of this patch
is that it allows sparse to verify the type of the endianness
conversion functions.

See also https://sourceware.org/bugzilla/show_bug.cgi?id=16458

Cc: Mikhail Skorzhinskii <mskorzhinskiy@solarflare.com>
Cc: Minwoo Im <minwoo.im.dev@gmail.com>
Reported-by: Mikhail Skorzhinskii <mskorzhinskiy@solarflare.com>
Fixes: e68409e447b2 ("Remove superfluous casts")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
nvme.h