aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2011-11-28 11:35:08 +0100
committerThomas Huth <thuth@linux.vnet.ibm.com>2011-12-20 17:56:34 +0100
commit33bb95bab24d2dca03ee9e641d0e98d9fbd86fdd (patch)
treeeca73c12131b0765e3dfb9fe33a4df2397e932bd /include
parentec10f8af354266ba2576cfcc7d0c443a0cdbd7e9 (diff)
downloadSLOF-33bb95bab24d2dca03ee9e641d0e98d9fbd86fdd.zip
SLOF-33bb95bab24d2dca03ee9e641d0e98d9fbd86fdd.tar.gz
SLOF-33bb95bab24d2dca03ee9e641d0e98d9fbd86fdd.tar.bz2
Silenced some compiler warnings that occur when compiling with prototype checks
The compiler flags -Wmissing-prototypes and -Wstrict-prototypes generally help to write code with proper prototypes. This way one can avoid some ugly bugs because it helps to identify functions that do not have prototypes in headers. It also helps to improve performance since local functions then have to be declared "static", so the compiler can do better optimizations. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/ppc970/cpu.h6
-rw-r--r--include/ppcp7/cpu.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/ppc970/cpu.h b/include/ppc970/cpu.h
index f42fd48..a1a0932 100644
--- a/include/ppc970/cpu.h
+++ b/include/ppc970/cpu.h
@@ -73,21 +73,21 @@
#define EXPAND(x) STRINGIFY(x)
static inline void
-set_ci()
+set_ci(void)
{
unsigned long tmp;
asm volatile(EXPAND(SETCI(%0)) : "=r"(tmp) :: "memory", "cc");
}
static inline void
-clr_ci()
+clr_ci(void)
{
unsigned long tmp;
asm volatile(EXPAND(CLRCI(%0)) : "=r"(tmp) :: "memory", "cc");
}
static inline void
-eieio()
+eieio(void)
{
asm volatile ("eieio":::"memory");
}
diff --git a/include/ppcp7/cpu.h b/include/ppcp7/cpu.h
index 8b36382..042e64b 100644
--- a/include/ppcp7/cpu.h
+++ b/include/ppcp7/cpu.h
@@ -45,7 +45,7 @@ static inline void flush_cache(void* r, long n)
}
static inline void
-eieio()
+eieio(void)
{
asm volatile ("eieio":::"memory");
}