]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Merge branch 'for-linus4' of master.kernel.org:/pub/scm/linux/kernel/git/viro/bird
authorLinus Torvalds <torvalds@woody.osdl.org>
Mon, 4 Dec 2006 18:37:06 +0000 (10:37 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Mon, 4 Dec 2006 18:37:06 +0000 (10:37 -0800)
* 'for-linus4' of master.kernel.org:/pub/scm/linux/kernel/git/viro/bird:
  [PATCH] severing poll.h -> mm.h
  [PATCH] severing skbuff.h -> mm.h
  [PATCH] severing skbuff.h -> poll.h
  [PATCH] severing skbuff.h -> highmem.h
  [PATCH] severing uaccess.h -> sched.h
  [PATCH] severing fs.h, radix-tree.h -> sched.h
  [PATCH] severing module.h->sched.h

92 files changed:
arch/i386/kernel/acpi/cstate.c
arch/i386/kernel/alternative.c
arch/i386/kernel/cpu/mcheck/therm_throt.c
drivers/acpi/dock.c
drivers/base/cpu.c
drivers/char/hpet.c
drivers/char/hw_random/core.c
drivers/char/tpm/tpm.h
drivers/hwmon/abituguru.c
drivers/hwmon/hdaps.c
drivers/infiniband/ulp/iser/iser_memory.c
drivers/isdn/divert/isdn_divert.c
drivers/leds/ledtrig-ide-disk.c
drivers/leds/ledtrig-timer.c
drivers/media/dvb/cinergyT2/cinergyT2.c
drivers/net/ehea/ehea_qmr.c
drivers/net/lance.c
drivers/net/ne3210.c
drivers/net/sk98lin/skge.c
drivers/net/starfire.c
drivers/net/sun3lance.c
drivers/net/sungem.c
drivers/net/sunhme.c
drivers/net/typhoon.c
drivers/pci/access.c
drivers/scsi/scsi_transport_sas.c
drivers/spi/spi_butterfly.c
drivers/w1/slaves/w1_therm.c
fs/9p/conv.c
fs/9p/fcall.c
fs/9p/fid.c
fs/9p/v9fs.c
fs/9p/vfs_dir.c
fs/9p/vfs_file.c
fs/compat.c
fs/gfs2/locking/dlm/plock.c
fs/inotify.c
fs/jffs2/acl.c
fs/jffs2/wbuf.c
fs/jfs/ioctl.c
fs/proc/root.c
fs/super.c
fs/sync.c
fs/utimes.c
include/asm-x86_64/elf.h
include/asm-x86_64/uaccess.h
include/linux/acct.h
include/linux/fs.h
include/linux/igmp.h
include/linux/kernelcapi.h
include/linux/module.h
include/linux/netdevice.h
include/linux/netfilter_ipv4/ip_conntrack.h
include/linux/poll.h
include/linux/radix-tree.h
include/linux/skbuff.h
include/net/inet_connection_sock.h
include/net/irda/timer.h
include/net/netfilter/nf_conntrack.h
include/net/netlink.h
include/net/sock.h
include/net/udp.h
include/scsi/libiscsi.h
include/sound/pcm.h
kernel/auditsc.c
kernel/latency.c
kernel/module.c
lib/random32.c
net/appletalk/ddp.c
net/core/kmap_skb.h [new file with mode: 0644]
net/core/skbuff.c
net/core/sock.c
net/ieee80211/ieee80211_crypt_tkip.c
net/ieee80211/ieee80211_crypt_wep.c
net/ipv4/ip_output.c
net/ipv4/ipvs/ip_vs_lblc.c
net/ipv4/ipvs/ip_vs_lblcr.c
net/irda/discovery.c
net/irda/iriap.c
net/irda/irttp.c
net/netfilter/nf_conntrack_core.c
net/netfilter/x_tables.c
net/netfilter/xt_hashlimit.c
net/packet/af_packet.c
sound/oss/cs46xx.c
sound/oss/dmabuf.c
sound/oss/emu10k1/audio.c
sound/oss/es1371.c
sound/oss/i810_audio.c
sound/oss/soundcard.c
sound/oss/sscape.c
sound/oss/trident.c

index 20563e52c62248853e9d4fbc9af48461c27696bd..4664b55f623ef2b349a510c0dcd487d8149063c3 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/init.h>
 #include <linux/acpi.h>
 #include <linux/cpu.h>
+#include <linux/sched.h>
 
 #include <acpi/processor.h>
 #include <asm/acpi.h>
index 583c238e17fb2e9550fbbcb490ba1a41288b97dc..535f9794fba1aa811cb7a1ea270fa3c285fc0f98 100644 (file)
@@ -1,4 +1,5 @@
 #include <linux/module.h>
+#include <linux/sched.h>
 #include <linux/spinlock.h>
 #include <linux/list.h>
 #include <asm/alternative.h>
index 2d8703b7ce65ead94dc3d6d26cf37421ad87d236..bad8b4420709c3ee984dc89476929ad953e5d7a9 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/cpu.h>
 #include <asm/cpu.h>
 #include <linux/notifier.h>
+#include <linux/jiffies.h>
 #include <asm/therm_throt.h>
 
 /* How long to wait between reporting thermal events */
index 578b99b71d9ce12556fe398bf5dfb196e8739f27..bf5b79ed36131111b59527223e71a5a930b55e07 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/init.h>
 #include <linux/types.h>
 #include <linux/notifier.h>
+#include <linux/jiffies.h>
 #include <acpi/acpi_bus.h>
 #include <acpi/acpi_drivers.h>
 
index 4bef76a2f3f2a7611ff0dcbca79c8d774d7a7255..1f745f12f94e5edb70f05d5ba6d8e0ac999ac549 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/sysdev.h>
 #include <linux/module.h>
 #include <linux/init.h>
+#include <linux/sched.h>
 #include <linux/cpu.h>
 #include <linux/topology.h>
 #include <linux/device.h>
index 091a11cd878c21731898313185e43058228d4dcd..20dc3be5ecfcf8fe987e41313902f41acdc4a2e0 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/fcntl.h>
 #include <linux/init.h>
 #include <linux/poll.h>
+#include <linux/mm.h>
 #include <linux/proc_fs.h>
 #include <linux/spinlock.h>
 #include <linux/sysctl.h>
index ebace201bec6406b122cc835eb19959ccce26c8c..26a860adcb3854817f079c526aacde2d2f917b02 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/fs.h>
+#include <linux/sched.h>
 #include <linux/init.h>
 #include <linux/miscdevice.h>
 #include <linux/delay.h>
index 050ced247f68018224addcc572e7faa7f6f47fec..bb9a43c6cf3db88e2a74f4892ea6f2d048f0450e 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/pci.h>
 #include <linux/delay.h>
 #include <linux/fs.h>
+#include <linux/sched.h>
 #include <linux/miscdevice.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
index e5cb0fdab9b15d8529274531a8879a31dd2cb0a0..b1dc63e4ac7b32342f19d75ead8a71c82d7d699b 100644 (file)
@@ -21,6 +21,7 @@
     etc voltage & frequency control is not supported!
 */
 #include <linux/module.h>
+#include <linux/sched.h>
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/jiffies.h>
index 26be4ea8a38ac7c2150d250fdabcc3395f5cbb71..e8ef62b83d6bf578dfb765cecf847c55cf38f6a4 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/module.h>
 #include <linux/timer.h>
 #include <linux/dmi.h>
+#include <linux/jiffies.h>
 #include <asm/io.h>
 
 #define HDAPS_LOW_PORT         0x1600  /* first port used by hdaps */
index 0606744c3f84407b63986f7e15c097cca77a992b..5e122501fd80bdf35c1ba6608c2fe15b74c1202e 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/mm.h>
+#include <linux/highmem.h>
 #include <asm/io.h>
 #include <asm/scatterlist.h>
 #include <linux/scatterlist.h>
index 1f5ebe9ee72cd38b0844966caf0be17c8fa18e3e..03319ea5aa0cdf8e6445f29909746bbfe7d53454 100644 (file)
@@ -10,6 +10,8 @@
  */
 
 #include <linux/proc_fs.h>
+#include <linux/timer.h>
+#include <linux/jiffies.h>
 
 #include "isdn_divert.h"
 
index fa651886ab4fc6f31f7e4f4cf49b4eaaed8118a6..54b155c7026f94c72ddc527a949474599d7a3c29 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/jiffies.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/timer.h>
index 29a8818a32ec23e71fda137f1e634e46de538559..d756bdb01c59ab33eeb261d251bddecd45367f89 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/jiffies.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/list.h>
index 55bc891768c29e0a8ba0a07d12b58ab91667f646..8a7dd507cf6e4a98274adb74c9b450f35a3ca422 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/input.h>
 #include <linux/dvb/frontend.h>
 #include <linux/mutex.h>
+#include <linux/mm.h>
 
 #include "dmxdev.h"
 #include "dvb_demux.h"
index 72ef7bde33463725e10759c960b8f15483a359a1..f143e13b229dda570b10f84142398aad43ee8699 100644 (file)
@@ -26,6 +26,7 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#include <linux/mm.h>
 #include "ehea.h"
 #include "ehea_phyp.h"
 #include "ehea_qmr.h"
index 6efbd499d7526ebdf5fb3fb8a401a07630f71337..4256c13c73c290d8a70e7e12114b2882a4ed467f 100644 (file)
@@ -57,6 +57,7 @@ static const char version[] = "lance.c:v1.16 2006/11/09 dplatt@3do.com, becker@c
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/skbuff.h>
+#include <linux/mm.h>
 #include <linux/bitops.h>
 
 #include <asm/io.h>
index d663289754255015d90fc7e4cd3b3342e31084bc..1a6fed76d4cc6f429d04570115f27360f5ffe234 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/interrupt.h>
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
+#include <linux/mm.h>
 
 #include <asm/io.h>
 #include <asm/system.h>
index 12cbfd190dd7893c1ade0a4b9feadd9a6bf76414..92d11b961db88bd81133ce89eb7fec03365f1f40 100644 (file)
 #include       <linux/dma-mapping.h>
 #include       <linux/ip.h>
 #include       <linux/mii.h>
+#include       <linux/mm.h>
 
 #include       "h/skdrv1st.h"
 #include       "h/skdrv2nd.h"
index 7a0aee6c869d2331162a3b4a17574199ef6f8bd4..bf873ea2579733f572f25886b9a0ab9d358cbf3d 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/ethtool.h>
 #include <linux/mii.h>
 #include <linux/if_vlan.h>
+#include <linux/mm.h>
 #include <asm/processor.h>             /* Processor type for cache alignment. */
 #include <asm/uaccess.h>
 #include <asm/io.h>
index b865db363ba0bf62fde272a2063fe7135dee788c..47a1c09d19acc98b43faba5d799170ef6d646a9a 100644 (file)
@@ -38,6 +38,7 @@ static char *version = "sun3lance.c: v1.2 1/12/2001  Sam Creasey (sammy@sammy.ne
 #include <linux/skbuff.h>
 #include <linux/bitops.h>
 
+#include <asm/cacheflush.h>
 #include <asm/setup.h>
 #include <asm/irq.h>
 #include <asm/io.h>
index 334c6cfd659573b627ac25e875cc5c12ed0d5538..cf44e72399b9cf858508b179237a0e903c3f996f 100644 (file)
@@ -56,6 +56,7 @@
 #include <linux/if_vlan.h>
 #include <linux/bitops.h>
 #include <linux/mutex.h>
+#include <linux/mm.h>
 
 #include <asm/system.h>
 #include <asm/io.h>
index df40e34c7766a3b0611325661917e6a8094f1593..ef671739cfeaaa0f611a6e24a77febf6048b0d5e 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/skbuff.h>
+#include <linux/mm.h>
 #include <linux/bitops.h>
 
 #include <asm/system.h>
index 8ddea1da7c051c8c158a328b2acf58586138aa61..9781b16bb8b66ffe727dee15537f7a855bb16d42 100644 (file)
@@ -117,6 +117,7 @@ static const int multicast_filter_limit = 32;
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/skbuff.h>
+#include <linux/mm.h>
 #include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/ethtool.h>
index 73a58c73d526855fc93bdb6e26e4f6790be2ad41..fc405f0165d92d57e7414f6415c2ccf557d014d3 100644 (file)
@@ -1,5 +1,6 @@
 #include <linux/pci.h>
 #include <linux/module.h>
+#include <linux/sched.h>
 #include <linux/ioport.h>
 #include <linux/wait.h>
 
index b5b0c2cba96b4757c05d5a6261069bb49f577202..5c0b75bbfa10c9a78e2a9536ce3d12b83f789441 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/jiffies.h>
 #include <linux/err.h>
 #include <linux/slab.h>
 #include <linux/string.h>
index 39d9b20f2038c436a85ba8a3543d6ec57db475c6..c2f601f8e4f21df7106952a147c83c2e13626fca 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/platform_device.h>
 #include <linux/parport.h>
 
+#include <linux/sched.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/spi_bitbang.h>
 #include <linux/spi/flash.h>
index 5372cfcbd0543aa1e8e5622f824682af9b87d530..b022fffd8c5181fe10a65f55438159df2ed61ea1 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
+#include <linux/sched.h>
 #include <linux/device.h>
 #include <linux/types.h>
 #include <linux/delay.h>
index 56d88c1a09c566baa5a0733f728cc7a8819b97b7..a3ed571eee31b3754224aad4118c517abfe1def1 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
+#include <linux/sched.h>
 #include <linux/idr.h>
 #include <asm/uaccess.h>
 #include "debug.h"
index 8556097fcda869bf8aea8197ad879c0cfbb6fa41..dc336a67592fb6330503c0a9e9fa7b70f7e805ee 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
+#include <linux/sched.h>
 #include <linux/idr.h>
 
 #include "debug.h"
index 70492ccb43850843dafe2ea0c35945e251a1bd75..27507201f9e7138de8b02543011569ada0ceba48 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
+#include <linux/sched.h>
 #include <linux/idr.h>
 
 #include "debug.h"
index 0f628041e3f7660c75fb846985b4124ba571cffe..0b96fae8b479d211e4afecba3256f544d0c00b80 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
+#include <linux/sched.h>
 #include <linux/parser.h>
 #include <linux/idr.h>
 
index e32d5971039b6712db19eb62fc19210be226656e..905c882f4e2f54f836f2c7436891e72e78d3f106 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/stat.h>
 #include <linux/string.h>
 #include <linux/smp_lock.h>
+#include <linux/sched.h>
 #include <linux/inet.h>
 #include <linux/idr.h>
 
index c3c47eda7574fc24a6cbb33e4730a16140c1c988..79e6f9cd7340fecdc7e3e5b94a8075f2c38d302b 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
+#include <linux/sched.h>
 #include <linux/file.h>
 #include <linux/stat.h>
 #include <linux/string.h>
index 8d0a0018a7d2cfc934934a992e98bcfabf45755c..06dad665b88fce8f412dc10303a527fefeb2278a 100644 (file)
@@ -45,6 +45,8 @@
 #include <linux/personality.h>
 #include <linux/rwsem.h>
 #include <linux/tsacct_kern.h>
+#include <linux/highmem.h>
+#include <linux/poll.h>
 #include <linux/mm.h>
 
 #include <net/sock.h>          /* siocdevprivate_ioctl */
index 7365aec9511b67a62f8f75c7e351bbcc0bbf61b7..3799f19b282f06b422ecff9cc9b02b37acdd00dc 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/miscdevice.h>
 #include <linux/lock_dlm_plock.h>
+#include <linux/poll.h>
 
 #include "lock_dlm.h"
 
index 723836a1f71896a5406b7ca6e066dc42ca5a6286..f5099d86fd91fba6d3574e804be85a26e2201d68 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/idr.h>
 #include <linux/slab.h>
 #include <linux/fs.h>
+#include <linux/sched.h>
 #include <linux/init.h>
 #include <linux/list.h>
 #include <linux/writeback.h>
index 0ae3cd10702c06be9b14203872ba6cfe110f0ecb..73f0d60f73a51ff1898d7740e7dd28c68ae856c2 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/fs.h>
+#include <linux/sched.h>
 #include <linux/time.h>
 #include <linux/crc32.h>
 #include <linux/jffs2.h>
index b9b700730dfeeac71b612f1e4365afec29a19e2c..70707309dfa1c983250f9eb2307159fa51dda20e 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/crc32.h>
 #include <linux/mtd/nand.h>
 #include <linux/jiffies.h>
+#include <linux/sched.h>
 
 #include "nodelist.h"
 
index 37db524882628dd3b4a4eed92b7a3243d6e61b60..ed814b1ff4d9b1908d4c7c0418f5c7a975392db1 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/ctype.h>
 #include <linux/capability.h>
 #include <linux/time.h>
+#include <linux/sched.h>
 #include <asm/current.h>
 #include <asm/uaccess.h>
 
index ffe66c38488b6d6925614e00147d213dfc271e0f..64d242b6dcfac60e2aa16b24f85f2d2dbb239836 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/proc_fs.h>
 #include <linux/stat.h>
 #include <linux/init.h>
+#include <linux/sched.h>
 #include <linux/module.h>
 #include <linux/bitops.h>
 #include <linux/smp_lock.h>
index 47e554c12e768bc0c5b0ad10b10d3a3a92a90e46..84c320f6ad7e39471277c581476860caded889e9 100644 (file)
@@ -220,6 +220,24 @@ static int grab_super(struct super_block *s) __releases(sb_lock)
        return 0;
 }
 
