diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/fadvise.h | 10 | ||||
-rw-r--r-- | include/linux/fs.h | 9 | ||||
-rw-r--r-- | include/linux/fsnotify.h | 2 | ||||
-rw-r--r-- | include/linux/ftape.h | 2 | ||||
-rw-r--r-- | include/linux/input.h | 6 | ||||
-rw-r--r-- | include/linux/mbcache.h | 2 | ||||
-rw-r--r-- | include/linux/netfilter_ipv4/ip_conntrack.h | 5 | ||||
-rw-r--r-- | include/linux/netfilter_ipv4/ip_conntrack_helper.h | 7 | ||||
-rw-r--r-- | include/linux/netlink.h | 2 | ||||
-rw-r--r-- | include/linux/pci.h | 5 | ||||
-rw-r--r-- | include/linux/pci_ids.h | 14 | ||||
-rw-r--r-- | include/linux/raid/bitmap.h | 2 | ||||
-rw-r--r-- | include/linux/reboot.h | 16 | ||||
-rw-r--r-- | include/linux/serial.h | 6 | ||||
-rw-r--r-- | include/linux/serialP.h | 1 | ||||
-rw-r--r-- | include/linux/serial_core.h | 7 | ||||
-rw-r--r-- | include/linux/skbuff.h | 3 | ||||
-rw-r--r-- | include/linux/slab.h | 2 | ||||
-rw-r--r-- | include/linux/sysctl.h | 13 | ||||
-rw-r--r-- | include/linux/tc_ematch/tc_em_meta.h | 5 | ||||
-rw-r--r-- | include/linux/uinput.h | 5 | ||||
-rw-r--r-- | include/linux/usb_input.h | 25 | ||||
-rw-r--r-- | include/linux/watchdog.h | 10 |
23 files changed, 120 insertions, 39 deletions
diff --git a/include/linux/fadvise.h b/include/linux/fadvise.h index 6fc656dfb93d..e8e747139b9a 100644 --- a/include/linux/fadvise.h +++ b/include/linux/fadvise.h | |||
@@ -5,7 +5,17 @@ | |||
5 | #define POSIX_FADV_RANDOM 1 /* Expect random page references. */ | 5 | #define POSIX_FADV_RANDOM 1 /* Expect random page references. */ |
6 | #define POSIX_FADV_SEQUENTIAL 2 /* Expect sequential page references. */ | 6 | #define POSIX_FADV_SEQUENTIAL 2 /* Expect sequential page references. */ |
7 | #define POSIX_FADV_WILLNEED 3 /* Will need these pages. */ | 7 | #define POSIX_FADV_WILLNEED 3 /* Will need these pages. */ |
8 | |||
9 | /* | ||
10 | * The advise values for POSIX_FADV_DONTNEED and POSIX_ADV_NOREUSE | ||
11 | * for s390-64 differ from the values for the rest of the world. | ||
12 | */ | ||
13 | #if defined(__s390x__) | ||
14 | #define POSIX_FADV_DONTNEED 6 /* Don't need these pages. */ | ||
15 | #define POSIX_FADV_NOREUSE 7 /* Data will be accessed once. */ | ||
16 | #else | ||
8 | #define POSIX_FADV_DONTNEED 4 /* Don't need these pages. */ | 17 | #define POSIX_FADV_DONTNEED 4 /* Don't need these pages. */ |
9 | #define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */ | 18 | #define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */ |
19 | #endif | ||
10 | 20 | ||
11 | #endif /* FADVISE_H_INCLUDED */ | 21 | #endif /* FADVISE_H_INCLUDED */ |
diff --git a/include/linux/fs.h b/include/linux/fs.h index c9bf3746a9fb..f9adf75fd9b4 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -697,11 +697,13 @@ extern struct list_head file_lock_list; | |||
697 | #include <linux/fcntl.h> | 697 | #include <linux/fcntl.h> |
698 | 698 | ||
699 | extern int fcntl_getlk(struct file *, struct flock __user *); | 699 | extern int fcntl_getlk(struct file *, struct flock __user *); |
700 | extern int fcntl_setlk(struct file *, unsigned int, struct flock __user *); | 700 | extern int fcntl_setlk(unsigned int, struct file *, unsigned int, |
701 | struct flock __user *); | ||
701 | 702 | ||
702 | #if BITS_PER_LONG == 32 | 703 | #if BITS_PER_LONG == 32 |
703 | extern int fcntl_getlk64(struct file *, struct flock64 __user *); | 704 | extern int fcntl_getlk64(struct file *, struct flock64 __user *); |
704 | extern int fcntl_setlk64(struct file *, unsigned int, struct flock64 __user *); | 705 | extern int fcntl_setlk64(unsigned int, struct file *, unsigned int, |
706 | struct flock64 __user *); | ||
705 | #endif | 707 | #endif |
706 | 708 | ||
707 | extern void send_sigio(struct fown_struct *fown, int fd, int band); | 709 | extern void send_sigio(struct fown_struct *fown, int fd, int band); |
@@ -1441,6 +1443,9 @@ extern int inode_needs_sync(struct inode *inode); | |||
1441 | extern void generic_delete_inode(struct inode *inode); | 1443 | extern void generic_delete_inode(struct inode *inode); |
1442 | extern void generic_drop_inode(struct inode *inode); | 1444 | extern void generic_drop_inode(struct inode *inode); |
1443 | 1445 | ||
1446 | extern struct inode *ilookup5_nowait(struct super_block *sb, | ||
1447 | unsigned long hashval, int (*test)(struct inode *, void *), | ||
1448 | void *data); | ||
1444 | extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval, | 1449 | extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval, |
1445 | int (*test)(struct inode *, void *), void *data); | 1450 | int (*test)(struct inode *, void *), void *data); |
1446 | extern struct inode *ilookup(struct super_block *sb, unsigned long ino); | 1451 | extern struct inode *ilookup(struct super_block *sb, unsigned long ino); |
diff --git a/include/linux/fsnotify.h b/include/linux/fsnotify.h index eb581b6cfca9..d07a92c94776 100644 --- a/include/linux/fsnotify.h +++ b/include/linux/fsnotify.h | |||
@@ -125,8 +125,8 @@ static inline void fsnotify_open(struct dentry *dentry) | |||
125 | if (S_ISDIR(inode->i_mode)) | 125 | if (S_ISDIR(inode->i_mode)) |
126 | mask |= IN_ISDIR; | 126 | mask |= IN_ISDIR; |
127 | 127 | ||
128 | inotify_inode_queue_event(inode, mask, 0, NULL); | ||
129 | inotify_dentry_parent_queue_event(dentry, mask, 0, dentry->d_name.name); | 128 | inotify_dentry_parent_queue_event(dentry, mask, 0, dentry->d_name.name); |
129 | inotify_inode_queue_event(inode, mask, 0, NULL); | ||
130 | } | 130 | } |
131 | 131 | ||
132 | /* | 132 | /* |
diff --git a/include/linux/ftape.h b/include/linux/ftape.h index c6b38d5b9186..72faeec9f6e1 100644 --- a/include/linux/ftape.h +++ b/include/linux/ftape.h | |||
@@ -165,7 +165,7 @@ typedef union { | |||
165 | # undef CONFIG_FT_FDC_DMA | 165 | # undef CONFIG_FT_FDC_DMA |
166 | # define CONFIG_FT_FDC_DMA 2 | 166 | # define CONFIG_FT_FDC_DMA 2 |
167 | # endif | 167 | # endif |
168 | #elif CONFIG_FT_ALT_FDC == 1 /* CONFIG_FT_MACH2 */ | 168 | #elif defined(CONFIG_FT_ALT_FDC) /* CONFIG_FT_MACH2 */ |
169 | # if CONFIG_FT_FDC_BASE == 0 | 169 | # if CONFIG_FT_FDC_BASE == 0 |
170 | # undef CONFIG_FT_FDC_BASE | 170 | # undef CONFIG_FT_FDC_BASE |
171 | # define CONFIG_FT_FDC_BASE 0x370 | 171 | # define CONFIG_FT_FDC_BASE 0x370 |
diff --git a/include/linux/input.h b/include/linux/input.h index b9cc0ac71f44..bdc53c6cc962 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
@@ -811,9 +811,9 @@ struct input_dev { | |||
811 | 811 | ||
812 | void *private; | 812 | void *private; |
813 | 813 | ||
814 | char *name; | 814 | const char *name; |
815 | char *phys; | 815 | const char *phys; |
816 | char *uniq; | 816 | const char *uniq; |
817 | struct input_id id; | 817 | struct input_id id; |
818 | 818 | ||
819 | unsigned long evbit[NBITS(EV_MAX)]; | 819 | unsigned long evbit[NBITS(EV_MAX)]; |
diff --git a/include/linux/mbcache.h b/include/linux/mbcache.h index 8e5a10410a30..9263d2db2d67 100644 --- a/include/linux/mbcache.h +++ b/include/linux/mbcache.h | |||
@@ -29,7 +29,7 @@ struct mb_cache_op { | |||
29 | 29 | ||
30 | struct mb_cache * mb_cache_create(const char *, struct mb_cache_op *, size_t, | 30 | struct mb_cache * mb_cache_create(const char *, struct mb_cache_op *, size_t, |
31 | int, int); | 31 | int, int); |
32 | void mb_cache_shrink(struct mb_cache *, struct block_device *); | 32 | void mb_cache_shrink(struct block_device *); |
33 | void mb_cache_destroy(struct mb_cache *); | 33 | void mb_cache_destroy(struct mb_cache *); |
34 | 34 | ||
35 | /* Functions on cache entries */ | 35 | /* Functions on cache entries */ |
diff --git a/include/linux/netfilter_ipv4/ip_conntrack.h b/include/linux/netfilter_ipv4/ip_conntrack.h index 3781192ce159..08fe5f7d14a0 100644 --- a/include/linux/netfilter_ipv4/ip_conntrack.h +++ b/include/linux/netfilter_ipv4/ip_conntrack.h | |||
@@ -197,6 +197,9 @@ struct ip_conntrack_expect | |||
197 | /* Timer function; deletes the expectation. */ | 197 | /* Timer function; deletes the expectation. */ |
198 | struct timer_list timeout; | 198 | struct timer_list timeout; |
199 | 199 | ||
200 | /* Usage count. */ | ||
201 | atomic_t use; | ||
202 | |||
200 | #ifdef CONFIG_IP_NF_NAT_NEEDED | 203 | #ifdef CONFIG_IP_NF_NAT_NEEDED |
201 | /* This is the original per-proto part, used to map the | 204 | /* This is the original per-proto part, used to map the |
202 | * expected connection the way the recipient expects. */ | 205 | * expected connection the way the recipient expects. */ |
@@ -236,7 +239,7 @@ ip_conntrack_get(const struct sk_buff *skb, enum ip_conntrack_info *ctinfo) | |||
236 | } | 239 | } |
237 | 240 | ||
238 | /* decrement reference count on a conntrack */ | 241 | /* decrement reference count on a conntrack */ |
239 | extern inline void ip_conntrack_put(struct ip_conntrack *ct); | 242 | extern void ip_conntrack_put(struct ip_conntrack *ct); |
240 | 243 | ||
241 | /* call to create an explicit dependency on ip_conntrack. */ | 244 | /* call to create an explicit dependency on ip_conntrack. */ |
242 | extern void need_ip_conntrack(void); | 245 | extern void need_ip_conntrack(void); |
diff --git a/include/linux/netfilter_ipv4/ip_conntrack_helper.h b/include/linux/netfilter_ipv4/ip_conntrack_helper.h index b1bbba0a12cb..3692daa93dec 100644 --- a/include/linux/netfilter_ipv4/ip_conntrack_helper.h +++ b/include/linux/netfilter_ipv4/ip_conntrack_helper.h | |||
@@ -30,9 +30,10 @@ extern int ip_conntrack_helper_register(struct ip_conntrack_helper *); | |||
30 | extern void ip_conntrack_helper_unregister(struct ip_conntrack_helper *); | 30 | extern void ip_conntrack_helper_unregister(struct ip_conntrack_helper *); |
31 | 31 | ||
32 | /* Allocate space for an expectation: this is mandatory before calling | 32 | /* Allocate space for an expectation: this is mandatory before calling |
33 | ip_conntrack_expect_related. */ | 33 | ip_conntrack_expect_related. You will have to call put afterwards. */ |
34 | extern struct ip_conntrack_expect *ip_conntrack_expect_alloc(void); | 34 | extern struct ip_conntrack_expect * |
35 | extern void ip_conntrack_expect_free(struct ip_conntrack_expect *exp); | 35 | ip_conntrack_expect_alloc(struct ip_conntrack *master); |
36 | extern void ip_conntrack_expect_put(struct ip_conntrack_expect *exp); | ||
36 | 37 | ||
37 | /* Add an expected connection: can have more than one per connection */ | 38 | /* Add an expected connection: can have more than one per connection */ |
38 | extern int ip_conntrack_expect_related(struct ip_conntrack_expect *exp); | 39 | extern int ip_conntrack_expect_related(struct ip_conntrack_expect *exp); |
diff --git a/include/linux/netlink.h b/include/linux/netlink.h index 2f0c085f2c7d..70c2a9dc4b2b 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h | |||
@@ -5,7 +5,7 @@ | |||
5 | #include <linux/types.h> | 5 | #include <linux/types.h> |
6 | 6 | ||
7 | #define NETLINK_ROUTE 0 /* Routing/device hook */ | 7 | #define NETLINK_ROUTE 0 /* Routing/device hook */ |
8 | #define NETLINK_SKIP 1 /* Reserved for ENskip */ | 8 | #define NETLINK_W1 1 /* 1-wire subsystem */ |
9 | #define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols */ | 9 | #define NETLINK_USERSOCK 2 /* Reserved for user mode socket protocols */ |
10 | #define NETLINK_FIREWALL 3 /* Firewalling hook */ | 10 | #define NETLINK_FIREWALL 3 /* Firewalling hook */ |
11 | #define NETLINK_TCPDIAG 4 /* TCP socket monitoring */ | 11 | #define NETLINK_TCPDIAG 4 /* TCP socket monitoring */ |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 7ac14961ba22..8621cf42b46f 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -971,6 +971,8 @@ static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int en | |||
971 | 971 | ||
972 | #define isa_bridge ((struct pci_dev *)NULL) | 972 | #define isa_bridge ((struct pci_dev *)NULL) |
973 | 973 | ||
974 | #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0) | ||
975 | |||
974 | #else | 976 | #else |
975 | 977 | ||
976 | /* | 978 | /* |
@@ -985,9 +987,6 @@ static inline int pci_proc_domain(struct pci_bus *bus) | |||
985 | return 0; | 987 | return 0; |
986 | } | 988 | } |
987 | #endif | 989 | #endif |
988 | |||
989 | #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0) | ||
990 | |||
991 | #endif /* !CONFIG_PCI */ | 990 | #endif /* !CONFIG_PCI */ |
992 | 991 | ||
993 | /* these helpers provide future and backwards compatibility | 992 | /* these helpers provide future and backwards compatibility |
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 27348c22dacb..bc4cc10fabe9 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
@@ -911,6 +911,15 @@ | |||
911 | #define PCI_DEVICE_ID_QLOGIC_ISP1022 0x1022 | 911 | #define PCI_DEVICE_ID_QLOGIC_ISP1022 0x1022 |
912 | #define PCI_DEVICE_ID_QLOGIC_ISP2100 0x2100 | 912 | #define PCI_DEVICE_ID_QLOGIC_ISP2100 0x2100 |
913 | #define PCI_DEVICE_ID_QLOGIC_ISP2200 0x2200 | 913 | #define PCI_DEVICE_ID_QLOGIC_ISP2200 0x2200 |
914 | #define PCI_DEVICE_ID_QLOGIC_ISP2300 0x2300 | ||
915 | #define PCI_DEVICE_ID_QLOGIC_ISP2312 0x2312 | ||
916 | #define PCI_DEVICE_ID_QLOGIC_ISP2322 0x2322 | ||
917 | #define PCI_DEVICE_ID_QLOGIC_ISP6312 0x6312 | ||
918 | #define PCI_DEVICE_ID_QLOGIC_ISP6322 0x6322 | ||
919 | #define PCI_DEVICE_ID_QLOGIC_ISP2422 0x2422 | ||
920 | #define PCI_DEVICE_ID_QLOGIC_ISP2432 0x2432 | ||
921 | #define PCI_DEVICE_ID_QLOGIC_ISP2512 0x2512 | ||
922 | #define PCI_DEVICE_ID_QLOGIC_ISP2522 0x2522 | ||
914 | 923 | ||
915 | #define PCI_VENDOR_ID_CYRIX 0x1078 | 924 | #define PCI_VENDOR_ID_CYRIX 0x1078 |
916 | #define PCI_DEVICE_ID_CYRIX_5510 0x0000 | 925 | #define PCI_DEVICE_ID_CYRIX_5510 0x0000 |
@@ -1011,6 +1020,7 @@ | |||
1011 | #define PCI_DEVICE_ID_PLX_SPCOM200 0x1103 | 1020 | #define PCI_DEVICE_ID_PLX_SPCOM200 0x1103 |
1012 | #define PCI_DEVICE_ID_PLX_DJINN_ITOO 0x1151 | 1021 | #define PCI_DEVICE_ID_PLX_DJINN_ITOO 0x1151 |
1013 | #define PCI_DEVICE_ID_PLX_R753 0x1152 | 1022 | #define PCI_DEVICE_ID_PLX_R753 0x1152 |
1023 | #define PCI_DEVICE_ID_PLX_OLITEC 0x1187 | ||
1014 | #define PCI_DEVICE_ID_PLX_9030 0x9030 | 1024 | #define PCI_DEVICE_ID_PLX_9030 0x9030 |
1015 | #define PCI_DEVICE_ID_PLX_9050 0x9050 | 1025 | #define PCI_DEVICE_ID_PLX_9050 0x9050 |
1016 | #define PCI_DEVICE_ID_PLX_9060 0x9060 | 1026 | #define PCI_DEVICE_ID_PLX_9060 0x9060 |
@@ -1872,6 +1882,7 @@ | |||
1872 | #define PCI_DEVICE_ID_CBOARDS_DAS1602_16 0x0001 | 1882 | #define PCI_DEVICE_ID_CBOARDS_DAS1602_16 0x0001 |
1873 | 1883 | ||
1874 | #define PCI_VENDOR_ID_SIIG 0x131f | 1884 | #define PCI_VENDOR_ID_SIIG 0x131f |
1885 | #define PCI_SUBVENDOR_ID_SIIG 0x131f | ||
1875 | #define PCI_DEVICE_ID_SIIG_1S_10x_550 0x1000 | 1886 | #define PCI_DEVICE_ID_SIIG_1S_10x_550 0x1000 |
1876 | #define PCI_DEVICE_ID_SIIG_1S_10x_650 0x1001 | 1887 | #define PCI_DEVICE_ID_SIIG_1S_10x_650 0x1001 |
1877 | #define PCI_DEVICE_ID_SIIG_1S_10x_850 0x1002 | 1888 | #define PCI_DEVICE_ID_SIIG_1S_10x_850 0x1002 |
@@ -1909,6 +1920,7 @@ | |||
1909 | #define PCI_DEVICE_ID_SIIG_2S1P_20x_550 0x2060 | 1920 | #define PCI_DEVICE_ID_SIIG_2S1P_20x_550 0x2060 |
1910 | #define PCI_DEVICE_ID_SIIG_2S1P_20x_650 0x2061 | 1921 | #define PCI_DEVICE_ID_SIIG_2S1P_20x_650 0x2061 |
1911 | #define PCI_DEVICE_ID_SIIG_2S1P_20x_850 0x2062 | 1922 | #define PCI_DEVICE_ID_SIIG_2S1P_20x_850 0x2062 |
1923 | #define PCI_SUBDEVICE_ID_SIIG_QUARTET_SERIAL 0x2050 | ||
1912 | 1924 | ||
1913 | #define PCI_VENDOR_ID_RADISYS 0x1331 | 1925 | #define PCI_VENDOR_ID_RADISYS 0x1331 |
1914 | #define PCI_DEVICE_ID_RADISYS_ENP2611 0x0030 | 1926 | #define PCI_DEVICE_ID_RADISYS_ENP2611 0x0030 |
@@ -2096,6 +2108,8 @@ | |||
2096 | #define PCI_DEVICE_ID_TIGON3_5721 0x1659 | 2108 | #define PCI_DEVICE_ID_TIGON3_5721 0x1659 |
2097 | #define PCI_DEVICE_ID_TIGON3_5705M 0x165d | 2109 | #define PCI_DEVICE_ID_TIGON3_5705M 0x165d |
2098 | #define PCI_DEVICE_ID_TIGON3_5705M_2 0x165e | 2110 | #define PCI_DEVICE_ID_TIGON3_5705M_2 0x165e |
2111 | #define PCI_DEVICE_ID_TIGON3_5780 0x166a | ||
2112 | #define PCI_DEVICE_ID_TIGON3_5780S 0x166b | ||
2099 | #define PCI_DEVICE_ID_TIGON3_5705F 0x166e | 2113 | #define PCI_DEVICE_ID_TIGON3_5705F 0x166e |
2100 | #define PCI_DEVICE_ID_TIGON3_5750 0x1676 | 2114 | #define PCI_DEVICE_ID_TIGON3_5750 0x1676 |
2101 | #define PCI_DEVICE_ID_TIGON3_5751 0x1677 | 2115 | #define PCI_DEVICE_ID_TIGON3_5751 0x1677 |
diff --git a/include/linux/raid/bitmap.h b/include/linux/raid/bitmap.h index e24b74b11150..6213e976eade 100644 --- a/include/linux/raid/bitmap.h +++ b/include/linux/raid/bitmap.h | |||
@@ -262,7 +262,7 @@ void bitmap_write_all(struct bitmap *bitmap); | |||
262 | int bitmap_startwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors); | 262 | int bitmap_startwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors); |
263 | void bitmap_endwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors, | 263 | void bitmap_endwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors, |
264 | int success); | 264 | int success); |
265 | int bitmap_start_sync(struct bitmap *bitmap, sector_t offset, int *blocks); | 265 | int bitmap_start_sync(struct bitmap *bitmap, sector_t offset, int *blocks, int degraded); |
266 | void bitmap_end_sync(struct bitmap *bitmap, sector_t offset, int *blocks, int aborted); | 266 | void bitmap_end_sync(struct bitmap *bitmap, sector_t offset, int *blocks, int aborted); |
267 | void bitmap_close_sync(struct bitmap *bitmap); | 267 | void bitmap_close_sync(struct bitmap *bitmap); |
268 | 268 | ||
diff --git a/include/linux/reboot.h b/include/linux/reboot.h index 2d4dd23168dd..3b3266ff1a95 100644 --- a/include/linux/reboot.h +++ b/include/linux/reboot.h | |||
@@ -55,6 +55,22 @@ extern void machine_shutdown(void); | |||
55 | struct pt_regs; | 55 | struct pt_regs; |
56 | extern void machine_crash_shutdown(struct pt_regs *); | 56 | extern void machine_crash_shutdown(struct pt_regs *); |
57 | 57 | ||
58 | /* | ||
59 | * Architecture independent implemenations of sys_reboot commands. | ||
60 | */ | ||
61 | |||
62 | extern void kernel_restart(char *cmd); | ||
63 | extern void kernel_halt(void); | ||
64 | extern void kernel_power_off(void); | ||
65 | extern void kernel_kexec(void); | ||
66 | |||
67 | /* | ||
68 | * Emergency restart, callable from an interrupt handler. | ||
69 | */ | ||
70 | |||
71 | extern void emergency_restart(void); | ||
72 | #include <asm/emergency-restart.h> | ||
73 | |||
58 | #endif | 74 | #endif |
59 | 75 | ||
60 | #endif /* _LINUX_REBOOT_H */ | 76 | #endif /* _LINUX_REBOOT_H */ |
diff --git a/include/linux/serial.h b/include/linux/serial.h index 00145822fb74..9f2d85284d0b 100644 --- a/include/linux/serial.h +++ b/include/linux/serial.h | |||
@@ -174,9 +174,11 @@ struct serial_icounter_struct { | |||
174 | 174 | ||
175 | 175 | ||
176 | #ifdef __KERNEL__ | 176 | #ifdef __KERNEL__ |
177 | #include <linux/compiler.h> | ||
178 | |||
177 | /* Export to allow PCMCIA to use this - Dave Hinds */ | 179 | /* Export to allow PCMCIA to use this - Dave Hinds */ |
178 | extern int register_serial(struct serial_struct *req); | 180 | extern int __deprecated register_serial(struct serial_struct *req); |
179 | extern void unregister_serial(int line); | 181 | extern void __deprecated unregister_serial(int line); |
180 | 182 | ||
181 | /* Allow architectures to override entries in serial8250_ports[] at run time: */ | 183 | /* Allow architectures to override entries in serial8250_ports[] at run time: */ |
182 | struct uart_port; /* forward declaration */ | 184 | struct uart_port; /* forward declaration */ |
diff --git a/include/linux/serialP.h b/include/linux/serialP.h index 2307f11d8a6b..2b2f35a64d75 100644 --- a/include/linux/serialP.h +++ b/include/linux/serialP.h | |||
@@ -19,7 +19,6 @@ | |||
19 | * For definitions of the flags field, see tty.h | 19 | * For definitions of the flags field, see tty.h |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <linux/version.h> | ||
23 | #include <linux/config.h> | 22 | #include <linux/config.h> |
24 | #include <linux/termios.h> | 23 | #include <linux/termios.h> |
25 | #include <linux/workqueue.h> | 24 | #include <linux/workqueue.h> |
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index d6025af7efac..f6fca8f2f3ca 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
@@ -104,7 +104,7 @@ | |||
104 | #define PORT_MPSC 63 | 104 | #define PORT_MPSC 63 |
105 | 105 | ||
106 | /* TXX9 type number */ | 106 | /* TXX9 type number */ |
107 | #define PORT_TXX9 64 | 107 | #define PORT_TXX9 64 |
108 | 108 | ||
109 | /* NEC VR4100 series SIU/DSIU */ | 109 | /* NEC VR4100 series SIU/DSIU */ |
110 | #define PORT_VR41XX_SIU 65 | 110 | #define PORT_VR41XX_SIU 65 |
@@ -122,6 +122,7 @@ | |||
122 | #ifdef __KERNEL__ | 122 | #ifdef __KERNEL__ |
123 | 123 | ||
124 | #include <linux/config.h> | 124 | #include <linux/config.h> |
125 | #include <linux/compiler.h> | ||
125 | #include <linux/interrupt.h> | 126 | #include <linux/interrupt.h> |
126 | #include <linux/circ_buf.h> | 127 | #include <linux/circ_buf.h> |
127 | #include <linux/spinlock.h> | 128 | #include <linux/spinlock.h> |
@@ -359,8 +360,8 @@ struct tty_driver *uart_console_device(struct console *co, int *index); | |||
359 | */ | 360 | */ |
360 | int uart_register_driver(struct uart_driver *uart); | 361 | int uart_register_driver(struct uart_driver *uart); |
361 | void uart_unregister_driver(struct uart_driver *uart); | 362 | void uart_unregister_driver(struct uart_driver *uart); |
362 | void uart_unregister_port(struct uart_driver *reg, int line); | 363 | void __deprecated uart_unregister_port(struct uart_driver *reg, int line); |
363 | int uart_register_port(struct uart_driver *reg, struct uart_port *port); | 364 | int __deprecated uart_register_port(struct uart_driver *reg, struct uart_port *port); |
364 | int uart_add_one_port(struct uart_driver *reg, struct uart_port *port); | 365 | int uart_add_one_port(struct uart_driver *reg, struct uart_port *port); |
365 | int uart_remove_one_port(struct uart_driver *reg, struct uart_port *port); | 366 | int uart_remove_one_port(struct uart_driver *reg, struct uart_port *port); |
366 | int uart_match_port(struct uart_port *port1, struct uart_port *port2); | 367 | int uart_match_port(struct uart_port *port1, struct uart_port *port2); |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 5d4a990d5577..0061c9470482 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -502,7 +502,8 @@ static inline struct sk_buff *skb_share_check(struct sk_buff *skb, | |||
502 | * | 502 | * |
503 | * %NULL is returned on a memory allocation failure. | 503 | * %NULL is returned on a memory allocation failure. |
504 | */ | 504 | */ |
505 | static inline struct sk_buff *skb_unshare(struct sk_buff *skb, int pri) | 505 | static inline struct sk_buff *skb_unshare(struct sk_buff *skb, |
506 | unsigned int __nocast pri) | ||
506 | { | 507 | { |
507 | might_sleep_if(pri & __GFP_WAIT); | 508 | might_sleep_if(pri & __GFP_WAIT); |
508 | if (skb_cloned(skb)) { | 509 | if (skb_cloned(skb)) { |
diff --git a/include/linux/slab.h b/include/linux/slab.h index 4c8e552471b0..80b2dfde2e80 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h | |||
@@ -111,7 +111,7 @@ static inline void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int n | |||
111 | { | 111 | { |
112 | return kmem_cache_alloc(cachep, flags); | 112 | return kmem_cache_alloc(cachep, flags); |
113 | } | 113 | } |
114 | static inline void *kmalloc_node(size_t size, int flags, int node) | 114 | static inline void *kmalloc_node(size_t size, unsigned int __nocast flags, int node) |
115 | { | 115 | { |
116 | return kmalloc(size, flags); | 116 | return kmalloc(size, flags); |
117 | } | 117 | } |
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index ce19a2aa0b21..e82be96d4906 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
@@ -61,8 +61,7 @@ enum | |||
61 | CTL_DEV=7, /* Devices */ | 61 | CTL_DEV=7, /* Devices */ |
62 | CTL_BUS=8, /* Busses */ | 62 | CTL_BUS=8, /* Busses */ |
63 | CTL_ABI=9, /* Binary emulation */ | 63 | CTL_ABI=9, /* Binary emulation */ |
64 | CTL_CPU=10, /* CPU stuff (speed scaling, etc) */ | 64 | CTL_CPU=10 /* CPU stuff (speed scaling, etc) */ |
65 | CTL_INOTIFY=11 /* Inotify */ | ||
66 | }; | 65 | }; |
67 | 66 | ||
68 | /* CTL_BUS names: */ | 67 | /* CTL_BUS names: */ |
@@ -71,12 +70,12 @@ enum | |||
71 | CTL_BUS_ISA=1 /* ISA */ | 70 | CTL_BUS_ISA=1 /* ISA */ |
72 | }; | 71 | }; |
73 | 72 | ||
74 | /* CTL_INOTIFY names: */ | 73 | /* /proc/sys/fs/inotify/ */ |
75 | enum | 74 | enum |
76 | { | 75 | { |
77 | INOTIFY_MAX_USER_DEVICES=1, /* max number of inotify device instances per user */ | 76 | INOTIFY_MAX_USER_INSTANCES=1, /* max instances per user */ |
78 | INOTIFY_MAX_USER_WATCHES=2, /* max number of inotify watches per user */ | 77 | INOTIFY_MAX_USER_WATCHES=2, /* max watches per user */ |
79 | INOTIFY_MAX_QUEUED_EVENTS=3 /* Max number of queued events per inotify device instance */ | 78 | INOTIFY_MAX_QUEUED_EVENTS=3 /* max queued events per instance */ |
80 | }; | 79 | }; |
81 | 80 | ||
82 | /* CTL_KERN names: */ | 81 | /* CTL_KERN names: */ |
@@ -146,6 +145,7 @@ enum | |||
146 | KERN_BOOTLOADER_TYPE=67, /* int: boot loader type */ | 145 | KERN_BOOTLOADER_TYPE=67, /* int: boot loader type */ |
147 | KERN_RANDOMIZE=68, /* int: randomize virtual address space */ | 146 | KERN_RANDOMIZE=68, /* int: randomize virtual address space */ |
148 | KERN_SETUID_DUMPABLE=69, /* int: behaviour of dumps for setuid core */ | 147 | KERN_SETUID_DUMPABLE=69, /* int: behaviour of dumps for setuid core */ |
148 | KERN_SPIN_RETRY=70, /* int: number of spinlock retries */ | ||
149 | }; | 149 | }; |
150 | 150 | ||
151 | 151 | ||
@@ -685,6 +685,7 @@ enum | |||
685 | FS_XFS=17, /* struct: control xfs parameters */ | 685 | FS_XFS=17, /* struct: control xfs parameters */ |
686 | FS_AIO_NR=18, /* current system-wide number of aio requests */ | 686 | FS_AIO_NR=18, /* current system-wide number of aio requests */ |
687 | FS_AIO_MAX_NR=19, /* system-wide maximum number of aio requests */ | 687 | FS_AIO_MAX_NR=19, /* system-wide maximum number of aio requests */ |
688 | FS_INOTIFY=20, /* inotify submenu */ | ||
688 | }; | 689 | }; |
689 | 690 | ||
690 | /* /proc/sys/fs/quota/ */ | 691 | /* /proc/sys/fs/quota/ */ |
diff --git a/include/linux/tc_ematch/tc_em_meta.h b/include/linux/tc_ematch/tc_em_meta.h index bcb762d93123..081b1ee8516e 100644 --- a/include/linux/tc_ematch/tc_em_meta.h +++ b/include/linux/tc_ematch/tc_em_meta.h | |||
@@ -41,19 +41,14 @@ enum | |||
41 | TCF_META_ID_LOADAVG_1, | 41 | TCF_META_ID_LOADAVG_1, |
42 | TCF_META_ID_LOADAVG_2, | 42 | TCF_META_ID_LOADAVG_2, |
43 | TCF_META_ID_DEV, | 43 | TCF_META_ID_DEV, |
44 | TCF_META_ID_INDEV, | ||
45 | TCF_META_ID_REALDEV, | ||
46 | TCF_META_ID_PRIORITY, | 44 | TCF_META_ID_PRIORITY, |
47 | TCF_META_ID_PROTOCOL, | 45 | TCF_META_ID_PROTOCOL, |
48 | TCF_META_ID_SECURITY, /* obsolete */ | ||
49 | TCF_META_ID_PKTTYPE, | 46 | TCF_META_ID_PKTTYPE, |
50 | TCF_META_ID_PKTLEN, | 47 | TCF_META_ID_PKTLEN, |
51 | TCF_META_ID_DATALEN, | 48 | TCF_META_ID_DATALEN, |
52 | TCF_META_ID_MACLEN, | 49 | TCF_META_ID_MACLEN, |
53 | TCF_META_ID_NFMARK, | 50 | TCF_META_ID_NFMARK, |
54 | TCF_META_ID_TCINDEX, | 51 | TCF_META_ID_TCINDEX, |
55 | TCF_META_ID_TCVERDICT, | ||
56 | TCF_META_ID_TCCLASSID, | ||
57 | TCF_META_ID_RTCLASSID, | 52 | TCF_META_ID_RTCLASSID, |
58 | TCF_META_ID_RTIIF, | 53 | TCF_META_ID_RTIIF, |
59 | TCF_META_ID_SK_FAMILY, | 54 | TCF_META_ID_SK_FAMILY, |
diff --git a/include/linux/uinput.h b/include/linux/uinput.h index 4c2c82336d10..84876077027f 100644 --- a/include/linux/uinput.h +++ b/include/linux/uinput.h | |||
@@ -42,8 +42,7 @@ struct uinput_request { | |||
42 | int code; /* UI_FF_UPLOAD, UI_FF_ERASE */ | 42 | int code; /* UI_FF_UPLOAD, UI_FF_ERASE */ |
43 | 43 | ||
44 | int retval; | 44 | int retval; |
45 | wait_queue_head_t waitq; | 45 | struct completion done; |
46 | int completed; | ||
47 | 46 | ||
48 | union { | 47 | union { |
49 | int effect_id; | 48 | int effect_id; |
@@ -62,7 +61,7 @@ struct uinput_device { | |||
62 | 61 | ||
63 | struct uinput_request *requests[UINPUT_NUM_REQUESTS]; | 62 | struct uinput_request *requests[UINPUT_NUM_REQUESTS]; |
64 | wait_queue_head_t requests_waitq; | 63 | wait_queue_head_t requests_waitq; |
65 | struct semaphore requests_sem; | 64 | spinlock_t requests_lock; |
66 | }; | 65 | }; |
67 | #endif /* __KERNEL__ */ | 66 | #endif /* __KERNEL__ */ |
68 | 67 | ||
diff --git a/include/linux/usb_input.h b/include/linux/usb_input.h new file mode 100644 index 000000000000..716e0cc16043 --- /dev/null +++ b/include/linux/usb_input.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef __USB_INPUT_H | ||
2 | #define __USB_INPUT_H | ||
3 | |||
4 | /* | ||
5 | * Copyright (C) 2005 Dmitry Torokhov | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License version 2 as published by | ||
9 | * the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | #include <linux/usb.h> | ||
13 | #include <linux/input.h> | ||
14 | #include <asm/byteorder.h> | ||
15 | |||
16 | static inline void | ||
17 | usb_to_input_id(const struct usb_device *dev, struct input_id *id) | ||
18 | { | ||
19 | id->bustype = BUS_USB; | ||
20 | id->vendor = le16_to_cpu(dev->descriptor.idVendor); | ||
21 | id->product = le16_to_cpu(dev->descriptor.idProduct); | ||
22 | id->version = le16_to_cpu(dev->descriptor.bcdDevice); | ||
23 | } | ||
24 | |||
25 | #endif | ||
diff --git a/include/linux/watchdog.h b/include/linux/watchdog.h index 88ba0d29f8c8..1192ed8f4fe8 100644 --- a/include/linux/watchdog.h +++ b/include/linux/watchdog.h | |||
@@ -47,4 +47,14 @@ struct watchdog_info { | |||
47 | #define WDIOS_ENABLECARD 0x0002 /* Turn on the watchdog timer */ | 47 | #define WDIOS_ENABLECARD 0x0002 /* Turn on the watchdog timer */ |
48 | #define WDIOS_TEMPPANIC 0x0004 /* Kernel panic on temperature trip */ | 48 | #define WDIOS_TEMPPANIC 0x0004 /* Kernel panic on temperature trip */ |
49 | 49 | ||
50 | #ifdef __KERNEL__ | ||
51 | |||
52 | #ifdef CONFIG_WATCHDOG_NOWAYOUT | ||
53 | #define WATCHDOG_NOWAYOUT 1 | ||
54 | #else | ||
55 | #define WATCHDOG_NOWAYOUT 0 | ||
56 | #endif | ||
57 | |||
58 | #endif /* __KERNEL__ */ | ||
59 | |||
50 | #endif /* ifndef _LINUX_WATCHDOG_H */ | 60 | #endif /* ifndef _LINUX_WATCHDOG_H */ |