Skip to contentSkip to conversation

um: Fix a build error

PATCH In review Firo Yang 2 participants 2 messages Jun 15, 2015

Subsystems (2)
lore
Share & tools
lore

Firo Yang

author
#0 lore raw

PATCH 1/1 um: Fix a build error

Gcc5 failed to build uml.
Update codes to test __GNUC__ with 5 will be happier.

---
 arch/um/include/shared/init.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/um/include/shared/init.h +1 -1
index b3906f8..3af7098 100644
@@ -54,7 +54,7 @@ typedef void (*exitcall_t)(void);
 #endif
 
 #else
-#if __GNUC__ = 4
+#if __GNUC__ = 4 || __GNUC__ = 5
 # define __used			__attribute__((__used__))
 #endif
 #endif
Signature · 1 line
2.4.3
#1 lore raw

Am 15.06.2015 um 16:43 schrieb Firo Yang:

Quoted 4 lines

Gcc5 failed to build uml.
Update codes to test __GNUC__ with 5 will be happier.

The issue got already addressed by patches:
[PATCH 2/5] um: Stop abusing __KERNEL__ [PATCH 3/5] um: Remove copy&paste code from init.h

They will appear soon in Linus' tree.

Thanks,
//richard