aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-03-14 23:46:55 +0100
committerJassi Brar <jaswinder.singh@linaro.org>2016-03-16 09:18:15 +0530
commitc5a9d1f30c066b7922a5f66b8c03a263d2f06a8c (patch)
tree33491c8c2837f03b7675effd7dabbbe1631a5301 /Documentation
parentmailbox: rockchip: Add Rockchip mailbox driver (diff)
downloadlinux-dev-c5a9d1f30c066b7922a5f66b8c03a263d2f06a8c.tar.xz
linux-dev-c5a9d1f30c066b7922a5f66b8c03a263d2f06a8c.zip
mailbox: rockchip: avoid 64-bit division
The newly added rockchip mailbox driver causes a bug in the ARM allyesconfig build because of a division of a resource_size_t variable that may be 64 bit wide: drivers/mailbox/built-in.o: In function `rockchip_mbox_probe': :(.text+0x6614): undefined reference to `__aeabi_uldivmod' This adds a cast to size_t, which turns it into a 32-bit division in this case. This is safe because we know that we cannot possibly map a resource that is longer than what a pointer contains, and in practice it will be very short instead. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions