Linus Walleij a60511cf15 net/rds: Pass a pointer to virt_to_page()
Functions that work on a pointer to virtual memory such as
virt_to_pfn() and users of that function such as
virt_to_page() are supposed to pass a pointer to virtual
memory, ideally a (void *) or other pointer. However since
many architectures implement virt_to_pfn() as a macro,
this function becomes polymorphic and accepts both a
(unsigned long) and a (void *).

If we instead implement a proper virt_to_pfn(void *addr)
function the following happens (occurred on arch/arm):

net/rds/message.c:357:56: warning: passing argument 1
  of 'virt_to_pfn' makes pointer from integer without a
  cast [-Wint-conversion]

Fix this with an explicit cast.

Cc: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Cc: rds-devel@oss.oracle.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220829132001.114858-1-linus.walleij@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-08-31 19:12:32 -07:00
..
2020-09-18 14:12:43 -07:00
2021-05-31 22:45:05 -07:00
2020-11-17 15:22:06 -04:00
2020-05-20 14:08:06 -07:00
2016-12-26 21:35:39 -05:00
2020-07-24 15:41:54 -07:00
2021-11-22 14:28:37 +00:00
2016-06-18 21:34:09 -07:00
2021-05-31 22:45:05 -07:00
2020-05-28 11:11:45 -07:00
2011-07-01 16:16:19 -07:00