linux-stable/drivers/net/ethernet/fungible
Dimitris Michailidis 31ac3bcee4 net/fungible: Fix reference to __udivdi3 on 32b builds
32b builds with CONFIG_PHYS_ADDR_T_64BIT=y, such as i386 PAE,
raise a linker error due to a 64b division:

ld: drivers/net/ethernet/fungible/funcore/fun_dev.o: in function
`fun_dev_enable':
(.text+0xe1a): undefined reference to `__udivdi3'

The divisor in the offendinng expression is a power of 2. Change it to
use an explicit right shift.

Fixes: e1ffcc6681 ("net/fungible: Add service module for Fungible drivers")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Dimitris Michailidis <dmichail@fungible.com>
Link: https://lore.kernel.org/r/20220401232411.313881-1-dmichail@fungible.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-04-01 21:32:30 -07:00
..
funcore net/fungible: Fix reference to __udivdi3 on 32b builds 2022-04-01 21:32:30 -07:00
funeth net/fungible: fix errors when CONFIG_TLS_DEVICE=n 2022-03-09 20:01:19 -08:00
Kconfig net/fungible: CONFIG_FUN_CORE needs SBITMAP 2022-03-09 11:26:44 +00:00
Makefile net/fungible: Kconfig, Makefiles, and MAINTAINERS 2022-02-27 10:51:23 +00:00