From d0000c5a85d72a4f6ade1bb1a1f81555798f8516 Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 30 Mar 2024 01:13:56 +0000 Subject: [PATCH] use void in function decl with no args; avoids non-ANSI smatch warnings --- sys/arch/sparc64/include/ctlreg.h | 6 +++--- 1 file 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" : \ -- 2.20.1