aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorJames Simmons <[email protected]>2016-10-02 22:28:33 -0400
committerGreg Kroah-Hartman <[email protected]>2016-10-16 10:24:39 +0200
commit7d870d93badd7f2bfa8a33674ee3b626159b4e9b (patch)
tree8f15b604b90010e73c533a2dd38c53920f1a6f84 /tools/perf/scripts/python/net_dropmonitor.py
parentf7d5215d0afefc9c2b1573fe2980d8e3643857ee (diff)
staging: lustre: lov: copy_to_user uses wrong casting
With certain version of gcc lov_obd.c failes to compile with the following warning. In function copy_to_user, inlined from lov_iocontrol at lustre/lustre/lov/lov_obd.c:1168: ./arch/x86/include/asm/uaccess.h:735: error: call to __copy_to_user_overflow declared with attribute warning: copy_to_user() buffer size is not probably correct In lov_iocontrol the data was being casted to int instead of the required unsigned long. This patch changes the cast to what is needed for copy_to_user. Signed-off-by: James Simmons <[email protected]> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6302 Reviewed-on: http://review.whamcloud.com/14613 Reviewed-by: frank zago <[email protected]> Reviewed-by: Dmitry Eremin <[email protected]> Reviewed-by: John L. Hammond <[email protected]> Reviewed-by: Oleg Drokin <[email protected]> Signed-off-by: James Simmons <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions