]> Git Repo - linux.git/commit
lib/scatterlist: Fix offset type in sg_alloc_table_from_pages
authorTvrtko Ursulin <[email protected]>
Mon, 31 Jul 2017 18:55:08 +0000 (19:55 +0100)
committerTvrtko Ursulin <[email protected]>
Thu, 7 Sep 2017 09:48:27 +0000 (10:48 +0100)
commitc4860ad60564838994b74e7ee7dd12ceeda0f520
tree5dee274a29c7fb0fd7c139769f6a606efb74b330
parentdf0700e53047662c167836bd6fdeea55d5d8dcfa
lib/scatterlist: Fix offset type in sg_alloc_table_from_pages

Scatterlist entries have an unsigned int for the offset so
correct the sg_alloc_table_from_pages function accordingly.

Since these are offsets withing a page, unsigned int is
wide enough.

Also converts callers which were using unsigned long locally
with the lower_32_bits annotation to make it explicitly
clear what is happening.

v2: Use offset_in_page. (Chris Wilson)

Signed-off-by: Tvrtko Ursulin <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Pawel Osciak <[email protected]>
Cc: Marek Szyprowski <[email protected]>
Cc: Kyungmin Park <[email protected]>
Cc: Tomasz Stanislawski <[email protected]>
Cc: Matt Porter <[email protected]>
Cc: Alexandre Bounine <[email protected]>
Cc: [email protected]
Cc: [email protected]
Acked-by: Marek Szyprowski <[email protected]> (v1)
Reviewed-by: Chris Wilson <[email protected]>
Reviewed-by: Mauro Carvalho Chehab <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/media/v4l2-core/videobuf2-dma-contig.c
drivers/rapidio/devices/rio_mport_cdev.c
include/linux/scatterlist.h
lib/scatterlist.c
This page took 0.058873 seconds and 4 git commands to generate.