aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-region.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-10-13 07:01:22 +0000
committerIngo Molnar <[email protected]>2017-11-21 08:25:01 +0000
commitaa5222e92f8000ed3c1c38dddf11c83222aadfb3 (patch)
treeb775012d49350fb135d22369216c95e8aa023831 /drivers/fpga/fpga-region.c
parentsched/deadline: Fix the description of runtime accounting in the documentation (diff)
downloadkernel-aa5222e92f8000ed3c1c38dddf11c83222aadfb3.tar.gz
kernel-aa5222e92f8000ed3c1c38dddf11c83222aadfb3.zip
sched/deadline: Don't use dubious signed bitfields
It doesn't cause a run-time bug, but these bitfields should be unsigned. When it's signed ->dl_throttled is set to either 0 or -1, instead of 0 and 1 as expected. The sched.h file is included into tons of places so Sparse generates a flood of warnings like this: ./include/linux/sched.h:477:54: error: dubious one-bit signed bitfield Reported-by: Matthew Wilcox <[email protected]> Reported-by: Xin Long <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Luca Abeni <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: luca abeni <[email protected]> Link: http://lkml.kernel.org/r/20171013070121.dzcncojuj2f4utij@mwanda Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions