xsk: fix 64-bit division
authorBjörn Töpel <bjorn.topel@intel.com>
Mon, 7 May 2018 17:43:50 +0000 (19:43 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 9 May 2018 16:12:21 +0000 (18:12 +0200)
commitea7e3435297c6ba3c8ae51db6ea48f1ed657dc5c
tree2f8339e8c0e17b2aa4ac6421ec6eadc7dac876ef
parenta46a5c1a43499c04ce429ff3639f1417b9739ebd
xsk: fix 64-bit division

i386 builds report:
  net/xdp/xdp_umem.o: In function `xdp_umem_reg':
  xdp_umem.c:(.text+0x47e): undefined reference to `__udivdi3'

This fix uses div_u64 instead of the GCC built-in.

Fixes: c0c77d8fb787 ("xsk: add user memory registration support sockopt")
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/xdp/xdp_umem.c