summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/cacheflush.h
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-02-12 12:12:01 -0800
committerIngo Molnar <mingo@elte.hu>2008-02-14 23:30:20 +0100
commit7bfeab9af95565e38a97fbcfb631e5b140241187 (patch)
tree1894ef2da0b9a5c6e2bc4b9e21a6cfcb515474df /include/asm-x86/cacheflush.h
parent184652eb6f68050af48a2ce3d5cf0537c208bee2 (diff)
downloadblackbird-op-linux-7bfeab9af95565e38a97fbcfb631e5b140241187.tar.gz
blackbird-op-linux-7bfeab9af95565e38a97fbcfb631e5b140241187.zip
x86: include proper prototypes for rodata_test
extern should not appear in C files. Also, the definitions do not match the prototype currently, not sure what way you want to go with this, I've switched the prototype to return int, but I can see going to the void return as well. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/cacheflush.h')
-rw-r--r--include/asm-x86/cacheflush.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/asm-x86/cacheflush.h b/include/asm-x86/cacheflush.h
index 6a22212b4b20..5396c212d8c0 100644
--- a/include/asm-x86/cacheflush.h
+++ b/include/asm-x86/cacheflush.h
@@ -48,12 +48,15 @@ void cpa_init(void);
#ifdef CONFIG_DEBUG_RODATA
void mark_rodata_ro(void);
+extern const int rodata_test_data;
#endif
+
#ifdef CONFIG_DEBUG_RODATA_TEST
-void rodata_test(void);
+int rodata_test(void);
#else
-static inline void rodata_test(void)
+static inline int rodata_test(void)
{
+ return 0;
}
#endif
OpenPOWER on IntegriCloud