Skip to content

Commit 429f731

Browse files
committed
Merge branch 'semaphore' of git://git.kernel.org/pub/scm/linux/kernel/git/willy/misc
* 'semaphore' of git://git.kernel.org/pub/scm/linux/kernel/git/willy/misc: Deprecate the asm/semaphore.h files in feature-removal-schedule. Convert asm/semaphore.h users to linux/semaphore.h security: Remove unnecessary inclusions of asm/semaphore.h lib: Remove unnecessary inclusions of asm/semaphore.h kernel: Remove unnecessary inclusions of asm/semaphore.h include: Remove unnecessary inclusions of asm/semaphore.h fs: Remove unnecessary inclusions of asm/semaphore.h drivers: Remove unnecessary inclusions of asm/semaphore.h net: Remove unnecessary inclusions of asm/semaphore.h arch: Remove unnecessary inclusions of asm/semaphore.h
2 parents 85b375a + d2f5e80 commit 429f731

136 files changed

Lines changed: 44 additions & 143 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/DocBook/kernel-locking.tmpl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
</para>
242242
<para>
243243
The third type is a semaphore
244-
(<filename class="headerfile">include/asm/semaphore.h</filename>): it
244+
(<filename class="headerfile">include/linux/semaphore.h</filename>): it
245245
can have more than one holder at any time (the number decided at
246246
initialization time), although it is most commonly used as a
247247
single-holder lock (a mutex). If you can't get a semaphore, your
@@ -290,7 +290,7 @@
290290
<para>
291291
If you have a data structure which is only ever accessed from
292292
user context, then you can use a simple semaphore
293-
(<filename>linux/asm/semaphore.h</filename>) to protect it. This
293+
(<filename>linux/linux/semaphore.h</filename>) to protect it. This
294294
is the most trivial case: you initialize the semaphore to the number
295295
of resources available (usually 1), and call
296296
<function>down_interruptible()</function> to grab the semaphore, and
@@ -1656,7 +1656,7 @@ the amount of locking which needs to be done.
16561656
#include &lt;linux/slab.h&gt;
16571657
#include &lt;linux/string.h&gt;
16581658
+#include &lt;linux/rcupdate.h&gt;
1659-
#include &lt;asm/semaphore.h&gt;
1659+
#include &lt;linux/semaphore.h&gt;
16601660
#include &lt;asm/errno.h&gt;
16611661

16621662
struct object

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,11 @@ Why: /sys/fs/o2cb is the proper location for this information - /sys/o2cb
298298
ocfs2-tools. 2 years should be sufficient time to phase in new versions
299299
which know to look in /sys/fs/o2cb.
300300
Who: ocfs2-devel@oss.oracle.com
301+
302+
---------------------------
303+
304+
What: asm/semaphore.h
305+
When: 2.6.26
306+
Why: Implementation became generic; users should now include
307+
linux/semaphore.h instead.
308+
Who: Matthew Wilcox <willy@linux.intel.com>

‎arch/arm/common/rtctime.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <linux/mutex.h>
2323

2424
#include <asm/rtc.h>
25-
#include <asm/semaphore.h>
2625

2726
static DECLARE_WAIT_QUEUE_HEAD(rtc_wait);
2827
static struct fasync_struct *rtc_async_queue;

‎arch/arm/mach-aaec2000/clock.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include <linux/clk.h>
1919
#include <linux/mutex.h>
2020

21-
#include <asm/semaphore.h>
22-
2321
#include "clock.h"
2422

2523
static LIST_HEAD(clocks);

‎arch/arm/mach-at91/clock.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <linux/delay.h>
2424
#include <linux/clk.h>
2525

26-
#include <asm/semaphore.h>
2726
#include <asm/io.h>
2827
#include <asm/mach-types.h>
2928

‎arch/arm/mach-integrator/clock.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <linux/clk.h>
1818
#include <linux/mutex.h>
1919

20-
#include <asm/semaphore.h>
2120
#include <asm/hardware/icst525.h>
2221

2322
#include "clock.h"

‎arch/arm/mach-pnx4008/clock.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <linux/err.h>
2222
#include <linux/delay.h>
2323

24-
#include <asm/semaphore.h>
2524
#include <asm/hardware.h>
2625
#include <asm/io.h>
2726

‎arch/arm/mach-pnx4008/gpio.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <linux/types.h>
1818
#include <linux/kernel.h>
1919
#include <linux/module.h>
20-
#include <asm/semaphore.h>
2120
#include <asm/io.h>
2221
#include <asm/arch/platform.h>
2322
#include <asm/arch/gpio.h>

‎arch/arm/mach-realview/clock.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <linux/clk.h>
1717
#include <linux/mutex.h>
1818

19-
#include <asm/semaphore.h>
2019
#include <asm/hardware/icst307.h>
2120

2221
#include "clock.h"

‎arch/arm/mach-versatile/clock.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <linux/clk.h>
1818
#include <linux/mutex.h>
1919

20-
#include <asm/semaphore.h>
2120
#include <asm/hardware/icst307.h>
2221

2322
#include "clock.h"

0 commit comments

Comments
 (0)