Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Move attributes to the front of the __do_atomic_stor...



details:   https://anonhg.NetBSD.org/src/rev/6c4fae6cc009
branches:  trunk
changeset: 368728:6c4fae6cc009
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jul 31 11:28:46 2022 +0000

description:
Move attributes to the front of the __do_atomic_store declarations
(to make it compatible with c++ and other more nitpicky compiker invocations).
Should fix the build for sparc.

diffstat:

 sys/sys/atomic.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5134b4313c47 -r 6c4fae6cc009 sys/sys/atomic.h
--- a/sys/sys/atomic.h  Sun Jul 31 06:21:41 2022 +0000
+++ b/sys/sys/atomic.h  Sun Jul 31 11:28:46 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic.h,v 1.25 2022/07/30 14:13:27 riastradh Exp $    */
+/*     $NetBSD: atomic.h,v 1.26 2022/07/31 11:28:46 martin Exp $       */
 
 /*-
  * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -486,7 +486,7 @@
 })
 
 #ifdef __HAVE_HASHLOCKED_ATOMICS
-static void __inline __always_inline
+static __inline __always_inline void
 __do_atomic_store(volatile void *p, const void *q, size_t size)
 {
        switch (size) {



Home | Main Index | Thread Index | Old Index