Skip to contentSkip to conversation

kernel-bounds-avoid-circular-dependencies-in-generated-headers.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 22, 2013

lore
Share & tools
lore
#0 lore raw

Subject: [merged] kernel-bounds-avoid-circular-dependencies-in-generated-headers.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 22 Nov 2013 13:21:41 -0800

The patch titled
Subject: kernel/bounds: avoid circular dependencies in generated headers
has been removed from the -mm tree. Its filename was
kernel-bounds-avoid-circular-dependencies-in-generated-headers.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: "Kirill A. Shutemov" <[email protected]>
Subject: kernel/bounds: avoid circular dependencies in generated headers

<linux/spinlock.h> has havy dependencies on other header files. It trigger circular dependencies in generated headers on IA64, at least:

CC kernel/bounds.s
In file included from arch/ia64/include/asm/thread_info.h:9:0,
from include/linux/thread_info.h:54,
from include/asm-generic/preempt.h:4,
from arch/ia64/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:18,
from include/linux/spinlock.h:50,
from kernel/bounds.c:14:
arch/ia64/include/asm/asm-offsets.h:1:35: fatal error: generated/asm-offsets.h: No such file or directory compilation terminated.

Let's replace <linux/spinlock.h> with <linux/spinlock_types.h>, it's enough to find out size of spinlock_t.

---

 kernel/bounds.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/bounds.c renamed from kernel/bounds.c~kernel-bounds-avoid-circular-dependencies-in-generated-headers +1 -1
diff -puN kernel/bounds.c~kernel-bounds-avoid-circular-dependencies-in-generated-headers kernel/bounds.c
@@ -11,7 +11,7 @@
 #include <linux/kbuild.h>
 #include <linux/page_cgroup.h>
 #include <linux/log2.h>
-#include <linux/spinlock.h>
+#include <linux/spinlock_types.h>
 
 void foo(void)
 {

_

Patches currently in -mm which might be from [email protected] are

origin.patch
x86-mm-get-aslr-work-for-hugetlb-mappings.patch