Module Name: src Committed By: riastradh Date: Mon Jul 27 14:09:00 UTC 2020
Modified Files: src/sys/dev/pci: xmm7360.c Log Message: Nix trailing whitespace. Helpful hint: (setq show-trailing-whitespace t) To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/dev/pci/xmm7360.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/xmm7360.c diff -u src/sys/dev/pci/xmm7360.c:1.2 src/sys/dev/pci/xmm7360.c:1.3 --- src/sys/dev/pci/xmm7360.c:1.2 Sun Jul 26 17:12:41 2020 +++ src/sys/dev/pci/xmm7360.c Mon Jul 27 14:09:00 2020 @@ -74,7 +74,7 @@ MODULE_DEVICE_TABLE(pci, xmm7360_ids); #include "opt_gateway.h" #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: xmm7360.c,v 1.2 2020/07/26 17:12:41 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xmm7360.c,v 1.3 2020/07/27 14:09:00 riastradh Exp $"); #endif #include <sys/param.h> @@ -188,7 +188,7 @@ typedef struct mutex spinlock_t; + __validate_container_of(PTR, TYPE, FIELD)) /* Copied from NetBSD <sys/cdefs.h> */ -#define __UNVOLATILE(a) ((void *)(unsigned long)(volatile void *)(a)) +#define __UNVOLATILE(a) ((void *)(unsigned long)(volatile void *)(a)) #if OpenBSD <= 201911 /* Backward compat with OpenBSD 6.6 */ @@ -263,7 +263,7 @@ typedef struct kmutex spinlock_t; #define XMM_KQ_ISFD_INITIALIZER .f_isfd = 1 #define tty_lock() mutex_spin_enter(&tty_lock) #define tty_unlock() mutex_spin_exit(&tty_lock) -#define tty_locked() KASSERT(mutex_owned(&tty_lock)) +#define tty_locked() KASSERT(mutex_owned(&tty_lock)) #define bpfattach(bpf, ifp, dlt, sz) bpf_attach(ifp, dlt, sz) #define NBPFILTER 1 #define BPF_MTAP_OUT(ifp, m) bpf_mtap(ifp, m, BPF_D_OUT) @@ -3058,7 +3058,7 @@ wwan_if_input(struct ifnet *ifp, struct if_statadd(ifp, if_ibytes, m->m_pkthdr.len); /* - * The interface can't receive packets for other host, so never + * The interface can't receive packets for other host, so never * really IFF_PROMISC even if bpf listener is attached. */ if (pfil_run_hooks(ifp->if_pfil, &m, ifp, PFIL_IN) != 0)