+/*
+ * Superblock locking.  We really ought to get rid of these two.
+ */
+void lock_super(struct super_block * sb)
+{
+       get_fs_excl();
+       mutex_lock(&sb->s_lock);
+}
+
+void unlock_super(struct super_block * sb)
+{
+       put_fs_excl();
+       mutex_unlock(&sb->s_lock);
+}
+
+EXPORT_SYMBOL(lock_super);
+EXPORT_SYMBOL(unlock_super);
+
 /*
  * Write out and wait upon all dirty data associated with this
  * superblock.  Filesystem data as well as the underlying block
index 1de747b5ddb9dcaf12ac0dc164f9a614db7b6d13..865f32be386eadfb4348bb5c048663b2488acd05 100644 (file)
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -6,6 +6,7 @@
 #include <linux/file.h>
 #include <linux/fs.h>
 #include <linux/module.h>
+#include <linux/sched.h>
 #include <linux/writeback.h>
 #include <linux/syscalls.h>
 #include <linux/linkage.h>
index 1bcd852fc4a9509199bd334c510a788ca387c153..99cf2cb11fec4ad0090c9d2f12d966a7dadb1ef1 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/fs.h>
 #include <linux/linkage.h>
 #include <linux/namei.h>
+#include <linux/sched.h>
 #include <linux/utime.h>
 #include <asm/uaccess.h>
 #include <asm/unistd.h>
index a406fcb1e924bbccb68aa69253292b5117a33f32..6d24ea7c4d9d2ef90747d0f48405fec4b68f29b0 100644 (file)
@@ -45,7 +45,6 @@ typedef struct user_i387_struct elf_fpregset_t;
 
 #ifdef __KERNEL__
 #include <asm/processor.h>
-#include <asm/compat.h>
 
 /*
  * This is used to ensure we don't load something for the wrong architecture.
index 19f99178fe83735cc17bff14516f529c17e479c3..d5dbc87274f8f3e787aae826f0ae96deb508a8c2 100644 (file)
@@ -6,7 +6,6 @@
  */
 #include <linux/compiler.h>
 #include <linux/errno.h>
