]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: Fix test build failures
authorGuenter Roeck <linux@roeck-us.net>
Mon, 4 Apr 2022 13:48:59 +0000 (06:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 15:03:04 +0000 (17:03 +0200)
commitd9b3561816619e001f68a505b25cb411d923fd48
treeb6bc755dbd153a6323a07decb9b94eed861ec5df
parent6d94017b7b59bab528be97be158d0d602982e3a6
habanalabs: Fix test build failures

allmodconfig builds on 32-bit architectures fail with the following error.

drivers/misc/habanalabs/common/memory.c: In function 'alloc_device_memory':
drivers/misc/habanalabs/common/memory.c:153:49: error:
cast from pointer to integer of different size

Fix the typecast. While at it, drop other unnecessary typecasts associated
with the same commit.

Fixes: c2b4a1bbcc424 ("habanalabs: make sure device mem alloc is page aligned")
Cc: Ohad Sharabi <osharabi@habana.ai>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220404134859.3278599-1-linux@roeck-us.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/common/memory.c