diff --git a/sys/compat/ndis/subr_ndis.c b/sys/compat/ndis/subr_ndis.c index ac26a2e093fc..b66fd35aaa4d 100644 --- a/sys/compat/ndis/subr_ndis.c +++ b/sys/compat/ndis/subr_ndis.c @@ -896,7 +896,7 @@ NdisReadPciSlotInformation(adapter, slot, offset, buf, len) uint32_t len; { ndis_miniport_block *block; - int i; + uint32_t i; char *dest; device_t dev; @@ -939,7 +939,7 @@ NdisWritePciSlotInformation(adapter, slot, offset, buf, len) uint32_t len; { ndis_miniport_block *block; - int i; + uint32_t i; char *dest; device_t dev; @@ -2432,7 +2432,7 @@ NdisReadPcmciaAttributeMemory(handle, offset, buf, len) bus_space_handle_t bh; bus_space_tag_t bt; char *dest; - int i; + uint32_t i; if (handle == NULL) return (0); @@ -2462,7 +2462,7 @@ NdisWritePcmciaAttributeMemory(handle, offset, buf, len) bus_space_handle_t bh; bus_space_tag_t bt; char *src; - int i; + uint32_t i; if (handle == NULL) return (0); @@ -2670,7 +2670,7 @@ ndis_find_sym(lf, filename, suffix, sym) { char *fullsym; char *suf; - int i; + size_t i; fullsym = ExAllocatePoolWithTag(NonPagedPool, MAXPATHLEN, 0); if (fullsym == NULL) diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index dd1ceeb3bbff..56b634f01a20 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -505,9 +505,9 @@ SYSCTL_DECL(_debug_acpi); * * Returns the VM domain ID if found, or -1 if not found / invalid. */ -extern int acpi_map_pxm_to_vm_domainid(int pxm); -extern int acpi_get_domain(device_t dev, device_t child, int *domain); -extern int acpi_parse_pxm(device_t dev, int *domain); +int acpi_map_pxm_to_vm_domainid(int pxm); +int acpi_get_domain(device_t dev, device_t child, int *domain); +int acpi_parse_pxm(device_t dev, int *domain); #endif /* _KERNEL */ #endif /* !_ACPIVAR_H_ */ diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index b147655da766..f8efd10eb6cb 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -1444,7 +1444,7 @@ devfs_revoke(struct vop_revoke_args *ap) struct cdev *dev; struct cdev_priv *cdp; struct devfs_dirent *de; - int i; + u_int i; KASSERT((ap->a_flags & REVOKEALL) != 0, ("devfs_revoke !REVOKEALL")); diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index 233d1af7cda9..a17d6d9c02af 100644 --- a/sys/netinet/ip_divert.c +++ b/sys/netinet/ip_divert.c @@ -765,9 +765,6 @@ static int div_modevent(module_t mod, int type, void *unused) { int err = 0; -#ifndef VIMAGE - int n; -#endif switch (type) { case MOD_LOAD: @@ -808,8 +805,7 @@ div_modevent(module_t mod, int type, void *unused) * we destroy the lock. */ INP_INFO_WLOCK(&V_divcbinfo); - n = V_divcbinfo.ipi_count; - if (n != 0) { + if (V_divcbinfo.ipi_count != 0) { err = EBUSY; INP_INFO_WUNLOCK(&V_divcbinfo); break; diff --git a/sys/netinet/tcp_lro.c b/sys/netinet/tcp_lro.c index 4ec8f6e2bcfe..0ade1d758227 100644 --- a/sys/netinet/tcp_lro.c +++ b/sys/netinet/tcp_lro.c @@ -569,7 +569,7 @@ tcp_lro_rx(struct lro_ctrl *lc, struct mbuf *m, uint32_t csum) if ((th->th_flags & ~(TH_ACK | TH_PUSH)) != 0) return (TCP_LRO_CANNOT); - /* XXX-BZ We lose a ACK|PUSH flag concatinating multiple segments. */ + /* XXX-BZ We lose a ACK|PUSH flag concatenating multiple segments. */ /* XXX-BZ Ideally we'd flush on PUSH? */ /* diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index e3f929492c0e..13b5417ffb43 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -358,7 +358,7 @@ vmspace_free(struct vmspace *vm) { WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, - "vmspace_free() called with non-sleepable lock held"); + "vmspace_free() called"); if (vm->vm_refcnt == 0) panic("vmspace_free: attempt to free already freed vmspace");