]> git.baikalelectronics.ru Git - kernel.git/commit
lib/scatterlist: use matched parameter type when calling __sg_free_table()
authorwuchi <wuchi.zero@gmail.com>
Wed, 29 Jun 2022 03:02:41 +0000 (11:02 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:31:39 +0000 (17:31 -0700)
commit46639c9f3eb653655e6dd5da42dadc482072a5a6
tree633ccfad3ba38d6ef2b7e85c57d200a5e64118dd
parentfb3e1e8f39a5c41693dd49cbd0d4ee0ff908303d
lib/scatterlist: use matched parameter type when calling __sg_free_table()

commit 69911e190f60 ("scsi: lib/sg_pool.c: improve APIs for allocating sg
pool") changeed @(bool)skip_first_chunk of __sg_free_table() to @(unsigned
int)nents_first_chunk, so use unsigend int type instead of bool type
(false -> 0) when calling the function in sg_free_append_table() and
sg_free_table().

Link: https://lkml.kernel.org/r/20220629030241.84559-1-wuchi.zero@gmail.com
Signed-off-by: wuchi <wuchi.zero@gmail.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Cc: Maor Gottlieb <maorg@nvidia.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/scatterlist.c