mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
UPSTREAM: xen-swiotlb: remove the unused size argument from xen_swiotlb_fixup
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 6bcd4ea717)
Signed-off-by: Will Deacon <willdeacon@google.com>
Bug: 190591509
Change-Id: I6def3ed2610a761047374ae15960aabfdc38527b
This commit is contained in:
committed by
Will Deacon
parent
d52889c447
commit
cb59d29537
@@ -104,8 +104,7 @@ static int is_xen_swiotlb_buffer(struct device *dev, dma_addr_t dma_addr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
xen_swiotlb_fixup(void *buf, size_t size, unsigned long nslabs)
|
||||
static int xen_swiotlb_fixup(void *buf, unsigned long nslabs)
|
||||
{
|
||||
int i, rc;
|
||||
int dma_bits;
|
||||
@@ -195,7 +194,7 @@ retry:
|
||||
/*
|
||||
* And replace that memory with pages under 4GB.
|
||||
*/
|
||||
rc = xen_swiotlb_fixup(start, bytes, nslabs);
|
||||
rc = xen_swiotlb_fixup(start, nslabs);
|
||||
if (rc) {
|
||||
free_pages((unsigned long)start, order);
|
||||
m_ret = XEN_SWIOTLB_EFIXUP;
|
||||
@@ -243,7 +242,7 @@ retry:
|
||||
/*
|
||||
* And replace that memory with pages under 4GB.
|
||||
*/
|
||||
rc = xen_swiotlb_fixup(start, bytes, nslabs);
|
||||
rc = xen_swiotlb_fixup(start, nslabs);
|
||||
if (rc) {
|
||||
memblock_free(__pa(start), PAGE_ALIGN(bytes));
|
||||
if (repeat--) {
|
||||
|
||||
Reference in New Issue
Block a user