Skip to contentSkip to conversation

fix KM_TYPE_NR undeclared in sched.h on 32 bit x86

PATCH In review Darren Hart 2 participants 2 messages Aug 9, 2011 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix KM_TYPE_NR undeclared in sched.h on 32 bit x86

Patch peter_zijlstra-re-_3_0-rt4.patch causes 32 bit compilations to fail with:
sched.h:1592:17: error: ‘KM_TYPE_NR’ undeclared here (not in a function)

Including asm/kmap_types in sched.h resolves the issue.

CC Peter Zijlstra <[email protected]>
CC Bruce Ashfield <[email protected]>
---
 include/linux/sched.h |    1 +
 1 file changed, 1 insertion(+)
include/linux/sched.h +1 -0
Index: linux-3.0-rt/include/linux/sched.h
===================================================================
@@ -63,6 +63,7 @@ struct sched_param {
 #include <linux/nodemask.h>
 #include <linux/mm_types.h>
 
+#include <asm/kmap_types.h>
 #include <asm/system.h>
 #include <asm/page.h>
 #include <asm/ptrace.h>
Signature · 7 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#1 lore raw
Quoted 6 lines · Darren Hart

Patch peter_zijlstra-re-_3_0-rt4.patch causes 32 bit compilations to fail with:
sched.h:1592:17: error: ‘KM_TYPE_NR’ undeclared here (not in a function)

Including asm/kmap_types in sched.h resolves the issue.

Yep indeed, I wonder why my i386-defconfig build.. header deps magic or so.

I've updated the patch in question, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html