diff mbox series

[02/13] cpu.h: Use this_cpu through accessor

Message ID 20180502083753.25090-3-joel@jms.id.au
State Superseded
Headers show
Series Support building with clang | expand

Commit Message

Joel Stanley May 2, 2018, 8:37 a.m. UTC
This is the only call site where we use __this_cpu directly. Instead use
this_cpu() to access it in preperation for using clang to build skiboot.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 include/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/cpu.h b/include/cpu.h
index 2ca59b9648fa..091b1c940d41 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -305,7 +305,7 @@  void cpu_set_ipi_enable(bool sreset_enabled);
 
 static inline void cpu_give_self_os(void)
 {
-	__this_cpu->state = cpu_state_os;
+	this_cpu()->state = cpu_state_os;
 }
 
 extern unsigned long __attrconst cpu_stack_bottom(unsigned int pir);