]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 9280/1: mm: fix warning on phys_addr_t to void pointer assignment
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Tue, 13 Dec 2022 19:24:03 +0000 (20:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:44 +0000 (07:52 +0100)
commitc82a0069051934e1b80e3c98b137480e548ad30d
tree000d69865f8fffadaaffee0c77bd77535dd4d4c3
parentee73856f1884cf26db8a3616526ec4339fcbf3f1
ARM: 9280/1: mm: fix warning on phys_addr_t to void pointer assignment

commit a4e03921c1bb118e6718e0a3b0322a2c13ed172b upstream.

zero_page is a void* pointer but memblock_alloc() returns phys_addr_t type
so this generates a warning while using clang and with -Wint-error enabled
that becomes and error. So let's cast the return of memblock_alloc() to
(void *).

Cc: <stable@vger.kernel.org> # 4.14.x +
Fixes: dae73feea19a ("ARM: 9266/1: mm: fix no-MMU ZERO_PAGE() implementation")
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mm/nommu.c