diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-03-30 01:13:57 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-03-30 01:13:57 +0000 |
commit | da1e166109c0ed3cfdc8589c503284ef145721af (patch) | |
tree | 83e970e0a223e7ce4965337c5dadbf92b54558fa /sys/arch/sparc64 | |
parent | c67252f7f805839c1c6e9b98a764f4d739ba5602 (diff) |
use void in function decl with no args; avoids non-ANSI smatch warnings
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/include/ctlreg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/include/ctlreg.h b/sys/arch/sparc64/include/ctlreg.h index cc270f8a465..0872b12b423 100644 --- a/sys/arch/sparc64/include/ctlreg.h +++ b/sys/arch/sparc64/include/ctlreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ctlreg.h,v 1.30 2020/07/31 11:19:12 kettenis Exp $ */ +/* $OpenBSD: ctlreg.h,v 1.31 2024/03/30 01:13:56 jsg Exp $ */ /* $NetBSD: ctlreg.h,v 1.28 2001/08/06 23:55:34 eeh Exp $ */ /* @@ -530,7 +530,7 @@ do { \ #define GEN_RD(name) \ static inline u_int64_t sparc_rd_ ## name(void); \ static inline u_int64_t \ -sparc_rd_ ## name() \ +sparc_rd_ ## name(void) \ { \ u_int64_t r; \ __asm volatile("rd %%" #name ", %0" : \ @@ -542,7 +542,7 @@ sparc_rd_ ## name() \ #define GEN_RDPR(name) \ static inline u_int64_t sparc_rdpr_ ## name(void); \ static inline u_int64_t \ -sparc_rdpr_ ## name() \ +sparc_rdpr_ ## name(void) \ { \ u_int64_t r; \ __asm volatile("rdpr %%" #name ", %0" : \ |