summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2016-03-07 13:21:52 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2016-03-07 13:21:52 +0000
commit2794f7ded5ebf6ef0e9067f6c0ca552b155b21ba (patch)
treefadd633c09a58f3f8fa8cad8f8b85cee9cd2b682 /sys/arch/sparc64/include
parentbc31d3ab9380405749109f50c712a4ff98a7b573 (diff)
Sync no-argument function declaration and definition by adding (void).
ok mpi@
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/ctlreg.h4
-rw-r--r--sys/arch/sparc64/include/db_machdep.h3
-rw-r--r--sys/arch/sparc64/include/psl.h10
3 files changed, 8 insertions, 9 deletions
diff --git a/sys/arch/sparc64/include/ctlreg.h b/sys/arch/sparc64/include/ctlreg.h
index 8918341d91f..d794e56aae0 100644
--- a/sys/arch/sparc64/include/ctlreg.h
+++ b/sys/arch/sparc64/include/ctlreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ctlreg.h,v 1.26 2014/03/29 18:09:30 guenther Exp $ */
+/* $OpenBSD: ctlreg.h,v 1.27 2016/03/07 13:21:51 naddy Exp $ */
/* $NetBSD: ctlreg.h,v 1.28 2001/08/06 23:55:34 eeh Exp $ */
/*
@@ -718,7 +718,7 @@ void asi_set(int asi)
extern __inline u_int8_t asi_get(void);
extern __inline
-u_int8_t asi_get()
+u_int8_t asi_get(void)
{
return sparc_rd(asi);
}
diff --git a/sys/arch/sparc64/include/db_machdep.h b/sys/arch/sparc64/include/db_machdep.h
index 96398636d09..fff62e8ddcc 100644
--- a/sys/arch/sparc64/include/db_machdep.h
+++ b/sys/arch/sparc64/include/db_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_machdep.h,v 1.16 2016/02/27 13:08:07 mpi Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.17 2016/03/07 13:21:51 naddy Exp $ */
/* $NetBSD: db_machdep.h,v 1.12 2001/07/07 15:16:13 eeh Exp $ */
/*
@@ -114,7 +114,6 @@ boolean_t db_inst_call(int inst);
boolean_t db_inst_branch(int inst);
boolean_t db_inst_unconditional_flow_transfer(int inst);
db_addr_t db_branch_taken(int inst, db_addr_t pc, db_regs_t *regs);
-void db_machine_init(void);
#define inst_trap_return(ins) db_inst_trap_return(ins)
#define inst_return(ins) db_inst_return(ins)
diff --git a/sys/arch/sparc64/include/psl.h b/sys/arch/sparc64/include/psl.h
index d3fb5e8f6d4..87c9fab80dc 100644
--- a/sys/arch/sparc64/include/psl.h
+++ b/sys/arch/sparc64/include/psl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: psl.h,v 1.28 2014/03/29 18:09:30 guenther Exp $ */
+/* $OpenBSD: psl.h,v 1.29 2016/03/07 13:21:51 naddy Exp $ */
/* $NetBSD: psl.h,v 1.20 2001/04/13 23:30:05 thorpej Exp $ */
/*
@@ -259,7 +259,7 @@ void splassert_check(int, const char *);
*/
extern __inline u_int64_t getpstate(void);
extern __inline
-u_int64_t getpstate()
+u_int64_t getpstate(void)
{
return (sparc_rdpr(pstate));
}
@@ -272,7 +272,7 @@ extern __inline void setpstate(u_int64_t newpstate)
extern __inline int getcwp(void);
extern __inline
-int getcwp()
+int getcwp(void)
{
return (sparc_rdpr(cwp));
}
@@ -286,14 +286,14 @@ setcwp(u_int64_t newcwp)
extern __inline u_int64_t getver(void);
extern __inline
-u_int64_t getver()
+u_int64_t getver(void)
{
return (sparc_rdpr(ver));
}
extern __inline u_int64_t intr_disable(void);
extern __inline u_int64_t
-intr_disable()
+intr_disable(void)
{
u_int64_t s;