-#include <linux/sched.h>
 #include <linux/prefetch.h>
 #include <asm/page.h>
 
index 0496d1f0995212b4c8ae873ac5e7159fcab318cb..302eb727ecb85dc7dec0db126c9a5d5240d8194b 100644 (file)
@@ -119,6 +119,7 @@ struct acct_v3
 #ifdef CONFIG_BSD_PROCESS_ACCT
 struct vfsmount;
 struct super_block;
+struct pacct_struct;
 extern void acct_auto_close_mnt(struct vfsmount *m);
 extern void acct_auto_close(struct super_block *sb);
 extern void acct_init_pacct(struct pacct_struct *pacct);
index 2fe6e3f900ba5fd06a64754c809f9e724382f39e..cac7b1ef95435d5d1d2f67ae1bb0e1c8d2c51a7c 100644 (file)
@@ -276,7 +276,7 @@ extern int dir_notify_enable;
 #include <linux/radix-tree.h>
 #include <linux/prio_tree.h>
 #include <linux/init.h>
-#include <linux/sched.h>
+#include <linux/pid.h>
 #include <linux/mutex.h>
 
 #include <asm/atomic.h>
@@ -977,36 +977,13 @@ enum {
 #define vfs_check_frozen(sb, level) \
        wait_event((sb)->s_wait_unfrozen, ((sb)->s_frozen < (level)))
 
-static inline void get_fs_excl(void)
-{
-       atomic_inc(&current->fs_excl);
-}
-
-static inline void put_fs_excl(void)
-{
-       atomic_dec(&current->fs_excl);
-}
-
-static inline int has_fs_excl(void)
-{
-       return atomic_read(&current->fs_excl);
-}
+#define get_fs_excl() atomic_inc(&current->fs_excl)
+#define put_fs_excl() atomic_dec(&current->fs_excl)
+#define has_fs_excl() atomic_read(&current->fs_excl)
 
-
-/*
- * Superblock locking.
- */
-static inline void lock_super(struct super_block * sb)
-{
-       get_fs_excl();
-       mutex_lock(&sb->s_lock);
-}
-
-static inline void unlock_super(struct super_block * sb)
-{
-       put_fs_excl();
-       mutex_unlock(&sb->s_lock);
-}
+/* not quite ready to be deprecated, but... */
+extern void lock_super(struct super_block *);
+extern void unlock_super(struct super_block *);
 
 /*
  * VFS helper functions..
index 6e7ea2f0a57c557b80c7b77de0f8bad13dafba36..9dbb525c5178d59bef3725ddba461b77342a2c9e 100644 (file)
@@ -127,6 +127,7 @@ struct igmpv3_query {
 
 #ifdef __KERNEL__
 #include <linux/skbuff.h>
+#include <linux/timer.h>
 #include <linux/in.h>
 
 extern int sysctl_igmp_max_memberships;
index 891bb2cf0aa8202993d0e4c7bf54bb394d35d812..f8a0ff86dacc448881525fa38dcadfb3783e5cfc 100644 (file)
@@ -47,6 +47,7 @@ typedef struct kcapi_carddef {
 
 #include <linux/list.h>
 #include <linux/skbuff.h>
+#include <linux/workqueue.h>
 
 #define        KCI_CONTRUP     0       /* arg: struct capi_profile */
 #define        KCI_CONTRDOWN   1       /* arg: NULL */
index 9258ffd8a7f065fdba672284297d2934fba86a7e..d33df2408e0518033ecd846637bfa77309296872 100644 (file)
@@ -6,7 +6,6 @@
  * Rewritten by Richard Henderson <rth@tamu.edu> Dec 1996
  * Rewritten again by Rusty Russell, 2002
  */
-#include <linux/sched.h>
 #include <linux/spinlock.h>
 #include <linux/list.h>
 #include <linux/stat.h>
@@ -411,17 +410,7 @@ static inline int try_module_get(struct module *module)
        return ret;
 }
 
