summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>2015-09-20 17:07:15 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-29 04:42:27 +0300
commit49c3203707c9feebee26fec02f67b0431ac0a72a (patch)
tree0e4fbb5b8138a88eebfe23128f04ddd97d4778c0 /include/linux
parent713519c710749d72bfad844579e10017af77bf84 (diff)
downloadlinux-49c3203707c9feebee26fec02f67b0431ac0a72a.tar.xz
staging/rdma/hfi1: do not use u8 to store a 32-bit integer
hfi1_rc_hdrerr() stores the result of be32_to_cpu() into opcode, which is a local variable declared as u8. Later this variable is used in a 24-bit logical right shift, which makes clang complains (when building an allmodconfig kernel with LLVMLinux patches): drivers/staging/rdma/hfi1/rc.c:2399:9: warning: shift count >= width of type [-Wshift-count-overflow] opcode >>= 24; ^ ~~ All of this lead to the point that opcode may have been designed to be a 32-bit integer instead of an 8-bit one. Therefore make this variable u32. Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org> Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions