Skip to contentSkip to conversation

+ include-linux-genalloch-spinlock_t-needs-spinlock_typesh.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jan 10, 2014

lore
Share & tools
lore
#0 lore raw

Subject: + include-linux-genalloch-spinlock_t-needs-spinlock_typesh.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Fri, 10 Jan 2014 15:04:06 -0800

The patch titled
Subject: include/linux/genalloc.h: spinlock_t needs spinlock_types.h
has been added to the -mm tree. Its filename is
include-linux-genalloch-spinlock_t-needs-spinlock_typesh.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/include-linux-genalloch-spinlock_t-needs-spinlock_typesh.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/include-linux-genalloch-spinlock_t-needs-spinlock_typesh.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Shawn Guo <[email protected]>
Subject: include/linux/genalloc.h: spinlock_t needs spinlock_types.h

Compiling a C file which includes genalloc.h but without spinlock_types.h being included before, we will see the compile error below.

include/linux/genalloc.h:54:2: error: unknown type name `spinlock_t'

Include spinlock_types.h from genalloc.h to fix the problem.

---

 include/linux/genalloc.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/genalloc.h renamed from include/linux/genalloc.h~include-linux-genalloch-spinlock_t-needs-spinlock_typesh +2 -0
diff -puN include/linux/genalloc.h~include-linux-genalloch-spinlock_t-needs-spinlock_typesh include/linux/genalloc.h
@@ -30,6 +30,8 @@
 #ifndef __GENALLOC_H__
 #define __GENALLOC_H__
 
+#include <linux/spinlock_types.h>
+
 struct device;
 struct device_node;
 

_

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

include-linux-genalloch-spinlock_t-needs-spinlock_typesh.patch linux-next.patch