[PATCH] genhd: Handle part_tbl and part pointers correctly

2016-09-25 Thread Bart Van Assche
This patch ensures that sparse does not complain about disk->part_tbl manipulations nor about part_tbl->part accesses. Signed-off-by: Bart Van Assche --- block/genhd.c | 7 --- block/partition-generic.c | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/bl

[PATCH] bsg: Add sparse annotations to bsg_request_fn()

2016-09-25 Thread Bart Van Assche
Avoid that sparse complains about unbalanced lock actions. Signed-off-by: Bart Van Assche --- block/bsg-lib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/bsg-lib.c b/block/bsg-lib.c index 650f427..b2a61e3 100644 --- a/block/bsg-lib.c +++ b/block/bsg-lib.c @@ -161,6 +161,8 @@ fail