diff options
| author | Steve French <sfrench@us.ibm.com> | 2008-03-14 15:29:18 -0400 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2008-03-14 15:29:18 -0400 |
| commit | ebe8912be214662c8289977fb416c1f015df4a0b (patch) | |
| tree | cb82c552c602e5ae1a4bd8c11bd171bf88a58c35 /include/linux | |
| parent | 50531444fac593c8c8e3ff2e41944d9507bb4665 (diff) | |
| parent | dba92d3bc49c036056a48661d2d8fefe4c78375a (diff) | |
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/Kbuild | 1 | ||||
| -rw-r--r-- | include/linux/ethtool.h | 1 | ||||
| -rw-r--r-- | include/linux/genhd.h | 30 | ||||
| -rw-r--r-- | include/linux/mm.h | 13 | ||||
| -rw-r--r-- | include/linux/netfilter/nfnetlink_compat.h | 2 | ||||
| -rw-r--r-- | include/linux/pci.h | 1 | ||||
| -rw-r--r-- | include/linux/pmu.h | 9 | ||||
| -rw-r--r-- | include/linux/proc_fs.h | 3 |
8 files changed, 24 insertions, 36 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 994df3780007..0fac822c1157 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
| @@ -205,7 +205,6 @@ unifdef-y += futex.h | |||
| 205 | unifdef-y += fs.h | 205 | unifdef-y += fs.h |
| 206 | unifdef-y += gameport.h | 206 | unifdef-y += gameport.h |
| 207 | unifdef-y += generic_serial.h | 207 | unifdef-y += generic_serial.h |
| 208 | unifdef-y += genhd.h | ||
| 209 | unifdef-y += gfs2_ondisk.h | 208 | unifdef-y += gfs2_ondisk.h |
| 210 | unifdef-y += hayesesp.h | 209 | unifdef-y += hayesesp.h |
| 211 | unifdef-y += hdlcdrv.h | 210 | unifdef-y += hdlcdrv.h |
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index fcbe8b640ffb..c8d216357865 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #ifndef _LINUX_ETHTOOL_H | 12 | #ifndef _LINUX_ETHTOOL_H |
| 13 | #define _LINUX_ETHTOOL_H | 13 | #define _LINUX_ETHTOOL_H |
| 14 | 14 | ||
| 15 | #include <linux/types.h> | ||
| 15 | 16 | ||
| 16 | /* This should work for both 32 and 64 bit userland. */ | 17 | /* This should work for both 32 and 64 bit userland. */ |
| 17 | struct ethtool_cmd { | 18 | struct ethtool_cmd { |
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 32c2ac49a070..ecd2bf63fc84 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h | |||
| @@ -55,24 +55,6 @@ enum { | |||
| 55 | UNIXWARE_PARTITION = 0x63, /* Same as GNU_HURD and SCO Unix */ | 55 | UNIXWARE_PARTITION = 0x63, /* Same as GNU_HURD and SCO Unix */ |
| 56 | }; | 56 | }; |
| 57 | 57 | ||
| 58 | #ifndef __KERNEL__ | ||
| 59 | |||
| 60 | struct partition { | ||
| 61 | unsigned char boot_ind; /* 0x80 - active */ | ||
| 62 | unsigned char head; /* starting head */ | ||
| 63 | unsigned char sector; /* starting sector */ | ||
| 64 | unsigned char cyl; /* starting cylinder */ | ||
| 65 | unsigned char sys_ind; /* What partition type */ | ||
| 66 | unsigned char end_head; /* end head */ | ||
| 67 | unsigned char end_sector; /* end sector */ | ||
| 68 | unsigned char end_cyl; /* end cylinder */ | ||
| 69 | unsigned int start_sect; /* starting sector counting from 0 */ | ||
| 70 | unsigned int nr_sects; /* nr of sectors in partition */ | ||
| 71 | } __attribute__((packed)); | ||
| 72 | |||
| 73 | #endif | ||
| 74 | |||
| 75 | #ifdef __KERNEL__ | ||
| 76 | #include <linux/major.h> | 58 | #include <linux/major.h> |
| 77 | #include <linux/device.h> | 59 | #include <linux/device.h> |
| 78 | #include <linux/smp.h> | 60 | #include <linux/smp.h> |
| @@ -228,7 +210,7 @@ static inline void part_stat_set_all(struct hd_struct *part, int value) { | |||
| 228 | sizeof(struct disk_stats)); | 210 | sizeof(struct disk_stats)); |
| 229 | } | 211 | } |
| 230 | 212 | ||
| 231 | #else | 213 | #else /* !CONFIG_SMP */ |
| 232 | #define __disk_stat_add(gendiskp, field, addnd) \ | 214 | #define __disk_stat_add(gendiskp, field, addnd) \ |
| 233 | (gendiskp->dkstats.field += addnd) | 215 | (gendiskp->dkstats.field += addnd) |
| 234 | #define disk_stat_read(gendiskp, field) (gendiskp->dkstats.field) | 216 | #define disk_stat_read(gendiskp, field) (gendiskp->dkstats.field) |
| @@ -256,7 +238,7 @@ static inline void part_stat_set_all(struct hd_struct *part, int value) | |||
| 256 | memset(&part->dkstats, value, sizeof(struct disk_stats)); | 238 | memset(&part->dkstats, value, sizeof(struct disk_stats)); |
| 257 | } | 239 | } |
| 258 | 240 | ||
| 259 | #endif | 241 | #endif /* CONFIG_SMP */ |
| 260 | 242 | ||
| 261 | #define disk_stat_add(gendiskp, field, addnd) \ | 243 | #define disk_stat_add(gendiskp, field, addnd) \ |
| 262 | do { \ | 244 | do { \ |
| @@ -395,8 +377,6 @@ static inline void set_capacity(struct gendisk *disk, sector_t size) | |||
| 395 | disk->capacity = size; | 377 | disk->capacity = size; |
| 396 | } | 378 | } |
| 397 | 379 | ||
| 398 | #endif /* __KERNEL__ */ | ||
| 399 | |||
| 400 | #ifdef CONFIG_SOLARIS_X86_PARTITION | 380 | #ifdef CONFIG_SOLARIS_X86_PARTITION |
| 401 | 381 | ||
| 402 | #define SOLARIS_X86_NUMSLICE 16 | 382 | #define SOLARIS_X86_NUMSLICE 16 |
| @@ -540,8 +520,6 @@ struct unixware_disklabel { | |||
| 540 | # define MINIX_NR_SUBPARTITIONS 4 | 520 | # define MINIX_NR_SUBPARTITIONS 4 |
| 541 | #endif /* CONFIG_MINIX_SUBPARTITION */ | 521 | #endif /* CONFIG_MINIX_SUBPARTITION */ |
| 542 | 522 | ||
| 543 | #ifdef __KERNEL__ | ||
| 544 | |||
| 545 | #define ADDPART_FLAG_NONE 0 | 523 | #define ADDPART_FLAG_NONE 0 |
| 546 | #define ADDPART_FLAG_RAID 1 | 524 | #define ADDPART_FLAG_RAID 1 |
| 547 | #define ADDPART_FLAG_WHOLEDISK 2 | 525 | #define ADDPART_FLAG_WHOLEDISK 2 |
| @@ -570,8 +548,6 @@ static inline struct block_device *bdget_disk(struct gendisk *disk, int index) | |||
| 570 | return bdget(MKDEV(disk->major, disk->first_minor) + index); | 548 | return bdget(MKDEV(disk->major, disk->first_minor) + index); |
| 571 | } | 549 | } |
| 572 | 550 | ||
| 573 | #endif | ||
| 574 | |||
| 575 | #else /* CONFIG_BLOCK */ | 551 | #else /* CONFIG_BLOCK */ |
| 576 | 552 | ||
| 577 | static inline void printk_all_partitions(void) { } | 553 | static inline void printk_all_partitions(void) { } |
| @@ -584,4 +560,4 @@ static inline dev_t blk_lookup_devt(const char *name) | |||
| 584 | 560 | ||
| 585 | #endif /* CONFIG_BLOCK */ | 561 | #endif /* CONFIG_BLOCK */ |
| 586 | 562 | ||
| 587 | #endif | 563 | #endif /* _LINUX_GENHD_H */ |
diff --git a/include/linux/mm.h b/include/linux/mm.h index 3f3ccfe42de0..b695875d63e3 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
| @@ -235,15 +235,22 @@ static inline int get_page_unless_zero(struct page *page) | |||
| 235 | struct page *vmalloc_to_page(const void *addr); | 235 | struct page *vmalloc_to_page(const void *addr); |
| 236 | unsigned long vmalloc_to_pfn(const void *addr); | 236 | unsigned long vmalloc_to_pfn(const void *addr); |
| 237 | 237 | ||
| 238 | #ifdef CONFIG_MMU | 238 | /* |
| 239 | /* Determine if an address is within the vmalloc range */ | 239 | * Determine if an address is within the vmalloc range |
| 240 | * | ||
| 241 | * On nommu, vmalloc/vfree wrap through kmalloc/kfree directly, so there | ||
| 242 | * is no special casing required. | ||
| 243 | */ | ||
| 240 | static inline int is_vmalloc_addr(const void *x) | 244 | static inline int is_vmalloc_addr(const void *x) |
| 241 | { | 245 | { |
| 246 | #ifdef CONFIG_MMU | ||
| 242 | unsigned long addr = (unsigned long)x; | 247 | unsigned long addr = (unsigned long)x; |
| 243 | 248 | ||
| 244 | return addr >= VMALLOC_START && addr < VMALLOC_END; | 249 | return addr >= VMALLOC_START && addr < VMALLOC_END; |
| 245 | } | 250 | #else |
| 251 | return 0; | ||
| 246 | #endif | 252 | #endif |
| 253 | } | ||
| 247 | 254 | ||
| 248 | static inline struct page *compound_head(struct page *page) | 255 | static inline struct page *compound_head(struct page *page) |
| 249 | { | 256 | { |
diff --git a/include/linux/netfilter/nfnetlink_compat.h b/include/linux/netfilter/nfnetlink_compat.h index 02a42d875cf7..e1451760c9cd 100644 --- a/include/linux/netfilter/nfnetlink_compat.h +++ b/include/linux/netfilter/nfnetlink_compat.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #ifndef _NFNETLINK_COMPAT_H | 1 | #ifndef _NFNETLINK_COMPAT_H |
| 2 | #define _NFNETLINK_COMPAT_H | 2 | #define _NFNETLINK_COMPAT_H |
| 3 | #ifndef __KERNEL | 3 | #ifndef __KERNEL__ |
| 4 | /* Old nfnetlink macros for userspace */ | 4 | /* Old nfnetlink macros for userspace */ |
| 5 | 5 | ||
| 6 | /* nfnetlink groups: Up to 32 maximum */ | 6 | /* nfnetlink groups: Up to 32 maximum */ |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 38eff1947750..9010f5458767 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -278,6 +278,7 @@ struct pci_bus { | |||
| 278 | struct device dev; | 278 | struct device dev; |
| 279 | struct bin_attribute *legacy_io; /* legacy I/O for this bus */ | 279 | struct bin_attribute *legacy_io; /* legacy I/O for this bus */ |
| 280 | struct bin_attribute *legacy_mem; /* legacy mem */ | 280 | struct bin_attribute *legacy_mem; /* legacy mem */ |
| 281 | unsigned int is_added:1; | ||
| 281 | }; | 282 | }; |
| 282 | 283 | ||
| 283 | #define pci_bus_b(n) list_entry(n, struct pci_bus, node) | 284 | #define pci_bus_b(n) list_entry(n, struct pci_bus, node) |
diff --git a/include/linux/pmu.h b/include/linux/pmu.h index 4c5f65392d36..cafe98d96948 100644 --- a/include/linux/pmu.h +++ b/include/linux/pmu.h | |||
| @@ -147,8 +147,15 @@ extern void pmu_wait_complete(struct adb_request *req); | |||
| 147 | /* For use before switching interrupts off for a long time; | 147 | /* For use before switching interrupts off for a long time; |
| 148 | * warning: not stackable | 148 | * warning: not stackable |
| 149 | */ | 149 | */ |
| 150 | #if defined(CONFIG_ADB_PMU) | ||
| 150 | extern void pmu_suspend(void); | 151 | extern void pmu_suspend(void); |
| 151 | extern void pmu_resume(void); | 152 | extern void pmu_resume(void); |
| 153 | #else | ||
| 154 | static inline void pmu_suspend(void) | ||
| 155 | {} | ||
| 156 | static inline void pmu_resume(void) | ||
| 157 | {} | ||
| 158 | #endif | ||
| 152 | 159 | ||
| 153 | extern void pmu_enable_irled(int on); | 160 | extern void pmu_enable_irled(int on); |
| 154 | 161 | ||
| @@ -192,7 +199,7 @@ extern unsigned int pmu_power_flags; | |||
| 192 | extern void pmu_backlight_init(void); | 199 | extern void pmu_backlight_init(void); |
| 193 | 200 | ||
| 194 | /* some code needs to know if the PMU was suspended for hibernation */ | 201 | /* some code needs to know if the PMU was suspended for hibernation */ |
| 195 | #if defined(CONFIG_PM_SLEEP) && defined(CONFIG_PPC32) | 202 | #if defined(CONFIG_SUSPEND) && defined(CONFIG_PPC32) |
| 196 | extern int pmu_sys_suspended; | 203 | extern int pmu_sys_suspended; |
| 197 | #else | 204 | #else |
| 198 | /* if power management is not configured it can't be suspended */ | 205 | /* if power management is not configured it can't be suspended */ |
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index d9a9e718ad19..9b6c935f69cf 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h | |||
| @@ -50,8 +50,6 @@ typedef int (read_proc_t)(char *page, char **start, off_t off, | |||
| 50 | typedef int (write_proc_t)(struct file *file, const char __user *buffer, | 50 | typedef int (write_proc_t)(struct file *file, const char __user *buffer, |
| 51 | unsigned long count, void *data); | 51 | unsigned long count, void *data); |
| 52 | typedef int (get_info_t)(char *, char **, off_t, int); | 52 | typedef int (get_info_t)(char *, char **, off_t, int); |
| 53 | typedef struct proc_dir_entry *(shadow_proc_t)(struct task_struct *task, | ||
| 54 | struct proc_dir_entry *pde); | ||
| 55 | 53 | ||
| 56 | struct proc_dir_entry { | 54 | struct proc_dir_entry { |
| 57 | unsigned int low_ino; | 55 | unsigned int low_ino; |
| @@ -82,7 +80,6 @@ struct proc_dir_entry { | |||
| 82 | int pde_users; /* number of callers into module in progress */ | 80 | int pde_users; /* number of callers into module in progress */ |
| 83 | spinlock_t pde_unload_lock; /* proc_fops checks and pde_users bumps */ | 81 | spinlock_t pde_unload_lock; /* proc_fops checks and pde_users bumps */ |
| 84 | struct completion *pde_unload_completion; | 82 | struct completion *pde_unload_completion; |
| 85 | shadow_proc_t *shadow_proc; | ||
| 86 | }; | 83 | }; |
| 87 | 84 | ||
| 88 | struct kcore_list { | 85 | struct kcore_list { |
