aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/agpgart.h1
-rw-r--r--include/linux/atm_idt77105.h2
-rw-r--r--include/linux/capi.h2
-rw-r--r--include/linux/compat.h13
-rw-r--r--include/linux/connector.h2
-rw-r--r--include/linux/cyclades.h2
-rw-r--r--include/linux/fb.h2
-rw-r--r--include/linux/ide.h2
-rw-r--r--include/linux/if_pppol2tp.h2
-rw-r--r--include/linux/if_pppox.h2
-rw-r--r--include/linux/input.h2
-rw-r--r--include/linux/ioport.h3
-rw-r--r--include/linux/jbd.h2
-rw-r--r--include/linux/joystick.h2
-rw-r--r--include/linux/kvm.h2
-rw-r--r--include/linux/libata.h11
-rw-r--r--include/linux/loop.h2
-rw-r--r--include/linux/magic.h2
-rw-r--r--include/linux/matroxfb.h2
-rw-r--r--include/linux/mm.h1
-rw-r--r--include/linux/netdevice.h5
-rw-r--r--include/linux/netfilter/x_tables.h2
-rw-r--r--include/linux/of_i2c.h3
-rw-r--r--include/linux/pci_ids.h1
-rw-r--r--include/linux/phantom.h2
-rw-r--r--include/linux/radeonfb.h2
-rw-r--r--include/linux/res_counter.h2
-rw-r--r--include/linux/swab.h2
-rw-r--r--include/linux/syscalls.h169
29 files changed, 169 insertions, 78 deletions
diff --git a/include/linux/agpgart.h b/include/linux/agpgart.h
index c8fdb6e658e1..110c600c885f 100644
--- a/include/linux/agpgart.h
+++ b/include/linux/agpgart.h
@@ -52,7 +52,6 @@
52 52
53#ifndef __KERNEL__ 53#ifndef __KERNEL__
54#include <linux/types.h> 54#include <linux/types.h>
55#include <asm/types.h>
56 55
57struct agp_version { 56struct agp_version {
58 __u16 major; 57 __u16 major;
diff --git a/include/linux/atm_idt77105.h b/include/linux/atm_idt77105.h
index 05621cf20709..8b724000aa50 100644
--- a/include/linux/atm_idt77105.h
+++ b/include/linux/atm_idt77105.h
@@ -7,7 +7,7 @@
7#ifndef LINUX_ATM_IDT77105_H 7#ifndef LINUX_ATM_IDT77105_H
8#define LINUX_ATM_IDT77105_H 8#define LINUX_ATM_IDT77105_H
9 9
10#include <asm/types.h> 10#include <linux/types.h>
11#include <linux/atmioc.h> 11#include <linux/atmioc.h>
12#include <linux/atmdev.h> 12#include <linux/atmdev.h>
13 13
diff --git a/include/linux/capi.h b/include/linux/capi.h
index fdebaaa9f66e..65100d6cb89b 100644
--- a/include/linux/capi.h
+++ b/include/linux/capi.h
@@ -12,7 +12,7 @@
12#ifndef __LINUX_CAPI_H__ 12#ifndef __LINUX_CAPI_H__
13#define __LINUX_CAPI_H__ 13#define __LINUX_CAPI_H__
14 14
15#include <asm/types.h> 15#include <linux/types.h>
16#include <linux/ioctl.h> 16#include <linux/ioctl.h>
17#ifndef __KERNEL__ 17#ifndef __KERNEL__
18#include <linux/kernelcapi.h> 18#include <linux/kernelcapi.h>
diff --git a/include/linux/compat.h b/include/linux/compat.h
index e88f3ecf38b4..3fd2194ff573 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -280,5 +280,18 @@ asmlinkage long compat_sys_timerfd_settime(int ufd, int flags,
280asmlinkage long compat_sys_timerfd_gettime(int ufd, 280asmlinkage long compat_sys_timerfd_gettime(int ufd,
281 struct compat_itimerspec __user *otmr); 281 struct compat_itimerspec __user *otmr);
282 282
283asmlinkage long compat_sys_move_pages(pid_t pid, unsigned long nr_page,
284 __u32 __user *pages,
285 const int __user *nodes,
286 int __user *status,
287 int flags);
288asmlinkage long compat_sys_futimesat(unsigned int dfd, char __user *filename,
289 struct compat_timeval __user *t);
290asmlinkage long compat_sys_newfstatat(unsigned int dfd, char __user * filename,
291 struct compat_stat __user *statbuf,
292 int flag);
293asmlinkage long compat_sys_openat(unsigned int dfd, const char __user *filename,
294 int flags, int mode);
295
283#endif /* CONFIG_COMPAT */ 296#endif /* CONFIG_COMPAT */
284#endif /* _LINUX_COMPAT_H */ 297#endif /* _LINUX_COMPAT_H */
diff --git a/include/linux/connector.h b/include/linux/connector.h
index 5c7f9468f753..34f2789d9b9b 100644
--- a/include/linux/connector.h
+++ b/include/linux/connector.h
@@ -22,7 +22,7 @@
22#ifndef __CONNECTOR_H 22#ifndef __CONNECTOR_H
23#define __CONNECTOR_H 23#define __CONNECTOR_H
24 24
25#include <asm/types.h> 25#include <linux/types.h>
26 26
27#define CN_IDX_CONNECTOR 0xffffffff 27#define CN_IDX_CONNECTOR 0xffffffff
28#define CN_VAL_CONNECTOR 0xffffffff 28#define CN_VAL_CONNECTOR 0xffffffff
diff --git a/include/linux/cyclades.h b/include/linux/cyclades.h
index 2d3d1e04ba92..d06fbf286346 100644
--- a/include/linux/cyclades.h
+++ b/include/linux/cyclades.h
@@ -150,8 +150,6 @@ struct CYZ_BOOT_CTRL {
150 * architectures and compilers. 150 * architectures and compilers.
151 */ 151 */
152 152
153#include <asm/types.h>
154
155typedef __u64 ucdouble; /* 64 bits, unsigned */ 153typedef __u64 ucdouble; /* 64 bits, unsigned */
156typedef __u32 uclong; /* 32 bits, unsigned */ 154typedef __u32 uclong; /* 32 bits, unsigned */
157typedef __u16 ucshort; /* 16 bits, unsigned */ 155typedef __u16 ucshort; /* 16 bits, unsigned */
diff --git a/include/linux/fb.h b/include/linux/fb.h
index 1ee63df5be92..818fe21257e8 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -1,7 +1,7 @@
1#ifndef _LINUX_FB_H 1#ifndef _LINUX_FB_H
2#define _LINUX_FB_H 2#define _LINUX_FB_H
3 3
4#include <asm/types.h> 4#include <linux/types.h>
5#include <linux/i2c.h> 5#include <linux/i2c.h>
6 6
7struct dentry; 7struct dentry;
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 3644f6323384..194da5a4b0d6 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -871,7 +871,7 @@ struct ide_host {
871 ide_hwif_t *cur_port; /* for hosts requiring serialization */ 871 ide_hwif_t *cur_port; /* for hosts requiring serialization */
872 872
873 /* used for hosts requiring serialization */ 873 /* used for hosts requiring serialization */
874 volatile long host_busy; 874 volatile unsigned long host_busy;
875}; 875};
876 876
877#define IDE_HOST_BUSY 0 877#define IDE_HOST_BUSY 0
diff --git a/include/linux/if_pppol2tp.h b/include/linux/if_pppol2tp.h
index a7d6a2234b31..c7a66882b6d0 100644
--- a/include/linux/if_pppol2tp.h
+++ b/include/linux/if_pppol2tp.h
@@ -15,7 +15,7 @@
15#ifndef __LINUX_IF_PPPOL2TP_H 15#ifndef __LINUX_IF_PPPOL2TP_H
16#define __LINUX_IF_PPPOL2TP_H 16#define __LINUX_IF_PPPOL2TP_H
17 17
18#include <asm/types.h> 18#include <linux/types.h>
19 19
20#ifdef __KERNEL__ 20#ifdef __KERNEL__
21#include <linux/in.h> 21#include <linux/in.h>
diff --git a/include/linux/if_pppox.h b/include/linux/if_pppox.h
index 6fb7f1788570..30c88b2245ff 100644
--- a/include/linux/if_pppox.h
+++ b/include/linux/if_pppox.h
@@ -17,7 +17,7 @@
17#define __LINUX_IF_PPPOX_H 17#define __LINUX_IF_PPPOX_H
18 18
19 19
20#include <asm/types.h> 20#include <linux/types.h>
21#include <asm/byteorder.h> 21#include <asm/byteorder.h>
22 22
23#ifdef __KERNEL__ 23#ifdef __KERNEL__
diff --git a/include/linux/input.h b/include/linux/input.h
index 9a6355f74db2..1249a0c20a38 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -16,7 +16,7 @@
16#include <sys/time.h> 16#include <sys/time.h>
17#include <sys/ioctl.h> 17#include <sys/ioctl.h>
18#include <sys/types.h> 18#include <sys/types.h>
19#include <asm/types.h> 19#include <linux/types.h>
20#endif 20#endif
21 21
22/* 22/*
diff --git a/include/linux/ioport.h b/include/linux/ioport.h
index f6bb2ca8e3ba..32e4b2f72294 100644
--- a/include/linux/ioport.h
+++ b/include/linux/ioport.h
@@ -143,7 +143,8 @@ static inline unsigned long resource_type(struct resource *res)
143 143
144extern struct resource * __request_region(struct resource *, 144extern struct resource * __request_region(struct resource *,
145 resource_size_t start, 145 resource_size_t start,
146 resource_size_t n, const char *name, int relaxed); 146 resource_size_t n,
147 const char *name, int flags);
147 148
148/* Compatibility cruft */ 149/* Compatibility cruft */
149#define release_region(start,n) __release_region(&ioport_resource, (start), (n)) 150#define release_region(start,n) __release_region(&ioport_resource, (start), (n))
diff --git a/include/linux/jbd.h b/include/linux/jbd.h
index 6384b19efe64..64246dce5663 100644
--- a/include/linux/jbd.h
+++ b/include/linux/jbd.h
@@ -614,6 +614,8 @@ struct transaction_s
614 * @j_wbufsize: maximum number of buffer_heads allowed in j_wbuf, the 614 * @j_wbufsize: maximum number of buffer_heads allowed in j_wbuf, the
615 * number that will fit in j_blocksize 615 * number that will fit in j_blocksize
616 * @j_last_sync_writer: most recent pid which did a synchronous write 616 * @j_last_sync_writer: most recent pid which did a synchronous write
617 * @j_average_commit_time: the average amount of time in nanoseconds it
618 * takes to commit a transaction to the disk.
617 * @j_private: An opaque pointer to fs-private information. 619 * @j_private: An opaque pointer to fs-private information.
618 */ 620 */
619 621
diff --git a/include/linux/joystick.h b/include/linux/joystick.h
index b5e051295a67..9e20c29c1e14 100644
--- a/include/linux/joystick.h
+++ b/include/linux/joystick.h
@@ -27,7 +27,7 @@
27 * Vojtech Pavlik, Ucitelska 1576, Prague 8, 182 00 Czech Republic 27 * Vojtech Pavlik, Ucitelska 1576, Prague 8, 182 00 Czech Republic
28 */ 28 */
29 29
30#include <asm/types.h> 30#include <linux/types.h>
31#include <linux/input.h> 31#include <linux/input.h>
32 32
33/* 33/*
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 35525ac63337..5715f1907601 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -7,7 +7,7 @@
7 * Note: you must update KVM_API_VERSION if you change this interface. 7 * Note: you must update KVM_API_VERSION if you change this interface.
8 */ 8 */
9 9
10#include <asm/types.h> 10#include <linux/types.h>
11#include <linux/compiler.h> 11#include <linux/compiler.h>
12#include <linux/ioctl.h> 12#include <linux/ioctl.h>
13#include <asm/kvm.h> 13#include <asm/kvm.h>
diff --git a/include/linux/libata.h b/include/linux/libata.h
index b6b8a7f3ec66..2c6bd66209ff 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -401,12 +401,14 @@ enum {
401 ATA_TIMING_CYC8B, 401 ATA_TIMING_CYC8B,
402 ATA_TIMING_ACTIVE = (1 << 4), 402 ATA_TIMING_ACTIVE = (1 << 4),
403 ATA_TIMING_RECOVER = (1 << 5), 403 ATA_TIMING_RECOVER = (1 << 5),
404 ATA_TIMING_CYCLE = (1 << 6), 404 ATA_TIMING_DMACK_HOLD = (1 << 6),
405 ATA_TIMING_UDMA = (1 << 7), 405 ATA_TIMING_CYCLE = (1 << 7),
406 ATA_TIMING_UDMA = (1 << 8),
406 ATA_TIMING_ALL = ATA_TIMING_SETUP | ATA_TIMING_ACT8B | 407 ATA_TIMING_ALL = ATA_TIMING_SETUP | ATA_TIMING_ACT8B |
407 ATA_TIMING_REC8B | ATA_TIMING_CYC8B | 408 ATA_TIMING_REC8B | ATA_TIMING_CYC8B |
408 ATA_TIMING_ACTIVE | ATA_TIMING_RECOVER | 409 ATA_TIMING_ACTIVE | ATA_TIMING_RECOVER |
409 ATA_TIMING_CYCLE | ATA_TIMING_UDMA, 410 ATA_TIMING_DMACK_HOLD | ATA_TIMING_CYCLE |
411 ATA_TIMING_UDMA,
410}; 412};
411 413
412enum ata_xfer_mask { 414enum ata_xfer_mask {
@@ -866,6 +868,7 @@ struct ata_timing {
866 unsigned short cyc8b; /* t0 for 8-bit I/O */ 868 unsigned short cyc8b; /* t0 for 8-bit I/O */
867 unsigned short active; /* t2 or tD */ 869 unsigned short active; /* t2 or tD */
868 unsigned short recover; /* t2i or tK */ 870 unsigned short recover; /* t2i or tK */
871 unsigned short dmack_hold; /* tj */
869 unsigned short cycle; /* t0 */ 872 unsigned short cycle; /* t0 */
870 unsigned short udma; /* t2CYCTYP/2 */ 873 unsigned short udma; /* t2CYCTYP/2 */
871}; 874};
@@ -927,6 +930,8 @@ extern void ata_host_init(struct ata_host *, struct device *,
927extern int ata_scsi_detect(struct scsi_host_template *sht); 930extern int ata_scsi_detect(struct scsi_host_template *sht);
928extern int ata_scsi_ioctl(struct scsi_device *dev, int cmd, void __user *arg); 931extern int ata_scsi_ioctl(struct scsi_device *dev, int cmd, void __user *arg);
929extern int ata_scsi_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *)); 932extern int ata_scsi_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *));
933extern int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *dev,
934 int cmd, void __user *arg);
930extern void ata_sas_port_destroy(struct ata_port *); 935extern void ata_sas_port_destroy(struct ata_port *);
931extern struct ata_port *ata_sas_port_alloc(struct ata_host *, 936extern struct ata_port *ata_sas_port_alloc(struct ata_host *,
932 struct ata_port_info *, struct Scsi_Host *); 937 struct ata_port_info *, struct Scsi_Host *);
diff --git a/include/linux/loop.h b/include/linux/loop.h
index 46169a7b559b..6ffd6db5bb0d 100644
--- a/include/linux/loop.h
+++ b/include/linux/loop.h
@@ -80,7 +80,7 @@ enum {
80}; 80};
81 81
82#include <asm/posix_types.h> /* for __kernel_old_dev_t */ 82#include <asm/posix_types.h> /* for __kernel_old_dev_t */
83#include <asm/types.h> /* for __u64 */ 83#include <linux/types.h> /* for __u64 */
84 84
85/* Backwards compatibility version */ 85/* Backwards compatibility version */
86struct loop_info { 86struct loop_info {
diff --git a/include/linux/magic.h b/include/linux/magic.h
index 439f6f3cb0c4..0b4df7eba852 100644
--- a/include/linux/magic.h
+++ b/include/linux/magic.h
@@ -10,11 +10,13 @@
10#define SYSFS_MAGIC 0x62656572 10#define SYSFS_MAGIC 0x62656572
11#define SECURITYFS_MAGIC 0x73636673 11#define SECURITYFS_MAGIC 0x73636673
12#define TMPFS_MAGIC 0x01021994 12#define TMPFS_MAGIC 0x01021994
13#define SQUASHFS_MAGIC 0x73717368
13#define EFS_SUPER_MAGIC 0x414A53 14#define EFS_SUPER_MAGIC 0x414A53
14#define EXT2_SUPER_MAGIC 0xEF53 15#define EXT2_SUPER_MAGIC 0xEF53
15#define EXT3_SUPER_MAGIC 0xEF53 16#define EXT3_SUPER_MAGIC 0xEF53
16#define XENFS_SUPER_MAGIC 0xabba1974 17#define XENFS_SUPER_MAGIC 0xabba1974
17#define EXT4_SUPER_MAGIC 0xEF53 18#define EXT4_SUPER_MAGIC 0xEF53
19#define BTRFS_SUPER_MAGIC 0x9123683E
18#define HPFS_SUPER_MAGIC 0xf995e849 20#define HPFS_SUPER_MAGIC 0xf995e849
19#define ISOFS_SUPER_MAGIC 0x9660 21#define ISOFS_SUPER_MAGIC 0x9660
20#define JFFS2_SUPER_MAGIC 0x72b6 22#define JFFS2_SUPER_MAGIC 0x72b6
diff --git a/include/linux/matroxfb.h b/include/linux/matroxfb.h
index ae5b09493062..404f678e734b 100644
--- a/include/linux/matroxfb.h
+++ b/include/linux/matroxfb.h
@@ -2,7 +2,7 @@
2#define __LINUX_MATROXFB_H__ 2#define __LINUX_MATROXFB_H__
3 3
4#include <asm/ioctl.h> 4#include <asm/ioctl.h>
5#include <asm/types.h> 5#include <linux/types.h>
6#include <linux/videodev2.h> 6#include <linux/videodev2.h>
7 7
8struct matroxioc_output_mode { 8struct matroxioc_output_mode {
diff --git a/include/linux/mm.h b/include/linux/mm.h
index b91a73fd1bcc..e8ddc98b8405 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -260,7 +260,6 @@ static inline int put_page_testzero(struct page *page)
260 */ 260 */
261static inline int get_page_unless_zero(struct page *page) 261static inline int get_page_unless_zero(struct page *page)
262{ 262{
263 VM_BUG_ON(PageTail(page));
264 return atomic_inc_not_zero(&page->_count); 263 return atomic_inc_not_zero(&page->_count);
265} 264}
266 265
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index f24556813375..ec54785d34f9 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -467,7 +467,7 @@ struct netdev_queue {
467 * This function is called when network device transistions to the down 467 * This function is called when network device transistions to the down
468 * state. 468 * state.
469 * 469 *
470 * int (*ndo_hard_start_xmit)(struct sk_buff *skb, struct net_device *dev); 470 * int (*ndo_start_xmit)(struct sk_buff *skb, struct net_device *dev);
471 * Called when a packet needs to be transmitted. 471 * Called when a packet needs to be transmitted.
472 * Must return NETDEV_TX_OK , NETDEV_TX_BUSY, or NETDEV_TX_LOCKED, 472 * Must return NETDEV_TX_OK , NETDEV_TX_BUSY, or NETDEV_TX_LOCKED,
473 * Required can not be NULL. 473 * Required can not be NULL.
@@ -795,6 +795,7 @@ struct net_device
795 NETREG_UNREGISTERING, /* called unregister_netdevice */ 795 NETREG_UNREGISTERING, /* called unregister_netdevice */
796 NETREG_UNREGISTERED, /* completed unregister todo */ 796 NETREG_UNREGISTERED, /* completed unregister todo */
797 NETREG_RELEASED, /* called free_netdev */ 797 NETREG_RELEASED, /* called free_netdev */
798 NETREG_DUMMY, /* dummy device for NAPI poll */
798 } reg_state; 799 } reg_state;
799 800
800 /* Called from unregister, can be used to call free_netdev */ 801 /* Called from unregister, can be used to call free_netdev */
@@ -1077,6 +1078,8 @@ extern void free_netdev(struct net_device *dev);
1077extern void synchronize_net(void); 1078extern void synchronize_net(void);
1078extern int register_netdevice_notifier(struct notifier_block *nb); 1079extern int register_netdevice_notifier(struct notifier_block *nb);
1079extern int unregister_netdevice_notifier(struct notifier_block *nb); 1080extern int unregister_netdevice_notifier(struct notifier_block *nb);
1081extern int init_dummy_netdev(struct net_device *dev);
1082
1080extern int call_netdevice_notifiers(unsigned long val, struct net_device *dev); 1083extern int call_netdevice_notifiers(unsigned long val, struct net_device *dev);
1081extern struct net_device *dev_get_by_index(struct net *net, int ifindex); 1084extern struct net_device *dev_get_by_index(struct net *net, int ifindex);
1082extern struct net_device *__dev_get_by_index(struct net *net, int ifindex); 1085extern struct net_device *__dev_get_by_index(struct net *net, int ifindex);
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
index e52ce475d19f..c7ee8744d26b 100644
--- a/include/linux/netfilter/x_tables.h
+++ b/include/linux/netfilter/x_tables.h
@@ -270,6 +270,7 @@ struct xt_match
270 struct list_head list; 270 struct list_head list;
271 271
272 const char name[XT_FUNCTION_MAXNAMELEN-1]; 272 const char name[XT_FUNCTION_MAXNAMELEN-1];
273 u_int8_t revision;
273 274
274 /* Return true or false: return FALSE and set *hotdrop = 1 to 275 /* Return true or false: return FALSE and set *hotdrop = 1 to
275 force immediate packet drop. */ 276 force immediate packet drop. */
@@ -302,7 +303,6 @@ struct xt_match
302 unsigned short proto; 303 unsigned short proto;
303 304
304 unsigned short family; 305 unsigned short family;
305 u_int8_t revision;
306}; 306};
307 307
308/* Registration hooks for targets. */ 308/* Registration hooks for targets. */
diff --git a/include/linux/of_i2c.h b/include/linux/of_i2c.h
index bd2a870ec296..34974b5a76f7 100644
--- a/include/linux/of_i2c.h
+++ b/include/linux/of_i2c.h
@@ -17,4 +17,7 @@
17void of_register_i2c_devices(struct i2c_adapter *adap, 17void of_register_i2c_devices(struct i2c_adapter *adap,
18 struct device_node *adap_node); 18 struct device_node *adap_node);
19 19
20/* must call put_device() when done with returned i2c_client device */
21struct i2c_client *of_find_i2c_device_by_node(struct device_node *node);
22
20#endif /* __LINUX_OF_I2C_H */ 23#endif /* __LINUX_OF_I2C_H */
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index d543365518ab..d56ad9c21c09 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -2174,6 +2174,7 @@
2174#define PCI_DEVICE_ID_RDC_R6040 0x6040 2174#define PCI_DEVICE_ID_RDC_R6040 0x6040
2175#define PCI_DEVICE_ID_RDC_R6060 0x6060 2175#define PCI_DEVICE_ID_RDC_R6060 0x6060
2176#define PCI_DEVICE_ID_RDC_R6061 0x6061 2176#define PCI_DEVICE_ID_RDC_R6061 0x6061
2177#define PCI_DEVICE_ID_RDC_D1010 0x1010
2177 2178
2178#define PCI_VENDOR_ID_LENOVO 0x17aa 2179#define PCI_VENDOR_ID_LENOVO 0x17aa
2179 2180
diff --git a/include/linux/phantom.h b/include/linux/phantom.h
index 02268c54c250..94dd6645c60a 100644
--- a/include/linux/phantom.h
+++ b/include/linux/phantom.h
@@ -10,7 +10,7 @@
10#ifndef __PHANTOM_H 10#ifndef __PHANTOM_H
11#define __PHANTOM_H 11#define __PHANTOM_H
12 12
13#include <asm/types.h> 13#include <linux/types.h>
14 14
15/* PHN_(G/S)ET_REG param */ 15/* PHN_(G/S)ET_REG param */
16struct phm_reg { 16struct phm_reg {
diff --git a/include/linux/radeonfb.h b/include/linux/radeonfb.h
index 5bd8975ed78e..8c4bbdecc44f 100644
--- a/include/linux/radeonfb.h
+++ b/include/linux/radeonfb.h
@@ -2,7 +2,7 @@
2#define __LINUX_RADEONFB_H__ 2#define __LINUX_RADEONFB_H__
3 3
4#include <asm/ioctl.h> 4#include <asm/ioctl.h>
5#include <asm/types.h> 5#include <linux/types.h>
6 6
7#define ATY_RADEON_LCD_ON 0x00000001 7#define ATY_RADEON_LCD_ON 0x00000001
8#define ATY_RADEON_CRT_ON 0x00000002 8#define ATY_RADEON_CRT_ON 0x00000002
diff --git a/include/linux/res_counter.h b/include/linux/res_counter.h
index dede0a2cfc45..4c5bcf6ca7e8 100644
--- a/include/linux/res_counter.h
+++ b/include/linux/res_counter.h
@@ -9,7 +9,7 @@
9 * 9 *
10 * Author: Pavel Emelianov <xemul@openvz.org> 10 * Author: Pavel Emelianov <xemul@openvz.org>
11 * 11 *
12 * See Documentation/controllers/resource_counter.txt for more 12 * See Documentation/cgroups/resource_counter.txt for more
13 * info about what this counter is. 13 * info about what this counter is.
14 */ 14 */
15 15
diff --git a/include/linux/swab.h b/include/linux/swab.h
index be5284d4a053..ea0c02fd5163 100644
--- a/include/linux/swab.h
+++ b/include/linux/swab.h
@@ -3,7 +3,7 @@
3 3
4#include <linux/types.h> 4#include <linux/types.h>
5#include <linux/compiler.h> 5#include <linux/compiler.h>
6#include <asm/byteorder.h> 6#include <asm/swab.h>
7 7
8/* 8/*
9 * casts are necessary for constants, because we never know how for sure 9 * casts are necessary for constants, because we never know how for sure
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index a1d177ce0a08..fc81937009f5 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -54,6 +54,7 @@ struct compat_stat;
54struct compat_timeval; 54struct compat_timeval;
55struct robust_list_head; 55struct robust_list_head;
56struct getcpu_cache; 56struct getcpu_cache;
57struct old_linux_dirent;
57struct perf_counter_hw_event; 58struct perf_counter_hw_event;
58 59
59#include <linux/types.h> 60#include <linux/types.h>
@@ -66,6 +67,74 @@ struct perf_counter_hw_event;
66#include <linux/quota.h> 67#include <linux/quota.h>
67#include <linux/key.h> 68#include <linux/key.h>
68 69
70#define __SC_DECL1(t1, a1) t1 a1
71#define __SC_DECL2(t2, a2, ...) t2 a2, __SC_DECL1(__VA_ARGS__)
72#define __SC_DECL3(t3, a3, ...) t3 a3, __SC_DECL2(__VA_ARGS__)
73#define __SC_DECL4(t4, a4, ...) t4 a4, __SC_DECL3(__VA_ARGS__)
74#define __SC_DECL5(t5, a5, ...) t5 a5, __SC_DECL4(__VA_ARGS__)
75#define __SC_DECL6(t6, a6, ...) t6 a6, __SC_DECL5(__VA_ARGS__)
76
77#define __SC_LONG1(t1, a1) long a1
78#define __SC_LONG2(t2, a2, ...) long a2, __SC_LONG1(__VA_ARGS__)
79#define __SC_LONG3(t3, a3, ...) long a3, __SC_LONG2(__VA_ARGS__)
80#define __SC_LONG4(t4, a4, ...) long a4, __SC_LONG3(__VA_ARGS__)
81#define __SC_LONG5(t5, a5, ...) long a5, __SC_LONG4(__VA_ARGS__)
82#define __SC_LONG6(t6, a6, ...) long a6, __SC_LONG5(__VA_ARGS__)
83
84#define __SC_CAST1(t1, a1) (t1) a1
85#define __SC_CAST2(t2, a2, ...) (t2) a2, __SC_CAST1(__VA_ARGS__)
86#define __SC_CAST3(t3, a3, ...) (t3) a3, __SC_CAST2(__VA_ARGS__)
87#define __SC_CAST4(t4, a4, ...) (t4) a4, __SC_CAST3(__VA_ARGS__)
88#define __SC_CAST5(t5, a5, ...) (t5) a5, __SC_CAST4(__VA_ARGS__)
89#define __SC_CAST6(t6, a6, ...) (t6) a6, __SC_CAST5(__VA_ARGS__)
90
91#define __SC_TEST(type) BUILD_BUG_ON(sizeof(type) > sizeof(long))
92#define __SC_TEST1(t1, a1) __SC_TEST(t1)
93#define __SC_TEST2(t2, a2, ...) __SC_TEST(t2); __SC_TEST1(__VA_ARGS__)
94#define __SC_TEST3(t3, a3, ...) __SC_TEST(t3); __SC_TEST2(__VA_ARGS__)
95#define __SC_TEST4(t4, a4, ...) __SC_TEST(t4); __SC_TEST3(__VA_ARGS__)
96#define __SC_TEST5(t5, a5, ...) __SC_TEST(t5); __SC_TEST4(__VA_ARGS__)
97#define __SC_TEST6(t6, a6, ...) __SC_TEST(t6); __SC_TEST5(__VA_ARGS__)
98
99#define SYSCALL_DEFINE0(name) asmlinkage long sys_##name(void)
100#define SYSCALL_DEFINE1(...) SYSCALL_DEFINEx(1, __VA_ARGS__)
101#define SYSCALL_DEFINE2(...) SYSCALL_DEFINEx(2, __VA_ARGS__)
102#define SYSCALL_DEFINE3(...) SYSCALL_DEFINEx(3, __VA_ARGS__)
103#define SYSCALL_DEFINE4(...) SYSCALL_DEFINEx(4, __VA_ARGS__)
104#define SYSCALL_DEFINE5(...) SYSCALL_DEFINEx(5, __VA_ARGS__)
105#define SYSCALL_DEFINE6(...) SYSCALL_DEFINEx(6, __VA_ARGS__)
106
107#ifdef CONFIG_PPC64
108#define SYSCALL_ALIAS(alias, name) \
109 asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n" \
110 "\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
111#else
112#define SYSCALL_ALIAS(alias, name) \
113 asm ("\t.globl " #alias "\n\t.set " #alias ", " #name)
114#endif
115
116#ifdef CONFIG_HAVE_SYSCALL_WRAPPERS
117
118#define SYSCALL_DEFINE(name) static inline long SYSC_##name
119#define SYSCALL_DEFINEx(x, name, ...) \
120 asmlinkage long sys_##name(__SC_DECL##x(__VA_ARGS__)); \
121 static inline long SYSC_##name(__SC_DECL##x(__VA_ARGS__)); \
122 asmlinkage long SyS_##name(__SC_LONG##x(__VA_ARGS__)) \
123 { \
124 __SC_TEST##x(__VA_ARGS__); \
125 return (long) SYSC_##name(__SC_CAST##x(__VA_ARGS__)); \
126 } \
127 SYSCALL_ALIAS(sys_##name, SyS_##name); \
128 static inline long SYSC_##name(__SC_DECL##x(__VA_ARGS__))
129
130#else /* CONFIG_HAVE_SYSCALL_WRAPPERS */
131
132#define SYSCALL_DEFINE(name) asmlinkage long sys_##name
133#define SYSCALL_DEFINEx(x, name, ...) \
134 asmlinkage long sys_##name(__SC_DECL##x(__VA_ARGS__))
135
136#endif /* CONFIG_HAVE_SYSCALL_WRAPPERS */
137
69asmlinkage long sys_time(time_t __user *tloc); 138asmlinkage long sys_time(time_t __user *tloc);
70asmlinkage long sys_stime(time_t __user *tptr); 139asmlinkage long sys_stime(time_t __user *tptr);
71asmlinkage long sys_gettimeofday(struct timeval __user *tv, 140asmlinkage long sys_gettimeofday(struct timeval __user *tv,
@@ -78,7 +147,7 @@ asmlinkage long sys_times(struct tms __user *tbuf);
78 147
79asmlinkage long sys_gettid(void); 148asmlinkage long sys_gettid(void);
80asmlinkage long sys_nanosleep(struct timespec __user *rqtp, struct timespec __user *rmtp); 149asmlinkage long sys_nanosleep(struct timespec __user *rqtp, struct timespec __user *rmtp);
81asmlinkage unsigned long sys_alarm(unsigned int seconds); 150asmlinkage long sys_alarm(unsigned int seconds);
82asmlinkage long sys_getpid(void); 151asmlinkage long sys_getpid(void);
83asmlinkage long sys_getppid(void); 152asmlinkage long sys_getppid(void);
84asmlinkage long sys_getuid(void); 153asmlinkage long sys_getuid(void);
@@ -167,7 +236,7 @@ asmlinkage long sys_kexec_load(unsigned long entry, unsigned long nr_segments,
167 unsigned long flags); 236 unsigned long flags);
168 237
169asmlinkage long sys_exit(int error_code); 238asmlinkage long sys_exit(int error_code);
170asmlinkage void sys_exit_group(int error_code); 239asmlinkage long sys_exit_group(int error_code);
171asmlinkage long sys_wait4(pid_t pid, int __user *stat_addr, 240asmlinkage long sys_wait4(pid_t pid, int __user *stat_addr,
172 int options, struct rusage __user *ru); 241 int options, struct rusage __user *ru);
173asmlinkage long sys_waitid(int which, pid_t pid, 242asmlinkage long sys_waitid(int which, pid_t pid,
@@ -197,7 +266,7 @@ asmlinkage long sys_tkill(int pid, int sig);
197asmlinkage long sys_rt_sigqueueinfo(int pid, int sig, siginfo_t __user *uinfo); 266asmlinkage long sys_rt_sigqueueinfo(int pid, int sig, siginfo_t __user *uinfo);
198asmlinkage long sys_sgetmask(void); 267asmlinkage long sys_sgetmask(void);
199asmlinkage long sys_ssetmask(int newmask); 268asmlinkage long sys_ssetmask(int newmask);
200asmlinkage unsigned long sys_signal(int sig, __sighandler_t handler); 269asmlinkage long sys_signal(int sig, __sighandler_t handler);
201asmlinkage long sys_pause(void); 270asmlinkage long sys_pause(void);
202 271
203asmlinkage long sys_sync(void); 272asmlinkage long sys_sync(void);
@@ -247,29 +316,29 @@ asmlinkage long sys_lsetxattr(const char __user *path, const char __user *name,
247 const void __user *value, size_t size, int flags); 316 const void __user *value, size_t size, int flags);
248asmlinkage long sys_fsetxattr(int fd, const char __user *name, 317asmlinkage long sys_fsetxattr(int fd, const char __user *name,
249 const void __user *value, size_t size, int flags); 318 const void __user *value, size_t size, int flags);
250asmlinkage ssize_t sys_getxattr(const char __user *path, const char __user *name, 319asmlinkage long sys_getxattr(const char __user *path, const char __user *name,
251 void __user *value, size_t size); 320 void __user *value, size_t size);
252asmlinkage ssize_t sys_lgetxattr(const char __user *path, const char __user *name, 321asmlinkage long sys_lgetxattr(const char __user *path, const char __user *name,
253 void __user *value, size_t size); 322 void __user *value, size_t size);
254asmlinkage ssize_t sys_fgetxattr(int fd, const char __user *name, 323asmlinkage long sys_fgetxattr(int fd, const char __user *name,
255 void __user *value, size_t size); 324 void __user *value, size_t size);
256asmlinkage ssize_t sys_listxattr(const char __user *path, char __user *list, 325asmlinkage long sys_listxattr(const char __user *path, char __user *list,
257 size_t size); 326 size_t size);
258asmlinkage ssize_t sys_llistxattr(const char __user *path, char __user *list, 327asmlinkage long sys_llistxattr(const char __user *path, char __user *list,
259 size_t size); 328 size_t size);
260asmlinkage ssize_t sys_flistxattr(int fd, char __user *list, size_t size); 329asmlinkage long sys_flistxattr(int fd, char __user *list, size_t size);
261asmlinkage long sys_removexattr(const char __user *path, 330asmlinkage long sys_removexattr(const char __user *path,
262 const char __user *name); 331 const char __user *name);
263asmlinkage long sys_lremovexattr(const char __user *path, 332asmlinkage long sys_lremovexattr(const char __user *path,
264 const char __user *name); 333 const char __user *name);
265asmlinkage long sys_fremovexattr(int fd, const char __user *name); 334asmlinkage long sys_fremovexattr(int fd, const char __user *name);
266 335
267asmlinkage unsigned long sys_brk(unsigned long brk); 336asmlinkage long sys_brk(unsigned long brk);
268asmlinkage long sys_mprotect(unsigned long start, size_t len, 337asmlinkage long sys_mprotect(unsigned long start, size_t len,
269 unsigned long prot); 338 unsigned long prot);
270asmlinkage unsigned long sys_mremap(unsigned long addr, 339asmlinkage long sys_mremap(unsigned long addr,
271 unsigned long old_len, unsigned long new_len, 340 unsigned long old_len, unsigned long new_len,
272 unsigned long flags, unsigned long new_addr); 341 unsigned long flags, unsigned long new_addr);
273asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size, 342asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size,
274 unsigned long prot, unsigned long pgoff, 343 unsigned long prot, unsigned long pgoff,
275 unsigned long flags); 344 unsigned long flags);
@@ -322,10 +391,10 @@ asmlinkage long sys_io_submit(aio_context_t, long,
322 struct iocb __user * __user *); 391 struct iocb __user * __user *);
323asmlinkage long sys_io_cancel(aio_context_t ctx_id, struct iocb __user *iocb, 392asmlinkage long sys_io_cancel(aio_context_t ctx_id, struct iocb __user *iocb,
324 struct io_event __user *result); 393 struct io_event __user *result);
325asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, 394asmlinkage long sys_sendfile(int out_fd, int in_fd,
326 off_t __user *offset, size_t count); 395 off_t __user *offset, size_t count);
327asmlinkage ssize_t sys_sendfile64(int out_fd, int in_fd, 396asmlinkage long sys_sendfile64(int out_fd, int in_fd,
328 loff_t __user *offset, size_t count); 397 loff_t __user *offset, size_t count);
329asmlinkage long sys_readlink(const char __user *path, 398asmlinkage long sys_readlink(const char __user *path,
330 char __user *buf, int bufsiz); 399 char __user *buf, int bufsiz);
331asmlinkage long sys_creat(const char __user *pathname, int mode); 400asmlinkage long sys_creat(const char __user *pathname, int mode);
@@ -369,26 +438,25 @@ asmlinkage long sys_utime(char __user *filename,
369 struct utimbuf __user *times); 438 struct utimbuf __user *times);
370asmlinkage long sys_utimes(char __user *filename, 439asmlinkage long sys_utimes(char __user *filename,
371 struct timeval __user *utimes); 440 struct timeval __user *utimes);
372asmlinkage off_t sys_lseek(unsigned int fd, off_t offset, 441asmlinkage long sys_lseek(unsigned int fd, off_t offset,
373 unsigned int origin); 442 unsigned int origin);
374asmlinkage long sys_llseek(unsigned int fd, unsigned long offset_high, 443asmlinkage long sys_llseek(unsigned int fd, unsigned long offset_high,
375 unsigned long offset_low, loff_t __user *result, 444 unsigned long offset_low, loff_t __user *result,
376 unsigned int origin); 445 unsigned int origin);
377asmlinkage ssize_t sys_read(unsigned int fd, char __user *buf, 446asmlinkage long sys_read(unsigned int fd, char __user *buf, size_t count);
378 size_t count); 447asmlinkage long sys_readahead(int fd, loff_t offset, size_t count);
379asmlinkage ssize_t sys_readahead(int fd, loff_t offset, size_t count); 448asmlinkage long sys_readv(unsigned long fd,
380asmlinkage ssize_t sys_readv(unsigned long fd, 449 const struct iovec __user *vec,
381 const struct iovec __user *vec, 450 unsigned long vlen);
382 unsigned long vlen); 451asmlinkage long sys_write(unsigned int fd, const char __user *buf,
383asmlinkage ssize_t sys_write(unsigned int fd, const char __user *buf, 452 size_t count);
384 size_t count); 453asmlinkage long sys_writev(unsigned long fd,
385asmlinkage ssize_t sys_writev(unsigned long fd, 454 const struct iovec __user *vec,
386 const struct iovec __user *vec, 455 unsigned long vlen);
387 unsigned long vlen); 456asmlinkage long sys_pread64(unsigned int fd, char __user *buf,
388asmlinkage ssize_t sys_pread64(unsigned int fd, char __user *buf, 457 size_t count, loff_t pos);
389 size_t count, loff_t pos); 458asmlinkage long sys_pwrite64(unsigned int fd, const char __user *buf,
390asmlinkage ssize_t sys_pwrite64(unsigned int fd, const char __user *buf, 459 size_t count, loff_t pos);
391 size_t count, loff_t pos);
392asmlinkage long sys_getcwd(char __user *buf, unsigned long size); 460asmlinkage long sys_getcwd(char __user *buf, unsigned long size);
393asmlinkage long sys_mkdir(const char __user *pathname, int mode); 461asmlinkage long sys_mkdir(const char __user *pathname, int mode);
394asmlinkage long sys_chdir(const char __user *filename); 462asmlinkage long sys_chdir(const char __user *filename);
@@ -477,7 +545,7 @@ asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf);
477asmlinkage long sys_mq_open(const char __user *name, int oflag, mode_t mode, struct mq_attr __user *attr); 545asmlinkage long sys_mq_open(const char __user *name, int oflag, mode_t mode, struct mq_attr __user *attr);
478asmlinkage long sys_mq_unlink(const char __user *name); 546asmlinkage long sys_mq_unlink(const char __user *name);
479asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec __user *abs_timeout); 547asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec __user *abs_timeout);
480asmlinkage ssize_t sys_mq_timedreceive(mqd_t mqdes, char __user *msg_ptr, size_t msg_len, unsigned int __user *msg_prio, const struct timespec __user *abs_timeout); 548asmlinkage long sys_mq_timedreceive(mqd_t mqdes, char __user *msg_ptr, size_t msg_len, unsigned int __user *msg_prio, const struct timespec __user *abs_timeout);
481asmlinkage long sys_mq_notify(mqd_t mqdes, const struct sigevent __user *notification); 549asmlinkage long sys_mq_notify(mqd_t mqdes, const struct sigevent __user *notification);
482asmlinkage long sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr __user *mqstat, struct mq_attr __user *omqstat); 550asmlinkage long sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr __user *mqstat, struct mq_attr __user *omqstat);
483 551
@@ -531,11 +599,6 @@ asmlinkage long sys_move_pages(pid_t pid, unsigned long nr_pages,
531 const int __user *nodes, 599 const int __user *nodes,
532 int __user *status, 600 int __user *status,
533 int flags); 601 int flags);
534asmlinkage long compat_sys_move_pages(pid_t pid, unsigned long nr_page,
535 __u32 __user *pages,
536 const int __user *nodes,
537 int __user *status,
538 int flags);
539asmlinkage long sys_mbind(unsigned long start, unsigned long len, 602asmlinkage long sys_mbind(unsigned long start, unsigned long len,
540 unsigned long mode, 603 unsigned long mode,
541 unsigned long __user *nmask, 604 unsigned long __user *nmask,
@@ -584,13 +647,6 @@ asmlinkage long sys_readlinkat(int dfd, const char __user *path, char __user *bu
584 int bufsiz); 647 int bufsiz);
585asmlinkage long sys_utimensat(int dfd, char __user *filename, 648asmlinkage long sys_utimensat(int dfd, char __user *filename,
586 struct timespec __user *utimes, int flags); 649 struct timespec __user *utimes, int flags);
587asmlinkage long compat_sys_futimesat(unsigned int dfd, char __user *filename,
588 struct compat_timeval __user *t);
589asmlinkage long compat_sys_newfstatat(unsigned int dfd, char __user * filename,
590 struct compat_stat __user *statbuf,
591 int flag);
592asmlinkage long compat_sys_openat(unsigned int dfd, const char __user *filename,
593 int flags, int mode);
594asmlinkage long sys_unshare(unsigned long unshare_flags); 650asmlinkage long sys_unshare(unsigned long unshare_flags);
595 651
596asmlinkage long sys_splice(int fd_in, loff_t __user *off_in, 652asmlinkage long sys_splice(int fd_in, loff_t __user *off_in,
@@ -622,6 +678,15 @@ asmlinkage long sys_timerfd_gettime(int ufd, struct itimerspec __user *otmr);
622asmlinkage long sys_eventfd(unsigned int count); 678asmlinkage long sys_eventfd(unsigned int count);
623asmlinkage long sys_eventfd2(unsigned int count, int flags); 679asmlinkage long sys_eventfd2(unsigned int count, int flags);
624asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len); 680asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len);
681asmlinkage long sys_old_readdir(unsigned int, struct old_linux_dirent __user *, unsigned int);
682asmlinkage long sys_pselect6(int, fd_set __user *, fd_set __user *,
683 fd_set __user *, struct timespec __user *,
684 void __user *);
685asmlinkage long sys_ppoll(struct pollfd __user *, unsigned int,
686 struct timespec __user *, const sigset_t __user *,
687 size_t);
688asmlinkage long sys_pipe2(int __user *, int);
689asmlinkage long sys_pipe(int __user *);
625 690
626int kernel_execve(const char *filename, char *const argv[], char *const envp[]); 691int kernel_execve(const char *filename, char *const argv[], char *const envp[]);
627 692