Module Name: src Committed By: msaitoh Date: Tue Jan 25 03:40:29 UTC 2022
Modified Files: src/sys/dev/pci/ixgbe: ixgbe_netbsd.h Log Message: Fix compile error for non __HAVE_ATOMIC64_LOADSTORE arch. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/dev/pci/ixgbe/ixgbe_netbsd.h 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/ixgbe/ixgbe_netbsd.h diff -u src/sys/dev/pci/ixgbe/ixgbe_netbsd.h:1.15 src/sys/dev/pci/ixgbe/ixgbe_netbsd.h:1.16 --- src/sys/dev/pci/ixgbe/ixgbe_netbsd.h:1.15 Tue Jan 25 01:56:22 2022 +++ src/sys/dev/pci/ixgbe/ixgbe_netbsd.h Tue Jan 25 03:40:29 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: ixgbe_netbsd.h,v 1.15 2022/01/25 01:56:22 msaitoh Exp $ */ +/* $NetBSD: ixgbe_netbsd.h,v 1.16 2022/01/25 03:40:29 msaitoh Exp $ */ /* * Copyright (c) 2011 The NetBSD Foundation, Inc. * All rights reserved. @@ -61,9 +61,9 @@ atomic_store_relaxed(&((evp)->ev_count), \ atomic_load_relaxed(&((evp)->ev_count)) + (val)) #else -#define IXGBE_EVC_LOAD(evp) ((ev)->ev_count)) -#define IXGBE_EVC_STORE(evp, val) ((ev)->ev_count = (val)) -#define IXGBE_EVC_ADD(evp, val) ((ev)->ev_count += (val)) +#define IXGBE_EVC_LOAD(evp) ((evp)->ev_count)) +#define IXGBE_EVC_STORE(evp, val) ((evp)->ev_count = (val)) +#define IXGBE_EVC_ADD(evp, val) ((evp)->ev_count += (val)) #endif #define IXGBE_EVC_REGADD(hw, stats, regname, evname) \