Message ID | 20210103135628.3702427-1-arnd@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | c101deb7d50bfb15b394717166da8f7166ab60fa |
Headers | show |
Series | remoteproc: qcom: pil_info: avoid 64-bit division | expand |
Hello: This patch was applied to andersson/remoteproc.git (refs/heads/for-next): On Sun, 3 Jan 2021 14:56:12 +0100 you wrote: > From: Arnd Bergmann <arnd@arndb.de> > > On 32-bit machines with 64-bit resource_size_t, the driver causes > a link failure because of the 64-bit division: > > arm-linux-gnueabi-ld: drivers/remoteproc/qcom_pil_info.o: in function `qcom_pil_info_store': > qcom_pil_info.c:(.text+0x1ec): undefined reference to `__aeabi_uldivmod' > > [...] Here is the summary with links: - remoteproc: qcom: pil_info: avoid 64-bit division https://git.kernel.org/andersson/remoteproc/c/c101deb7d50b You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/drivers/remoteproc/qcom_pil_info.c b/drivers/remoteproc/qcom_pil_info.c index 5521c4437ffa..7c007dd7b200 100644 --- a/drivers/remoteproc/qcom_pil_info.c +++ b/drivers/remoteproc/qcom_pil_info.c @@ -56,7 +56,7 @@ static int qcom_pil_info_init(void) memset_io(base, 0, resource_size(&imem)); _reloc.base = base; - _reloc.num_entries = resource_size(&imem) / PIL_RELOC_ENTRY_SIZE; + _reloc.num_entries = (u32)resource_size(&imem) / PIL_RELOC_ENTRY_SIZE; return 0; }