summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/dec
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2021-10-14 07:05:00 +0200
committerJakub Kicinski <kuba@kernel.org>2021-10-15 04:18:22 +0200
commitcd2621d07d517473611b170c69beb6524c677740 (patch)
tree3f87b1bcbd983e1e3289a77e6ab187a28c0f475a /drivers/net/ethernet/dec
parenthv_netvsc: Add comment of netvsc_xdp_xmit() (diff)
downloadlinux-cd2621d07d517473611b170c69beb6524c677740.tar.xz
linux-cd2621d07d517473611b170c69beb6524c677740.zip
net: fealnx: fix build for UML
On i386, when builtin (not a loadable module), the fealnx driver inspects boot_cpu_data to see what CPU family it is running on, and then acts on that data. The "family" struct member (x86) does not exist when running on UML, so prevent that test and do the default action. Prevents this build error on UML + i386: ../drivers/net/ethernet/fealnx.c: In function ‘netdev_open’: ../drivers/net/ethernet/fealnx.c:861:19: error: ‘struct cpuinfo_um’ has no member named ‘x86’ Fixes: 68f5d3f3b654 ("um: add PCI over virtio emulation driver") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: linux-um@lists.infradead.org Cc: Jeff Dike <jdike@addtoit.com> Cc: Richard Weinberger <richard@nod.at> Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com> Link: https://lore.kernel.org/r/20211014050500.5620-1-rdunlap@infradead.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/dec')
0 files changed, 0 insertions, 0 deletions