summaryrefslogtreecommitdiff
path: root/kernel/softirq.c
diff options
context:
space:
mode:
authorJeremiah Mahler <jmmahler@gmail.com>2015-01-18 03:17:52 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-25 19:59:14 +0800
commita1ccbf9cc4f6828c4615642bbe664aed2103247b (patch)
tree26572a1079c6819f1edd0c6e5a7a08d292e7d052 /kernel/softirq.c
parent41dff7ac1a7c97f5532931154bfdf505d7ce1631 (diff)
staging: lustre: fix min() comparison types lacks cast build warning
Recent changes to use the builtin min functions [1] introduced type checking which wasn't present before. This resulted in "comparision of distinct pointer types lacks a cast" build warnings on non X86 architectures [2,3]. [1]: https://lkml.org/lkml/2014/12/25/145 [2]: https://lists.01.org/pipermail/kbuild-all/2015-January/008588.html [3]: https://lists.01.org/pipermail/kbuild-all/2015-January/008589.html The call to min() which resulted in this warning took the result of kiblnd_rd_frag_size(), which returned a __u32, and the variable 'resid', which is an int. 'resid' is inside a while loop which is only entered if it is positive. Casting it as a __u32 can be perormed without a loss of data or change in functionality. Fix the warning by casting 'resid' as a __u32. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/softirq.c')
0 files changed, 0 insertions, 0 deletions