Skip to contentSkip to conversation

fio: Eliminate compilation warning in ppc

PATCH Applied Sumanth K 2 participants 2 messages Jun 16, 2014

lore
Share & tools
lore

Sumanth K

author
#0 lore raw

PATCH 1/1 fio: Eliminate compilation warning in ppc

From: Sumanth K <[email protected]>

Eliminate compilation warning : 'atb_clocktest' defined but
not used. Function is declared as static in header file. So compiler will know if they used or not. Just eliminate the warning by #if 0 /unless we do use it.

---
 arch/arch-ppc.h | 2 ++
 1 file changed, 2 insertions(+)
arch/arch-ppc.h +2 -0
index 0f043bc..d4a080c 100644
@@ -82,6 +82,7 @@ static inline unsigned long long get_cpu_clock(void)
 	return ret;
 }
 
+#if 0
 static void atb_child(void)
 {
 	arch_flags |= ARCH_FLAG_1;
@@ -106,6 +107,7 @@ static void atb_clocktest(void)
 			arch_flags |= ARCH_FLAG_1;
 	}
 }
+#endif
 
 #define ARCH_HAVE_INIT
 extern int tsc_reliable;
Signature · 1 line
1.8.3.1
Applied
#1 lore raw
Quoted 6 lines · Sumanth K

From: Sumanth K <[email protected]>

Eliminate compilation warning : 'atb_clocktest' defined but
not used. Function is declared as static in header file. So compiler will know if they used or not. Just eliminate the warning by #if 0 /unless we do use it.

Thanks, applied. Arguably the code should just be removed whole sale, as it'll always reside in the git history for someone to resurrect.

Signature · 1 line
Jens Axboe