diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-i386/mach-visws/do_timer.h | 1 | ||||
-rw-r--r-- | include/asm-ppc/pgtable.h | 26 | ||||
-rw-r--r-- | include/linux/fsnotify.h | 22 | ||||
-rw-r--r-- | include/linux/netlink.h | 4 | ||||
-rw-r--r-- | include/linux/pci.h | 3 | ||||
-rw-r--r-- | include/linux/swap.h | 3 | ||||
-rw-r--r-- | include/linux/zlib.h | 5 | ||||
-rw-r--r-- | include/net/bluetooth/bluetooth.h | 8 |
8 files changed, 31 insertions, 41 deletions
diff --git a/include/asm-i386/mach-visws/do_timer.h b/include/asm-i386/mach-visws/do_timer.h index 33acd50fd9a8..92d638fc8b11 100644 --- a/include/asm-i386/mach-visws/do_timer.h +++ b/include/asm-i386/mach-visws/do_timer.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /* defines for inline arch setup functions */ | 1 | /* defines for inline arch setup functions */ |
2 | 2 | ||
3 | #include <asm/fixmap.h> | 3 | #include <asm/fixmap.h> |
4 | #include <asm/i8259.h> | ||
4 | #include "cobalt.h" | 5 | #include "cobalt.h" |
5 | 6 | ||
6 | static inline void do_timer_interrupt_hook(struct pt_regs *regs) | 7 | static inline void do_timer_interrupt_hook(struct pt_regs *regs) |
diff --git a/include/asm-ppc/pgtable.h b/include/asm-ppc/pgtable.h index c41c7958ea1f..92f30b28b252 100644 --- a/include/asm-ppc/pgtable.h +++ b/include/asm-ppc/pgtable.h | |||
@@ -227,21 +227,21 @@ extern unsigned long ioremap_bot, ioremap_base; | |||
227 | * doesn't support SMP. So we can use this as software bit, like | 227 | * doesn't support SMP. So we can use this as software bit, like |
228 | * DIRTY. | 228 | * DIRTY. |
229 | * | 229 | * |
230 | * PPC Book-E Linux implementation uses PPC HW PTE bit field definition, | 230 | * With the PPC 44x Linux implementation, the 0-11th LSBs of the PTE are used |
231 | * even it doesn't have HW PTE. 0-11th LSB of PTE stand for memory | 231 | * for memory protection related functions (see PTE structure in |
232 | * protection-related function. (See PTE structure in include/asm-ppc/mmu.h) | 232 | * include/asm-ppc/mmu.h). The _PAGE_XXX definitions in this file map to the |
233 | * Definition of _PAGE_XXX in "include/asm-ppc/pagetable.h" stands for | 233 | * above bits. Note that the bit values are CPU specific, not architecture |
234 | * above bits. Note that those bits values are CPU dependent, not | 234 | * specific. |
235 | * architecture. | ||
236 | * | 235 | * |
237 | * Kernel PTE entry holds arch-dependent swp_entry structure under certain | 236 | * The kernel PTE entry holds an arch-dependent swp_entry structure under |
238 | * situation. In other words, in such situation, some portion of PTE bits | 237 | * certain situations. In other words, in such situations some portion of |
239 | * are used as swp_entry. In PPC implementation, 3-24th LSB are shared with | 238 | * the PTE bits are used as a swp_entry. In the PPC implementation, the |
240 | * swp_entry, however 0-2nd three LSB still hold protection values. | 239 | * 3-24th LSB are shared with swp_entry, however the 0-2nd three LSB still |
241 | * That means three protection bits are reserved for both PTE and SWAP | 240 | * hold protection values. That means the three protection bits are |
242 | * entry at the most three LSBs. | 241 | * reserved for both PTE and SWAP entry at the most significant three |
242 | * LSBs. | ||
243 | * | 243 | * |
244 | * There are three protection bits available for SWAP entry; | 244 | * There are three protection bits available for SWAP entry: |
245 | * _PAGE_PRESENT | 245 | * _PAGE_PRESENT |
246 | * _PAGE_FILE | 246 | * _PAGE_FILE |
247 | * _PAGE_HASHPTE (if HW has) | 247 | * _PAGE_HASHPTE (if HW has) |
diff --git a/include/linux/fsnotify.h b/include/linux/fsnotify.h index 1cb4935348d8..602c305c8585 100644 --- a/include/linux/fsnotify.h +++ b/include/linux/fsnotify.h | |||
@@ -44,26 +44,22 @@ static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir, | |||
44 | } | 44 | } |
45 | 45 | ||
46 | /* | 46 | /* |
47 | * fsnotify_unlink - file was unlinked | 47 | * fsnotify_nameremove - a filename was removed from a directory |
48 | */ | 48 | */ |
49 | static inline void fsnotify_unlink(struct dentry *dentry, struct inode *inode, struct inode *dir) | 49 | static inline void fsnotify_nameremove(struct dentry *dentry, int isdir) |
50 | { | 50 | { |
51 | inode_dir_notify(dir, DN_DELETE); | 51 | if (isdir) |
52 | inotify_inode_queue_event(dir, IN_DELETE, 0, dentry->d_name.name); | 52 | isdir = IN_ISDIR; |
53 | inotify_inode_queue_event(inode, IN_DELETE_SELF, 0, NULL); | 53 | dnotify_parent(dentry, DN_DELETE); |
54 | 54 | inotify_dentry_parent_queue_event(dentry, IN_DELETE|isdir, 0, dentry->d_name.name); | |
55 | inotify_inode_is_dead(inode); | ||
56 | } | 55 | } |
57 | 56 | ||
58 | /* | 57 | /* |
59 | * fsnotify_rmdir - directory was removed | 58 | * fsnotify_inoderemove - an inode is going away |
60 | */ | 59 | */ |
61 | static inline void fsnotify_rmdir(struct dentry *dentry, struct inode *inode, | 60 | static inline void fsnotify_inoderemove(struct inode *inode) |
62 | struct inode *dir) | ||
63 | { | 61 | { |
64 | inode_dir_notify(dir, DN_DELETE); | 62 | inotify_inode_queue_event(inode, IN_DELETE_SELF, 0, NULL); |
65 | inotify_inode_queue_event(dir,IN_DELETE|IN_ISDIR,0,dentry->d_name.name); | ||
66 | inotify_inode_queue_event(inode, IN_DELETE_SELF | IN_ISDIR, 0, NULL); | ||
67 | inotify_inode_is_dead(inode); | 63 | inotify_inode_is_dead(inode); |
68 | } | 64 | } |
69 | 65 | ||
diff --git a/include/linux/netlink.h b/include/linux/netlink.h index 70c2a9dc4b2b..6552b71bfa73 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h | |||
@@ -12,15 +12,13 @@ | |||
12 | #define NETLINK_NFLOG 5 /* netfilter/iptables ULOG */ | 12 | #define NETLINK_NFLOG 5 /* netfilter/iptables ULOG */ |
13 | #define NETLINK_XFRM 6 /* ipsec */ | 13 | #define NETLINK_XFRM 6 /* ipsec */ |
14 | #define NETLINK_SELINUX 7 /* SELinux event notifications */ | 14 | #define NETLINK_SELINUX 7 /* SELinux event notifications */ |
15 | #define NETLINK_ARPD 8 | 15 | #define NETLINK_ISCSI 8 /* Open-iSCSI */ |
16 | #define NETLINK_AUDIT 9 /* auditing */ | 16 | #define NETLINK_AUDIT 9 /* auditing */ |
17 | #define NETLINK_FIB_LOOKUP 10 | 17 | #define NETLINK_FIB_LOOKUP 10 |
18 | #define NETLINK_ROUTE6 11 /* af_inet6 route comm channel */ | ||
19 | #define NETLINK_NETFILTER 12 /* netfilter subsystem */ | 18 | #define NETLINK_NETFILTER 12 /* netfilter subsystem */ |
20 | #define NETLINK_IP6_FW 13 | 19 | #define NETLINK_IP6_FW 13 |
21 | #define NETLINK_DNRTMSG 14 /* DECnet routing messages */ | 20 | #define NETLINK_DNRTMSG 14 /* DECnet routing messages */ |
22 | #define NETLINK_KOBJECT_UEVENT 15 /* Kernel messages to userspace */ | 21 | #define NETLINK_KOBJECT_UEVENT 15 /* Kernel messages to userspace */ |
23 | #define NETLINK_TAPBASE 16 /* 16 to 31 are ethertap */ | ||
24 | 22 | ||
25 | #define MAX_LINKS 32 | 23 | #define MAX_LINKS 32 |
26 | 24 | ||
diff --git a/include/linux/pci.h b/include/linux/pci.h index 98bdd95fcee9..8621cf42b46f 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -225,7 +225,6 @@ | |||
225 | #define PCI_PM_CAP_PME_D3cold 0x8000 /* PME# from D3 (cold) */ | 225 | #define PCI_PM_CAP_PME_D3cold 0x8000 /* PME# from D3 (cold) */ |
226 | #define PCI_PM_CTRL 4 /* PM control and status register */ | 226 | #define PCI_PM_CTRL 4 /* PM control and status register */ |
227 | #define PCI_PM_CTRL_STATE_MASK 0x0003 /* Current power state (D0 to D3) */ | 227 | #define PCI_PM_CTRL_STATE_MASK 0x0003 /* Current power state (D0 to D3) */ |
228 | #define PCI_PM_CTRL_NO_SOFT_RESET 0x0004 /* No reset for D3hot->D0 */ | ||
229 | #define PCI_PM_CTRL_PME_ENABLE 0x0100 /* PME pin enable */ | 228 | #define PCI_PM_CTRL_PME_ENABLE 0x0100 /* PME pin enable */ |
230 | #define PCI_PM_CTRL_DATA_SEL_MASK 0x1e00 /* Data select (??) */ | 229 | #define PCI_PM_CTRL_DATA_SEL_MASK 0x1e00 /* Data select (??) */ |
231 | #define PCI_PM_CTRL_DATA_SCALE_MASK 0x6000 /* Data scale (??) */ | 230 | #define PCI_PM_CTRL_DATA_SCALE_MASK 0x6000 /* Data scale (??) */ |
@@ -817,9 +816,7 @@ int pci_set_mwi(struct pci_dev *dev); | |||
817 | void pci_clear_mwi(struct pci_dev *dev); | 816 | void pci_clear_mwi(struct pci_dev *dev); |
818 | int pci_set_dma_mask(struct pci_dev *dev, u64 mask); | 817 | int pci_set_dma_mask(struct pci_dev *dev, u64 mask); |
819 | int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask); | 818 | int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask); |
820 | void pci_update_resource(struct pci_dev *dev, struct resource *res, int resno); | ||
821 | int pci_assign_resource(struct pci_dev *dev, int i); | 819 | int pci_assign_resource(struct pci_dev *dev, int i); |
822 | void pci_restore_bars(struct pci_dev *dev); | ||
823 | 820 | ||
824 | /* ROM control related routines */ | 821 | /* ROM control related routines */ |
825 | void __iomem *pci_map_rom(struct pci_dev *pdev, size_t *size); | 822 | void __iomem *pci_map_rom(struct pci_dev *pdev, size_t *size); |
diff --git a/include/linux/swap.h b/include/linux/swap.h index 239f520cc49e..bfe3e763ccf2 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -7,7 +7,6 @@ | |||
7 | #include <linux/mmzone.h> | 7 | #include <linux/mmzone.h> |
8 | #include <linux/list.h> | 8 | #include <linux/list.h> |
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | #include <linux/pagemap.h> | ||
11 | 10 | ||
12 | #include <asm/atomic.h> | 11 | #include <asm/atomic.h> |
13 | #include <asm/page.h> | 12 | #include <asm/page.h> |
@@ -255,6 +254,8 @@ static inline void put_swap_token(struct mm_struct *mm) | |||
255 | 254 | ||
256 | #define si_swapinfo(val) \ | 255 | #define si_swapinfo(val) \ |
257 | do { (val)->freeswap = (val)->totalswap = 0; } while (0) | 256 | do { (val)->freeswap = (val)->totalswap = 0; } while (0) |
257 | /* only sparc can not include linux/pagemap.h in this file | ||
258 | * so leave page_cache_release and release_pages undeclared... */ | ||
258 | #define free_page_and_swap_cache(page) \ | 259 | #define free_page_and_swap_cache(page) \ |
259 | page_cache_release(page) | 260 | page_cache_release(page) |
260 | #define free_pages_and_swap_cache(pages, nr) \ | 261 | #define free_pages_and_swap_cache(pages, nr) \ |
diff --git a/include/linux/zlib.h b/include/linux/zlib.h index 850076ea14d3..74f7b78c22d2 100644 --- a/include/linux/zlib.h +++ b/include/linux/zlib.h | |||
@@ -506,6 +506,11 @@ extern int zlib_deflateReset (z_streamp strm); | |||
506 | stream state was inconsistent (such as zalloc or state being NULL). | 506 | stream state was inconsistent (such as zalloc or state being NULL). |
507 | */ | 507 | */ |
508 | 508 | ||
509 | static inline unsigned long deflateBound(unsigned long s) | ||
510 | { | ||
511 | return s + ((s + 7) >> 3) + ((s + 63) >> 6) + 11; | ||
512 | } | ||
513 | |||
509 | extern int zlib_deflateParams (z_streamp strm, int level, int strategy); | 514 | extern int zlib_deflateParams (z_streamp strm, int level, int strategy); |
510 | /* | 515 | /* |
511 | Dynamically update the compression level and compression strategy. The | 516 | Dynamically update the compression level and compression strategy. The |
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 42a84c53678b..06b24f637026 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h | |||
@@ -57,12 +57,6 @@ | |||
57 | #define BT_DBG(fmt, arg...) printk(KERN_INFO "%s: " fmt "\n" , __FUNCTION__ , ## arg) | 57 | #define BT_DBG(fmt, arg...) printk(KERN_INFO "%s: " fmt "\n" , __FUNCTION__ , ## arg) |
58 | #define BT_ERR(fmt, arg...) printk(KERN_ERR "%s: " fmt "\n" , __FUNCTION__ , ## arg) | 58 | #define BT_ERR(fmt, arg...) printk(KERN_ERR "%s: " fmt "\n" , __FUNCTION__ , ## arg) |
59 | 59 | ||
60 | #ifdef HCI_DATA_DUMP | ||
61 | #define BT_DMP(buf, len) bt_dump(__FUNCTION__, buf, len) | ||
62 | #else | ||
63 | #define BT_DMP(D...) | ||
64 | #endif | ||
65 | |||
66 | extern struct proc_dir_entry *proc_bt; | 60 | extern struct proc_dir_entry *proc_bt; |
67 | 61 | ||
68 | /* Connection and socket states */ | 62 | /* Connection and socket states */ |
@@ -174,8 +168,6 @@ static inline int skb_frags_no(struct sk_buff *skb) | |||
174 | return n; | 168 | return n; |
175 | } | 169 | } |
176 | 170 | ||
177 | void bt_dump(char *pref, __u8 *buf, int count); | ||
178 | |||
179 | int bt_err(__u16 code); | 171 | int bt_err(__u16 code); |
180 | 172 | ||
181 | #endif /* __BLUETOOTH_H */ | 173 | #endif /* __BLUETOOTH_H */ |