diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 15 | ||||
| -rw-r--r-- | include/linux/freezer.h | 2 | ||||
| -rw-r--r-- | include/linux/fs.h | 2 | ||||
| -rw-r--r-- | include/linux/if_team.h | 10 | ||||
| -rw-r--r-- | include/linux/kexec.h | 2 | ||||
| -rw-r--r-- | include/linux/mfd/mcp.h | 12 | ||||
| -rw-r--r-- | include/linux/mfd/ucb1x00.h | 5 | ||||
| -rw-r--r-- | include/linux/migrate.h | 14 | ||||
| -rw-r--r-- | include/linux/migrate_mode.h | 16 | ||||
| -rw-r--r-- | include/linux/mlx4/device.h | 1 | ||||
| -rw-r--r-- | include/linux/mod_devicetable.h | 11 | ||||
| -rw-r--r-- | include/linux/mtd/mtd.h | 4 | ||||
| -rw-r--r-- | include/linux/quota.h | 6 | ||||
| -rw-r--r-- | include/linux/res_counter.h | 11 | ||||
| -rw-r--r-- | include/linux/sched.h | 4 | ||||
| -rw-r--r-- | include/linux/shmem_fs.h | 1 | ||||
| -rw-r--r-- | include/linux/snmp.h | 1 | ||||
| -rw-r--r-- | include/linux/suspend.h | 19 | ||||
| -rw-r--r-- | include/linux/swap.h | 2 | ||||
| -rw-r--r-- | include/linux/sysdev.h | 164 | ||||
| -rw-r--r-- | include/linux/thermal.h | 4 | ||||
| -rw-r--r-- | include/linux/usb.h | 1 | ||||
| -rw-r--r-- | include/linux/usb/langwell_otg.h | 139 |
23 files changed, 91 insertions, 355 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index d28bd8295677..f62e21689fdd 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -277,11 +277,11 @@ struct device *driver_find_device(struct device_driver *drv, | |||
| 277 | 277 | ||
| 278 | /** | 278 | /** |
| 279 | * struct subsys_interface - interfaces to device functions | 279 | * struct subsys_interface - interfaces to device functions |
| 280 | * @name name of the device function | 280 | * @name: name of the device function |
| 281 | * @subsystem subsytem of the devices to attach to | 281 | * @subsys: subsytem of the devices to attach to |
| 282 | * @node the list of functions registered at the subsystem | 282 | * @node: the list of functions registered at the subsystem |
| 283 | * @add device hookup to device function handler | 283 | * @add_dev: device hookup to device function handler |
| 284 | * @remove device hookup to device function handler | 284 | * @remove_dev: device hookup to device function handler |
| 285 | * | 285 | * |
| 286 | * Simple interfaces attached to a subsystem. Multiple interfaces can | 286 | * Simple interfaces attached to a subsystem. Multiple interfaces can |
| 287 | * attach to a subsystem and its devices. Unlike drivers, they do not | 287 | * attach to a subsystem and its devices. Unlike drivers, they do not |
| @@ -610,6 +610,7 @@ struct device_dma_parameters { | |||
| 610 | * @archdata: For arch-specific additions. | 610 | * @archdata: For arch-specific additions. |
| 611 | * @of_node: Associated device tree node. | 611 | * @of_node: Associated device tree node. |
| 612 | * @devt: For creating the sysfs "dev". | 612 | * @devt: For creating the sysfs "dev". |
| 613 | * @id: device instance | ||
| 613 | * @devres_lock: Spinlock to protect the resource of the device. | 614 | * @devres_lock: Spinlock to protect the resource of the device. |
| 614 | * @devres_head: The resources list of the device. | 615 | * @devres_head: The resources list of the device. |
| 615 | * @knode_class: The node used to add the device to the class list. | 616 | * @knode_class: The node used to add the device to the class list. |
| @@ -1001,6 +1002,10 @@ extern long sysfs_deprecated; | |||
| 1001 | * Each module may only use this macro once, and calling it replaces | 1002 | * Each module may only use this macro once, and calling it replaces |
| 1002 | * module_init() and module_exit(). | 1003 | * module_init() and module_exit(). |
| 1003 | * | 1004 | * |
| 1005 | * @__driver: driver name | ||
| 1006 | * @__register: register function for this driver type | ||
| 1007 | * @__unregister: unregister function for this driver type | ||
| 1008 | * | ||
| 1004 | * Use this macro to construct bus specific macros for registering | 1009 | * Use this macro to construct bus specific macros for registering |
| 1005 | * drivers, and do not use it on its own. | 1010 | * drivers, and do not use it on its own. |
| 1006 | */ | 1011 | */ |
diff --git a/include/linux/freezer.h b/include/linux/freezer.h index 0ab54e16a91f..d09af4b67cf1 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h | |||
| @@ -39,6 +39,7 @@ extern bool __refrigerator(bool check_kthr_stop); | |||
| 39 | extern int freeze_processes(void); | 39 | extern int freeze_processes(void); |
| 40 | extern int freeze_kernel_threads(void); | 40 | extern int freeze_kernel_threads(void); |
| 41 | extern void thaw_processes(void); | 41 | extern void thaw_processes(void); |
| 42 | extern void thaw_kernel_threads(void); | ||
| 42 | 43 | ||
| 43 | static inline bool try_to_freeze(void) | 44 | static inline bool try_to_freeze(void) |
| 44 | { | 45 | { |
| @@ -174,6 +175,7 @@ static inline bool __refrigerator(bool check_kthr_stop) { return false; } | |||
| 174 | static inline int freeze_processes(void) { return -ENOSYS; } | 175 | static inline int freeze_processes(void) { return -ENOSYS; } |
| 175 | static inline int freeze_kernel_threads(void) { return -ENOSYS; } | 176 | static inline int freeze_kernel_threads(void) { return -ENOSYS; } |
| 176 | static inline void thaw_processes(void) {} | 177 | static inline void thaw_processes(void) {} |
| 178 | static inline void thaw_kernel_threads(void) {} | ||
| 177 | 179 | ||
| 178 | static inline bool try_to_freeze(void) { return false; } | 180 | static inline bool try_to_freeze(void) { return false; } |
| 179 | 181 | ||
diff --git a/include/linux/fs.h b/include/linux/fs.h index 0244082d42c5..386da09f229d 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -396,6 +396,7 @@ struct inodes_stat_t { | |||
| 396 | #include <linux/rculist_bl.h> | 396 | #include <linux/rculist_bl.h> |
| 397 | #include <linux/atomic.h> | 397 | #include <linux/atomic.h> |
| 398 | #include <linux/shrinker.h> | 398 | #include <linux/shrinker.h> |
| 399 | #include <linux/migrate_mode.h> | ||
| 399 | 400 | ||
| 400 | #include <asm/byteorder.h> | 401 | #include <asm/byteorder.h> |
| 401 | 402 | ||
| @@ -526,7 +527,6 @@ enum positive_aop_returns { | |||
| 526 | struct page; | 527 | struct page; |
| 527 | struct address_space; | 528 | struct address_space; |
| 528 | struct writeback_control; | 529 | struct writeback_control; |
| 529 | enum migrate_mode; | ||
| 530 | 530 | ||
| 531 | struct iov_iter { | 531 | struct iov_iter { |
| 532 | const struct iovec *iov; | 532 | const struct iovec *iov; |
diff --git a/include/linux/if_team.h b/include/linux/if_team.h index 828181fbad5d..58404b0c5010 100644 --- a/include/linux/if_team.h +++ b/include/linux/if_team.h | |||
| @@ -46,6 +46,10 @@ struct team_port { | |||
| 46 | u32 speed; | 46 | u32 speed; |
| 47 | u8 duplex; | 47 | u8 duplex; |
| 48 | 48 | ||
| 49 | /* Custom gennetlink interface related flags */ | ||
| 50 | bool changed; | ||
| 51 | bool removed; | ||
| 52 | |||
| 49 | struct rcu_head rcu; | 53 | struct rcu_head rcu; |
| 50 | }; | 54 | }; |
| 51 | 55 | ||
| @@ -72,6 +76,10 @@ struct team_option { | |||
| 72 | enum team_option_type type; | 76 | enum team_option_type type; |
| 73 | int (*getter)(struct team *team, void *arg); | 77 | int (*getter)(struct team *team, void *arg); |
| 74 | int (*setter)(struct team *team, void *arg); | 78 | int (*setter)(struct team *team, void *arg); |
| 79 | |||
| 80 | /* Custom gennetlink interface related flags */ | ||
| 81 | bool changed; | ||
| 82 | bool removed; | ||
| 75 | }; | 83 | }; |
| 76 | 84 | ||
| 77 | struct team_mode { | 85 | struct team_mode { |
| @@ -207,6 +215,7 @@ enum { | |||
| 207 | TEAM_ATTR_OPTION_CHANGED, /* flag */ | 215 | TEAM_ATTR_OPTION_CHANGED, /* flag */ |
| 208 | TEAM_ATTR_OPTION_TYPE, /* u8 */ | 216 | TEAM_ATTR_OPTION_TYPE, /* u8 */ |
| 209 | TEAM_ATTR_OPTION_DATA, /* dynamic */ | 217 | TEAM_ATTR_OPTION_DATA, /* dynamic */ |
| 218 | TEAM_ATTR_OPTION_REMOVED, /* flag */ | ||
| 210 | 219 | ||
| 211 | __TEAM_ATTR_OPTION_MAX, | 220 | __TEAM_ATTR_OPTION_MAX, |
| 212 | TEAM_ATTR_OPTION_MAX = __TEAM_ATTR_OPTION_MAX - 1, | 221 | TEAM_ATTR_OPTION_MAX = __TEAM_ATTR_OPTION_MAX - 1, |
| @@ -227,6 +236,7 @@ enum { | |||
| 227 | TEAM_ATTR_PORT_LINKUP, /* flag */ | 236 | TEAM_ATTR_PORT_LINKUP, /* flag */ |
| 228 | TEAM_ATTR_PORT_SPEED, /* u32 */ | 237 | TEAM_ATTR_PORT_SPEED, /* u32 */ |
| 229 | TEAM_ATTR_PORT_DUPLEX, /* u8 */ | 238 | TEAM_ATTR_PORT_DUPLEX, /* u8 */ |
| 239 | TEAM_ATTR_PORT_REMOVED, /* flag */ | ||
| 230 | 240 | ||
| 231 | __TEAM_ATTR_PORT_MAX, | 241 | __TEAM_ATTR_PORT_MAX, |
| 232 | TEAM_ATTR_PORT_MAX = __TEAM_ATTR_PORT_MAX - 1, | 242 | TEAM_ATTR_PORT_MAX = __TEAM_ATTR_PORT_MAX - 1, |
diff --git a/include/linux/kexec.h b/include/linux/kexec.h index 2fa0901219d4..0d7d6a1b172f 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h | |||
| @@ -50,9 +50,11 @@ | |||
| 50 | * note header. For kdump, the code in vmcore.c runs in the context | 50 | * note header. For kdump, the code in vmcore.c runs in the context |
| 51 | * of the second kernel to combine them into one note. | 51 | * of the second kernel to combine them into one note. |
| 52 | */ | 52 | */ |
| 53 | #ifndef KEXEC_NOTE_BYTES | ||
| 53 | #define KEXEC_NOTE_BYTES ( (KEXEC_NOTE_HEAD_BYTES * 2) + \ | 54 | #define KEXEC_NOTE_BYTES ( (KEXEC_NOTE_HEAD_BYTES * 2) + \ |
| 54 | KEXEC_CORE_NOTE_NAME_BYTES + \ | 55 | KEXEC_CORE_NOTE_NAME_BYTES + \ |
| 55 | KEXEC_CORE_NOTE_DESC_BYTES ) | 56 | KEXEC_CORE_NOTE_DESC_BYTES ) |
| 57 | #endif | ||
| 56 | 58 | ||
| 57 | /* | 59 | /* |
| 58 | * This structure is used to hold the arguments that are used when loading | 60 | * This structure is used to hold the arguments that are used when loading |
diff --git a/include/linux/mfd/mcp.h b/include/linux/mfd/mcp.h index 1515e64e3663..f88c1cc0cb0f 100644 --- a/include/linux/mfd/mcp.h +++ b/include/linux/mfd/mcp.h | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | #ifndef MCP_H | 10 | #ifndef MCP_H |
| 11 | #define MCP_H | 11 | #define MCP_H |
| 12 | 12 | ||
| 13 | #include <linux/mod_devicetable.h> | ||
