gve: Fix build on i386 and enable LINT builds.
Reviewed-by: imp Differential Revision: https://reviews.freebsd.org/D40419
This commit is contained in:
parent
6fa30de4d3
commit
4d779448ad
@ -891,15 +891,12 @@ _nvme.4= nvme.4
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" || \
|
||||
${MACHINE_CPUARCH} == "aarch64"
|
||||
_gve.4= gve.4
|
||||
_ipmi.4= ipmi.4
|
||||
_linux.4= linux.4
|
||||
_ossl.4= ossl.4
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "aarch64"
|
||||
_gve.4= gve.4
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "aarch64" || \
|
||||
${MACHINE_CPUARCH} == "riscv"
|
||||
_cgem.4= cgem.4
|
||||
|
@ -13,6 +13,7 @@ nodevice ale
|
||||
nodevice bxe
|
||||
nodevice em
|
||||
nodevice fxp
|
||||
nodevice gve
|
||||
nodevice jme
|
||||
nodevice lio
|
||||
nodevice msk
|
||||
|
@ -499,6 +499,9 @@ device virtio_console # VirtIO Console device
|
||||
# Linux KVM paravirtualization support
|
||||
device kvm_clock # KVM paravirtual clock driver
|
||||
|
||||
# Google Virtual NIC
|
||||
device gve # Google Virtual NIC (gVNIC) driver
|
||||
|
||||
# Microsoft Hyper-V enhancement support
|
||||
device hyperv # HyperV drivers
|
||||
device hvhid # HyperV HID device
|
||||
|
@ -68,6 +68,9 @@ device virtio_mmio
|
||||
device virtio_blk
|
||||
device vtnet
|
||||
|
||||
# Google Virtual NIC
|
||||
device gve # Google Virtual NIC (gVNIC) driver
|
||||
|
||||
# Microsoft Hyper-V
|
||||
device hyperv
|
||||
|
||||
|
@ -101,9 +101,9 @@ gve_alloc_qpl(struct gve_priv *priv, uint32_t id, int npages, bool single_kva)
|
||||
int i;
|
||||
|
||||
if (npages + priv->num_registered_pages > priv->max_registered_pages) {
|
||||
device_printf(priv->dev, "Reached max number of registered pages %lu > %lu\n",
|
||||
npages + priv->num_registered_pages,
|
||||
priv->max_registered_pages);
|
||||
device_printf(priv->dev, "Reached max number of registered pages %ju > %ju\n",
|
||||
(uintmax_t)npages + priv->num_registered_pages,
|
||||
(uintmax_t)priv->max_registered_pages);
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
|
@ -701,6 +701,9 @@ device virtio_console # VirtIO Console device
|
||||
# Linux KVM paravirtualization support
|
||||
device kvm_clock # KVM paravirtual clock driver
|
||||
|
||||
# Google Virtual NIC
|
||||
device gve # Google Virtual NIC (gVNIC) driver
|
||||
|
||||
options HYPERV
|
||||
device hyperv # HyperV drivers
|
||||
device hvhid # HyperV HID device
|
||||
|
@ -555,13 +555,10 @@ _mlx5ib= mlx5ib
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
|
||||
_gve= gve
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
|
||||
${MACHINE_CPUARCH} == "i386"
|
||||
_ena= ena
|
||||
_gve= gve
|
||||
_iwlwifi= iwlwifi
|
||||
.if ${MK_SOURCELESS_UCODE} != "no"
|
||||
_iwlwififw= iwlwififw
|
||||
|
Loading…
Reference in New Issue
Block a user