diff options
| author | David Woodhouse <David.Woodhouse@intel.com> | 2009-06-08 07:21:27 -0400 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-06-08 07:21:27 -0400 |
| commit | e635a01ea0a16cf7cd31ecd2305870385dca9be6 (patch) | |
| tree | c7153e7dee5caf6ac90d85694ff27e4d0b606290 /include/linux | |
| parent | 143070e74630b9557e1bb64d899ff2cc5a1dcb48 (diff) | |
| parent | 947391cfbaa3b08558844c0b187bcd0223c3f660 (diff) | |
Merge branch 'next-mtd' of git://aeryn.fluff.org.uk/bjdooks/linux
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/Kbuild | 2 | ||||
| -rw-r--r-- | include/linux/amba/bus.h | 2 | ||||
| -rw-r--r-- | include/linux/ata.h | 28 | ||||
| -rw-r--r-- | include/linux/cred.h | 1 | ||||
| -rw-r--r-- | include/linux/device.h | 9 | ||||
| -rw-r--r-- | include/linux/dmaengine.h | 6 | ||||
| -rw-r--r-- | include/linux/fs.h | 4 | ||||
| -rw-r--r-- | include/linux/ide.h | 2 | ||||
| -rw-r--r-- | include/linux/input.h | 1 | ||||
| -rw-r--r-- | include/linux/mmzone.h | 26 | ||||
| -rw-r--r-- | include/linux/namei.h | 1 | ||||
| -rw-r--r-- | include/linux/netfilter/xt_LED.h | 2 | ||||
| -rw-r--r-- | include/linux/netfilter/xt_cluster.h | 2 | ||||
| -rw-r--r-- | include/linux/pci_ids.h | 2 | ||||
| -rw-r--r-- | include/linux/platform_device.h | 1 | ||||
| -rw-r--r-- | include/linux/reiserfs_fs_sb.h | 3 | ||||
| -rw-r--r-- | include/linux/reiserfs_xattr.h | 7 | ||||
| -rw-r--r-- | include/linux/romfs_fs.h | 5 | ||||
| -rw-r--r-- | include/linux/swap.h | 5 | ||||
| -rw-r--r-- | include/linux/syscalls.h | 1 | ||||
| -rw-r--r-- | include/linux/writeback.h | 2 |
21 files changed, 85 insertions, 27 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index ca9b9b9bd331..3f0eaa397ef5 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
| @@ -138,6 +138,7 @@ header-y += qnxtypes.h | |||
| 138 | header-y += radeonfb.h | 138 | header-y += radeonfb.h |
| 139 | header-y += raw.h | 139 | header-y += raw.h |
| 140 | header-y += resource.h | 140 | header-y += resource.h |
| 141 | header-y += romfs_fs.h | ||
| 141 | header-y += rose.h | 142 | header-y += rose.h |
| 142 | header-y += serial_reg.h | 143 | header-y += serial_reg.h |
| 143 | header-y += smbno.h | 144 | header-y += smbno.h |
| @@ -314,7 +315,6 @@ unifdef-y += irqnr.h | |||
| 314 | unifdef-y += reboot.h | 315 | unifdef-y += reboot.h |
| 315 | unifdef-y += reiserfs_fs.h | 316 | unifdef-y += reiserfs_fs.h |
| 316 | unifdef-y += reiserfs_xattr.h | 317 | unifdef-y += reiserfs_xattr.h |
| 317 | unifdef-y += romfs_fs.h | ||
| 318 | unifdef-y += route.h | 318 | unifdef-y += route.h |
| 319 | unifdef-y += rtc.h | 319 | unifdef-y += rtc.h |
| 320 | unifdef-y += rtnetlink.h | 320 | unifdef-y += rtnetlink.h |
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index 51e6e54b2aa1..9b93cafa82a0 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h | |||
| @@ -28,7 +28,7 @@ struct amba_id { | |||
| 28 | 28 | ||
| 29 | struct amba_driver { | 29 | struct amba_driver { |
| 30 | struct device_driver drv; | 30 | struct device_driver drv; |
| 31 | int (*probe)(struct amba_device *, void *); | 31 | int (*probe)(struct amba_device *, struct amba_id *); |
| 32 | int (*remove)(struct amba_device *); | 32 | int (*remove)(struct amba_device *); |
| 33 | void (*shutdown)(struct amba_device *); | 33 | void (*shutdown)(struct amba_device *); |
| 34 | int (*suspend)(struct amba_device *, pm_message_t); | 34 | int (*suspend)(struct amba_device *, pm_message_t); |
diff --git a/include/linux/ata.h b/include/linux/ata.h index cb79b7a208e1..915da43edee1 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h | |||
| @@ -730,6 +730,34 @@ static inline int ata_id_has_unload(const u16 *id) | |||
| 730 | return 0; | 730 | return 0; |
| 731 | } | 731 | } |
| 732 | 732 | ||
| 733 | static inline int ata_id_form_factor(const u16 *id) | ||
| 734 | { | ||
| 735 | u16 val = id[168]; | ||
| 736 | |||
| 737 | if (ata_id_major_version(id) < 7 || val == 0 || val == 0xffff) | ||
| 738 | return 0; | ||
| 739 | |||
| 740 | val &= 0xf; | ||
| 741 | |||
| 742 | if (val > 5) | ||
| 743 | return 0; | ||
| 744 | |||
| 745 | return val; | ||
| 746 | } | ||
| 747 | |||
| 748 | static inline int ata_id_rotation_rate(const u16 *id) | ||
| 749 | { | ||
| 750 | u16 val = id[217]; | ||
| 751 | |||
| 752 | if (ata_id_major_version(id) < 7 || val == 0 || val == 0xffff) | ||
| 753 | return 0; | ||
| 754 | |||
| 755 | if (val > 1 && val < 0x401) | ||
| 756 | return 0; | ||
| 757 | |||
| 758 | return val; | ||
| 759 | } | ||
| 760 | |||
| 733 | static inline int ata_id_has_trim(const u16 *id) | 761 | static inline int ata_id_has_trim(const u16 *id) |
| 734 | { | 762 | { |
| 735 | if (ata_id_major_version(id) >= 7 && | 763 | if (ata_id_major_version(id) >= 7 && |
diff --git a/include/linux/cred.h b/include/linux/cred.h index 3282ee4318e7..4fa999696310 100644 --- a/include/linux/cred.h +++ b/include/linux/cred.h | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #define _LINUX_CRED_H | 13 | #define _LINUX_CRED_H |
| 14 | 14 | ||
| 15 | #include <linux/capability.h> | 15 | #include <linux/capability.h> |
| 16 | #include <linux/init.h> | ||
| 16 | #include <linux/key.h> | 17 | #include <linux/key.h> |
| 17 | #include <asm/atomic.h> | 18 | #include <asm/atomic.h> |
| 18 | 19 | ||
diff --git a/include/linux/device.h b/include/linux/device.h index 6a69caaac18a..5d5c197bad45 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -384,13 +384,8 @@ struct device { | |||
| 384 | struct device_driver *driver; /* which driver has allocated this | 384 | struct device_driver *driver; /* which driver has allocated this |
| 385 | device */ | 385 | device */ |
| 386 | void *driver_data; /* data private to the driver */ | 386 | void *driver_data; /* data private to the driver */ |
| 387 | 387 | void *platform_data; /* Platform specific data, device | |
| 388 | void *platform_data; /* We will remove platform_data | 388 | core doesn't touch it */ |
| 389 | field if all platform devices | ||
| 390 | pass its platform specific data | ||
| 391 | from platform_device->platform_data, | ||
| 392 | other kind of devices should not | ||
| 393 | use platform_data. */ | ||
| 394 | struct dev_pm_info power; | 389 | struct dev_pm_info power; |
| 395 | 390 | ||
| 396 | #ifdef CONFIG_NUMA | 391 | #ifdef CONFIG_NUMA |
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 2e2aa3df170c..ffefba81c818 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
| @@ -78,12 +78,18 @@ enum dma_transaction_type { | |||
| 78 | * dependency chains | 78 | * dependency chains |
| 79 | * @DMA_COMPL_SKIP_SRC_UNMAP - set to disable dma-unmapping the source buffer(s) | 79 | * @DMA_COMPL_SKIP_SRC_UNMAP - set to disable dma-unmapping the source buffer(s) |
| 80 | * @DMA_COMPL_SKIP_DEST_UNMAP - set to disable dma-unmapping the destination(s) | 80 | * @DMA_COMPL_SKIP_DEST_UNMAP - set to disable dma-unmapping the destination(s) |
| 81 | * @DMA_COMPL_SRC_UNMAP_SINGLE - set to do the source dma-unmapping as single | ||
| 82 | * (if not set, do the source dma-unmapping as page) | ||
| 83 | * @DMA_COMPL_DEST_UNMAP_SINGLE - set to do the destination dma-unmapping as single | ||
| 84 | * (if not set, do the destination dma-unmapping as page) | ||
| 81 | */ | 85 | */ |
| 82 | enum dma_ctrl_flags { | 86 | enum dma_ctrl_flags { |
| 83 | DMA_PREP_INTERRUPT = (1 << 0), | 87 | DMA_PREP_INTERRUPT = (1 << 0), |
| 84 | DMA_CTRL_ACK = (1 << 1), | 88 | DMA_CTRL_ACK = (1 << 1), |
| 85 | DMA_COMPL_SKIP_SRC_UNMAP = (1 << 2), | 89 | DMA_COMPL_SKIP_SRC_UNMAP = (1 << 2), |
| 86 | DMA_COMPL_SKIP_DEST_UNMAP = (1 << 3), | 90 | DMA_COMPL_SKIP_DEST_UNMAP = (1 << 3), |
| 91 | DMA_COMPL_SRC_UNMAP_SINGLE = (1 << 4), | ||
| 92 | DMA_COMPL_DEST_UNMAP_SINGLE = (1 << 5), | ||
| 87 | }; | 93 | }; |
| 88 | 94 | ||
| 89 | /** | 95 | /** |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 5bed436f4353..3b534e527e09 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -1775,6 +1775,7 @@ void kill_block_super(struct super_block *sb); | |||
| 1775 | void kill_anon_super(struct super_block *sb); | 1775 | void kill_anon_super(struct super_block *sb); |
| 1776 | void kill_litter_super(struct super_block *sb); | 1776 | void kill_litter_super(struct super_block *sb); |
| 1777 | void deactivate_super(struct super_block *sb); | 1777 | void deactivate_super(struct super_block *sb); |
| 1778 | void deactivate_locked_super(struct super_block *sb); | ||
| 1778 | int set_anon_super(struct super_block *s, void *data); | 1779 | int set_anon_super(struct super_block *s, void *data); |
| 1779 | struct super_block *sget(struct file_system_type *type, | 1780 | struct super_block *sget(struct file_system_type *type, |
| 1780 | int (*test)(struct super_block *,void *), | 1781 | int (*test)(struct super_block *,void *), |
| @@ -2117,7 +2118,7 @@ extern struct file *create_write_pipe(int flags); | |||
| 2117 | extern void free_write_pipe(struct file *); | 2118 | extern void free_write_pipe(struct file *); |
| 2118 | 2119 | ||
| 2119 | extern struct file *do_filp_open(int dfd, const char *pathname, | 2120 | extern struct file *do_filp_open(int dfd, const char *pathname, |
| 2120 | int open_flag, int mode); | 2121 | int open_flag, int mode, int acc_mode); |
| 2121 | extern int may_open(struct path *, int, int); | 2122 | extern int may_open(struct path *, int, int); |
| 2122 | 2123 | ||
| 2123 | extern int kernel_read(struct file *, unsigned long, char *, unsigned long); | 2124 | extern int kernel_read(struct file *, unsigned long, char *, unsigned long); |
| @@ -2367,6 +2368,7 @@ extern void file_update_time(struct file *file); | |||
| 2367 | |||