-static inline void module_put(struct module *module)
-{
-       if (module) {
-               unsigned int cpu = get_cpu();
-               local_dec(&module->ref[cpu].count);
-               /* Maybe they're waiting for us to drop reference? */
-               if (unlikely(!module_is_live(module)))
-                       wake_up_process(module->waiter);
-               put_cpu();
-       }
-}
+extern void module_put(struct module *module);
 
 #else /*!CONFIG_MODULE_UNLOAD*/
 static inline int try_module_get(struct module *module)
index 949eada46ce17d1d41f5845dc4e63be90c804ab2..c57088f575a37d9961bab86e25bcbcc8658f424f 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/if_packet.h>
 
 #ifdef __KERNEL__
+#include <linux/timer.h>
 #include <asm/atomic.h>
 #include <asm/cache.h>
 #include <asm/byteorder.h>
index 61da56941dce9572bc26677ceccf1a03fb49ad65..33581c13d9474a6d33dfc080b4a75df990ab9ee0 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/compiler.h>
 #include <asm/atomic.h>
 
+#include <linux/timer.h>
 #include <linux/netfilter_ipv4/ip_conntrack_tcp.h>
 #include <linux/netfilter_ipv4/ip_conntrack_icmp.h>
 #include <linux/netfilter_ipv4/ip_conntrack_proto_gre.h>
