linux/drivers/mailbox
Arnd Bergmann c5a9d1f30c 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>
2016-03-16 09:18:15 +05:30
..
arm_mhu.c Merge branch 'mailbox-for-next' of git://git.linaro.org/landing-teams/working/fujitsu/integration 2015-09-05 18:11:04 -07:00
bcm2835-mailbox.c mailbox: Drop owner assignment from platform_driver 2015-08-05 17:20:53 +05:30
hi6220-mailbox.c mailbox: Hi6220: add mailbox driver 2016-03-04 12:32:20 +05:30
Kconfig mailbox: rockchip: Add Rockchip mailbox driver 2016-03-11 10:40:06 +07:00
mailbox-altera.c mailbox: Make mbox_chan_ops const 2015-05-12 09:18:16 +05:30
mailbox-sti.c mailbox: constify mbox_chan_ops structure 2015-11-30 21:12:05 +05:30
mailbox-test.c mailbox: mailbox-test: add support for separate tx/rx buffer with single channel 2016-03-04 12:32:19 +05:30
mailbox-xgene-slimpro.c mailbox/xgene-slimpro: Checking for IS_ERR instead of NULL 2016-03-04 12:32:20 +05:30
mailbox.c mailbox: switch to hrtimer for tx_complete polling 2015-08-10 14:29:27 +05:30
mailbox.h Mailbox: Add support for Platform Communication Channel 2014-11-27 12:51:09 +05:30
Makefile mailbox: rockchip: Add Rockchip mailbox driver 2016-03-11 10:40:06 +07:00
omap-mailbox.c mailbox/omap: Add ti,mbox-send-noirq quirk to fix AM33xx CPU Idle 2015-10-23 11:19:27 +05:30
pcc.c mailbox: pcc: fix channel calculation in get_pcc_channel() 2016-02-02 16:39:13 +05:30
pl320-ipc.c arm: use subsys_initcall in non-modular pl320 IPC code 2015-06-16 14:12:35 -04:00
rockchip-mailbox.c mailbox: rockchip: avoid 64-bit division 2016-03-16 09:18:15 +05:30