Module Name:    src
Committed By:   martin
Date:           Sun Jul 31 11:28:46 UTC 2022

Modified Files:
        src/sys/sys: atomic.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/sys/atomic.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/sys/atomic.h
diff -u src/sys/sys/atomic.h:1.25 src/sys/sys/atomic.h:1.26
--- src/sys/sys/atomic.h:1.25	Sat Jul 30 14:13:27 2022
+++ src/sys/sys/atomic.h	Sun Jul 31 11:28:46 2022
@@ -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 @@ void kcsan_atomic_store(volatile void *,
 })
 
 #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) {

Reply via email to