index 51e1b56741fb153013e50f6b1167b9a36345232f..27690798623fabc8b598509bb9b8ffdd2512bfb3 100644 (file)
@@ -8,7 +8,8 @@
 #include <linux/compiler.h>
 #include <linux/wait.h>
 #include <linux/string.h>
-#include <linux/mm.h>
+#include <linux/fs.h>
+#include <linux/sched.h>
 #include <asm/uaccess.h>
 
 /* ~832 bytes of stack space used max in sys_select/sys_poll before allocating
index 9158a68140c9e0e96dd3cbf98acb13a3a0babd92..cbfa1153742120d4a01798e181a06815555281e6 100644 (file)
@@ -19,7 +19,6 @@
 #ifndef _LINUX_RADIX_TREE_H
 #define _LINUX_RADIX_TREE_H
 
-#include <linux/sched.h>
 #include <linux/preempt.h>
 #include <linux/types.h>
 
index 14ec16d2d9ba7bd6254093df7db05a242bb4f7a0..6bdff9b148d0e3a33cde2a912f52ccb67e3f1bad 100644 (file)
@@ -22,9 +22,6 @@
 #include <asm/atomic.h>
 #include <asm/types.h>
 #include <linux/spinlock.h>
-#include <linux/mm.h>
-#include <linux/highmem.h>
-#include <linux/poll.h>
 #include <linux/net.h>
 #include <linux/textsearch.h>
 #include <net/checksum.h>
@@ -1295,24 +1292,6 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len)
        return __pskb_trim(skb, len);
 }
 
-static inline void *kmap_skb_frag(const skb_frag_t *frag)
-{
-#ifdef CONFIG_HIGHMEM
-       BUG_ON(in_irq());
-
-       local_bh_disable();
-#endif
-       return kmap_atomic(frag->page, KM_SKB_DATA_SOFTIRQ);
-}
-
-static inline void kunmap_skb_frag(void *vaddr)
-{
-       kunmap_atomic(vaddr, KM_SKB_DATA_SOFTIRQ);
-#ifdef CONFIG_HIGHMEM
-       local_bh_enable();
-#endif
-}
-
 #define skb_queue_walk(queue, skb) \
                for (skb = (queue)->next;                                       \
                     prefetch(skb->next), (skb != (struct sk_buff *)(queue));   \
index cccea051e922d32fde064630f29ffefae658dad8..bf16d98d372c512a41ef3b139e2fc65b7516d389 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/compiler.h>
 #include <linux/string.h>
 #include <linux/timer.h>
+#include <linux/poll.h>
 
 #include <net/inet_sock.h>
 #include <net/request_sock.h>
index 2c5d8864ab775871f5520c94d9277572118ef007..cb61568547d1328e8d59daf26920bea600a20013 100644 (file)
@@ -28,6 +28,7 @@
 #define TIMER_H
 
 #include <linux/timer.h>
+#include <linux/jiffies.h>
 
 #include <asm/param.h>  /* for HZ */
 
