Skip to content

Commit 605a97e

Browse files
committed
cifs: Pass a pointer to virt_to_page() in cifsglob
Like the other calls in this function virt_to_page() expects a pointer, not an integer. However since many architectures implement virt_to_pfn() as a macro, this function becomes polymorphic and accepts both a (unsigned long) and a (void *). Fix this up with an explicit cast. Acked-by: Tom Talpey <tom@talpey.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 1db3af8 commit 605a97e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/cifsglob.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2218,7 +2218,7 @@ static inline void cifs_sg_set_buf(struct sg_table *sgtable,
22182218
} while (buflen);
22192219
} else {
22202220
sg_set_page(&sgtable->sgl[sgtable->nents++],
2221-
virt_to_page(addr), buflen, off);
2221+
virt_to_page((void *)addr), buflen, off);
22222222
}
22232223
}
22242224

0 commit comments

Comments
 (0)