summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-06-26 01:40:50 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-06-26 01:40:50 +0000
commitdcedd4374abb6f3456f8d6bc995601732ffaacf4 (patch)
treed1505a7186d140aa1f41f3c8e28a12c551ba400a /sys/arch/sparc64/include
parentf02c64296a18ec9595fe6efcb29e617c260ba9b9 (diff)
return type on a dedicated line when declaring functions
ok mglocker@
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/ctlreg.h14
-rw-r--r--sys/arch/sparc64/include/psl.h17
2 files changed, 16 insertions, 15 deletions
diff --git a/sys/arch/sparc64/include/ctlreg.h b/sys/arch/sparc64/include/ctlreg.h
index 0872b12b423..72c27c06a55 100644
--- a/sys/arch/sparc64/include/ctlreg.h
+++ b/sys/arch/sparc64/include/ctlreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ctlreg.h,v 1.31 2024/03/30 01:13:56 jsg Exp $ */
+/* $OpenBSD: ctlreg.h,v 1.32 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: ctlreg.h,v 1.28 2001/08/06 23:55:34 eeh Exp $ */
/*
@@ -676,23 +676,23 @@ STNC_GEN(u_int, sta);
static inline void asi_set(int);
-static inline
-void asi_set(int asi)
+static inline void
+asi_set(int asi)
{
sparc_wr(asi, asi, 0);
}
static inline u_int8_t asi_get(void);
-static inline
-u_int8_t asi_get(void)
+static inline u_int8_t
+asi_get(void)
{
return sparc_rd(asi);
}
/* flush address from instruction cache */
static inline void flush(void *);
-static inline
-void flush(void *p)
+static inline void
+flush(void *p)
{
__asm volatile("flush %0"
: : "r" (p)
diff --git a/sys/arch/sparc64/include/psl.h b/sys/arch/sparc64/include/psl.h
index 1ef57d86a07..e531724df5b 100644
--- a/sys/arch/sparc64/include/psl.h
+++ b/sys/arch/sparc64/include/psl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: psl.h,v 1.35 2019/06/29 15:41:21 deraadt Exp $ */
+/* $OpenBSD: psl.h,v 1.36 2024/06/26 01:40:49 jsg Exp $ */
/* $NetBSD: psl.h,v 1.20 2001/04/13 23:30:05 thorpej Exp $ */
/*
@@ -250,21 +250,22 @@ void splassert_check(int, const char *);
* GCC pseudo-functions for manipulating privileged registers
*/
static inline u_int64_t getpstate(void);
-static inline
-u_int64_t getpstate(void)
+static inline u_int64_t
+getpstate(void)
{
return (sparc_rdpr(pstate));
}
static inline void setpstate(u_int64_t);
-static inline void setpstate(u_int64_t newpstate)
+static inline void
+setpstate(u_int64_t newpstate)
{
sparc_wrpr(pstate, newpstate, 0);
}
static inline int getcwp(void);
-static inline
-int getcwp(void)
+static inline int
+getcwp(void)
{
return (sparc_rdpr(cwp));
}
@@ -277,8 +278,8 @@ setcwp(u_int64_t newcwp)
}
static inline u_int64_t getver(void);
-static inline
-u_int64_t getver(void)
+static inline u_int64_t
+getver(void)
{
return (sparc_rdpr(ver));
}