index 032b36a0e3781de36d3f9f8d2ca958b4d23b189d..bd01b4633ee20138dc6681b2e15dd2e7cabc471c 100644 (file)
@@ -56,6 +56,7 @@ union nf_conntrack_help {
 
 #include <linux/types.h>
 #include <linux/skbuff.h>
+#include <linux/timer.h>
 
 #ifdef CONFIG_NETFILTER_DEBUG
 #define NF_CT_ASSERT(x)                                                        \
index fd75fd65d59ed09b9a148dd018da7aba6b3bfb59..bcaf67b7a19d131022d0f41f61d5c2e838a8a56b 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <linux/types.h>
 #include <linux/netlink.h>
+#include <linux/jiffies.h>
 
 /* ========================================================================
  *         Netlink Messages and Attributes Interface (As Seen On TV)
index 26fc0b16bc0cf5ab394d17ba1bc059407f6150e4..fe3a33fad03fcd1a553babe753a427e057269123 100644 (file)
@@ -47,6 +47,7 @@
 #include <linux/lockdep.h>
 #include <linux/netdevice.h>
 #include <linux/skbuff.h>      /* struct sk_buff */
+#include <linux/mm.h>
 #include <linux/security.h>
 
 #include <linux/filter.h>
index 1548d68d45da2345b1a51c305caa95a1e6136990..1b921fa814742a6ed499e2ae11d9f3a14bfe6ed1 100644 (file)
@@ -29,6 +29,7 @@
 #include <net/ip.h>
 #include <linux/ipv6.h>
 #include <linux/seq_file.h>
+#include <linux/poll.h>
 
 /**
  *     struct udp_skb_cb  -  UDP(-Lite) private variables
index 61eebec00a7b8fd40d5803a640f0999a8902c683..ea0816d4904d4d00a0b9af8be6e68f09f484be79 100644 (file)
@@ -25,6 +25,8 @@
 
 #include <linux/types.h>
 #include <linux/mutex.h>
+#include <linux/timer.h>
+#include <linux/workqueue.h>
 #include <scsi/iscsi_proto.h>
 #include <scsi/iscsi_if.h>
 
index afaf3e88e086c8712c7cdf8b4d743e1e3674bd97..2f645dfd7f70c59e64f64ab2ad8ff5a2e8588358 100644 (file)
@@ -26,6 +26,7 @@
 #include <sound/asound.h>
 #include <sound/memalloc.h>
 #include <linux/poll.h>
+#include <linux/mm.h>
 #include <linux/bitops.h>
 
 #define snd_pcm_substream_chip(substream) ((substream)->private_data)
index 42f2f11797111de0af926f82fead3a5e86ce2ee5..ab97e51012325b24191ec5a6f2c1e2514968dd02 100644 (file)
@@ -64,6 +64,7 @@
 #include <linux/tty.h>
 #include <linux/selinux.h>
 #include <linux/binfmts.h>
+#include <linux/highmem.h>
 #include <linux/syscalls.h>
 
 #include "audit.h"
index 258f2555abbc4055083d5984abad6c3bbca312e6..e63fcacb61a7f0d60ec3fe940a84c0c193898c8a 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/notifier.h>
+#include <linux/jiffies.h>
 #include <asm/atomic.h>
 
 struct latency_info {
index 45e01cb60101128c26737907c6c23d2a8acb58ab..e2d09d604ca08a7f7e73cd20eb972dcb02525115 100644 (file)
 #include <linux/err.h>
 #include <linux/vermagic.h>
 #include <linux/notifier.h>
+#include <linux/sched.h>
 #include <linux/stop_machine.h>
 #include <linux/device.h>
 #include <linux/string.h>
-#include <linux/sched.h>
 #include <linux/mutex.h>
 #include <linux/unwind.h>
 #include <asm/uaccess.h>
@@ -790,6 +790,19 @@ static struct module_attribute refcnt = {
        .show = show_refcnt,
 };
 
+void module_put(struct module *module)
+{
+       if (module) {
+               unsigned int cpu = get_cpu();
+               local_dec(&module->ref[cpu].count);
+               /* Maybe they're waiting for us to drop reference? */
+               if (unlikely(!module_is_live(module)))
+                       wake_up_process(module->waiter);
+               put_cpu();
+       }
+}
+EXPORT_SYMBOL(module_put);
+
 #else /* !CONFIG_MODULE_UNLOAD */
 static void print_unload_info(struct seq_file *m, struct module *mod)
 {
index 4a15ce51cea78f4843106221f3db13745b1eb4d7..ec7f81d3fb188bc7923837d6d622734be5f54e11 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/types.h>
 #include <linux/percpu.h>
 #include <linux/module.h>
+#include <linux/jiffies.h>
 #include <linux/random.h>
 
 struct rnd_state {
index 485e35c3b28bac873b468eda0239b03958df71e3..3a7052207708eb8f834480f7f3d56a5684cf5e28 100644 (file)
@@ -61,6 +61,7 @@
 #include <net/tcp_states.h>
 #include <net/route.h>
 #include <linux/atalk.h>
+#include "../core/kmap_skb.h"
 
 struct datalink_proto *ddp_dl, *aarp_dl;
 static const struct proto_ops atalk_dgram_ops;
diff --git a/net/core/kmap_skb.h b/net/core/kmap_skb.h
new file mode 100644 (file)
index 0000000..283c2b9
--- /dev/null
@@ -0,0 +1,19 @@
+#include <linux/highmem.h>
+
+static inline void *kmap_skb_frag(const skb_frag_t *frag)
+{
+#ifdef CONFIG_HIGHMEM
+       BUG_ON(in_irq());
+
+       local_bh_disable();
+#endif
+       return kmap_atomic(frag->page, KM_SKB_DATA_SOFTIRQ);
+}
+
+static inline void kunmap_skb_frag(void *vaddr)
+{
+       kunmap_atomic(vaddr, KM_SKB_DATA_SOFTIRQ);
+#ifdef CONFIG_HIGHMEM
+       local_bh_enable();
+#endif
+}
index a90bc439488e1f0ec07e81d4953f409a9a09d064..8e1c385e5ba914e2f50bee987ed0c96ff516ba9c 100644 (file)
@@ -56,7 +56,6 @@
 #include <linux/cache.h>
 #include <linux/rtnetlink.h>
 #include <linux/init.h>
-#include <linux/highmem.h>
 
 #include <net/protocol.h>
 #include <net/dst.h>
@@ -67,6 +66,8 @@
 #include <asm/uaccess.h>
 #include <asm/system.h>
 
+#include "kmap_skb.h"
+
 static kmem_cache_t *skbuff_head_cache __read_mostly;
 static kmem_cache_t *skbuff_fclone_cache __read_mostly;
 
index ab8fafadb4ba1f9afe8a1b8a96741e27fc74472c..419c7d3289c7a9689bca3e0164ed7ac01098c2d8 100644 (file)
 #include <linux/poll.h>
 #include <linux/tcp.h>
 #include <linux/init.h>
+#include <linux/highmem.h>
 
 #include <asm/uaccess.h>
 #include <asm/system.h>
index 4200ec509866581c60c6faeb07fa973f97528048..fc1f99a597327b7f80acd98d90e9650d78dc129c 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/random.h>
 #include <linux/skbuff.h>
 #include <linux/netdevice.h>
+#include <linux/mm.h>
 #include <linux/if_ether.h>
 #include <linux/if_arp.h>
 #include <asm/string.h>
index 1b2efff11d39ff63fab9935e070b62d01897c193..7a95c3d8131425bb8c42bbabcb629747f06672f0 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/slab.h>
 #include <linux/random.h>
 #include <linux/skbuff.h>
+#include <linux/mm.h>
 #include <asm/string.h>
 
 #include <net/ieee80211.h>
index 1da3d32f8289452fd22ee2e4586e8002068ab497..a35209d517ad6d01186805dea7964113312c0666 100644 (file)
@@ -53,6 +53,7 @@
 #include <linux/mm.h>
 #include <linux/string.h>
 #include <linux/errno.h>
+#include <linux/highmem.h>
 
 #include <linux/socket.h>
 #include <linux/sockios.h>
index 524751e031de5203c12735d0aaa3c588dce675cd..a4385a2180ee6d3f890411927d3056fafbc48c34 100644 (file)
@@ -45,6 +45,7 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/skbuff.h>
+#include <linux/jiffies.h>
 
 /* for sysctl */
 #include <linux/fs.h>
index 08990192b6eccbd5ec9e0abc06ac161b1491432c..fe1af5d079afdee89edb20a6cfe78847acfa17cd 100644 (file)
@@ -43,6 +43,7 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/skbuff.h>
+#include <linux/jiffies.h>
 
 /* for sysctl */
 #include <linux/fs.h>
index 3fefc822c1c087c2cebd4baadb646ef771442784..89fd2a2cbca66a170c471672cfcbcd8c56745fd6 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <linux/string.h>
 #include <linux/socket.h>
+#include <linux/fs.h>
 #include <linux/seq_file.h>
 
 #include <net/irda/irda.h>
index 8cfd076c4c12ae3db3947d201a514e9b1cee2179..8f1c6d65b24786f174bf1dbde831c97a7e7a2e99 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/skbuff.h>
+#include <linux/fs.h>
 #include <linux/string.h>
 #include <linux/init.h>
 #include <linux/seq_file.h>
index 9c446a72ff1faa8125f7429501f484d284338445..252f11012566ca1758851ef9489785ca8fe95ce7 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <linux/skbuff.h>
 #include <linux/init.h>
+#include <linux/fs.h>
 #include <linux/seq_file.h>
 
 #include <asm/byteorder.h>
index 93d97d9f9da8a9132e35e504b964cabffb83cec5..eaa0f8a1adb61422629284ea0d156fe32597b364 100644 (file)
@@ -46,6 +46,7 @@
 #include <linux/kernel.h>
 #include <linux/netdevice.h>
 #include <linux/socket.h>
+#include <linux/mm.h>
 
 #include <net/netfilter/nf_conntrack.h>
 #include <net/netfilter/nf_conntrack_l3proto.h>
index 58522fc65d333ca163fe25e4925cfe4496ecdbc6..8996584b84998708ccc0eabf94b4faa19b96ad11 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/string.h>
 #include <linux/vmalloc.h>
 #include <linux/mutex.h>
+#include <linux/mm.h>
 
 #include <linux/netfilter/x_tables.h>
 #include <linux/netfilter_arp.h>
index 501c564e247ff301aa4b1e15b8a2851ce9203d78..a98de0b54d6514accd49dd7b23c13a027fb17aa4 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/seq_file.h>
 #include <linux/list.h>
 #include <linux/skbuff.h>
+#include <linux/mm.h>
 #include <linux/in.h>
 #include <linux/ip.h>
 #include <linux/ipv6.h>
index 271d2eed0699b93c01440d7d193725c5d8b010ca..08e68b67bbf642cedac2b537b79028c7f157bfaa 100644 (file)
@@ -71,6 +71,7 @@
 #include <asm/uaccess.h>
 #include <asm/ioctls.h>
 #include <asm/page.h>
+#include <asm/cacheflush.h>
 #include <asm/io.h>
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
index b1c5d8286e403c595f81b9f4b529797c4fd05da6..147c8a951137a4452fb059a66dab5cbfbc381c7d 100644 (file)
@@ -91,6 +91,7 @@
 #include <linux/poll.h>
 #include <linux/ac97_codec.h>
 #include <linux/mutex.h>
+#include <linux/mm.h>
 
 #include <asm/io.h>
 #include <asm/dma.h>
index b256c0401161a8ad97c1c5dd680291b907fe284f..eaf69971bf92d5d5b54306dd2109d37ee5bffd07 100644 (file)
@@ -25,6 +25,7 @@
 #define BE_CONSERVATIVE
 #define SAMPLE_ROUNDUP 0
 
+#include <linux/mm.h>
 #include "sound_config.h"
 
 #define DMAP_FREE_ON_CLOSE      0
index cde4d59d5430664e9d48a85ffa9961f744a9c6e8..86dd23974e055110817c5d6a3f8e03664d487f2a 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/bitops.h>
 #include <asm/io.h>
 #include <linux/sched.h>
+#include <linux/mm.h>
 #include <linux/smp_lock.h>
 
 #include "hwaccess.h"
index ddf6b0a0bca5a1c363bf9c58378e51aa5e73cf6c..cc282a0cd539847d8b10be91d3a7551e5194d06b 100644 (file)
 #include <linux/wait.h>
 #include <linux/dma-mapping.h>
 #include <linux/mutex.h>
+#include <linux/mm.h>
 
 #include <asm/io.h>
 #include <asm/page.h>
index 240cc7939b69e6137ca8adfd33f4d6c44b8d172f..c3c8a720d555a73749c1b9f62587f16097f7fae2 100644 (file)
 #include <linux/ac97_codec.h>
 #include <linux/bitops.h>
 #include <linux/mutex.h>
+#include <linux/mm.h>
 
 #include <asm/uaccess.h>
 
index 75c5e745705feab67239e94ef02e5afad25761a8..8fb8e7f995563993660243d2befd3502ca407b94 100644 (file)
@@ -42,6 +42,7 @@
 #include <linux/proc_fs.h>
 #include <linux/smp_lock.h>
 #include <linux/module.h>
+#include <linux/mm.h>
 
 /*
  * This ought to be moved into include/asm/dma.h
index 51f2fa615413af605e314edf071263f534585473..30c36d1f35d7a9641428ebb8b91bc5d02586cf28 100644 (file)
@@ -39,6 +39,7 @@
 #include <linux/ioport.h>
 #include <linux/delay.h>
 #include <linux/proc_fs.h>
+#include <linux/mm.h>
 #include <linux/spinlock.h>
 
 #include "coproc.h"
index 7a363a178afd4cb9400ada31d58034e233653331..6b1f8c9cdcf870419924dad10156dcf395df4e9f 100644 (file)
 #include <linux/gameport.h>
 #include <linux/kernel.h>
 #include <linux/mutex.h>
+#include <linux/mm.h>
 
 #include <asm/uaccess.h>
 #include <asm/io.h>