diff options
Diffstat (limited to 'include')
29 files changed, 188 insertions, 69 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 61e32ec1fc4d..8de4fa90e8c4 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
| @@ -252,6 +252,7 @@ struct acpi_device_pnp { | |||
| 252 | #define acpi_device_bid(d) ((d)->pnp.bus_id) | 252 | #define acpi_device_bid(d) ((d)->pnp.bus_id) |
| 253 | #define acpi_device_adr(d) ((d)->pnp.bus_address) | 253 | #define acpi_device_adr(d) ((d)->pnp.bus_address) |
| 254 | const char *acpi_device_hid(struct acpi_device *device); | 254 | const char *acpi_device_hid(struct acpi_device *device); |
| 255 | #define acpi_device_uid(d) ((d)->pnp.unique_id) | ||
| 255 | #define acpi_device_name(d) ((d)->pnp.device_name) | 256 | #define acpi_device_name(d) ((d)->pnp.device_name) |
| 256 | #define acpi_device_class(d) ((d)->pnp.device_class) | 257 | #define acpi_device_class(d) ((d)->pnp.device_class) |
| 257 | 258 | ||
| @@ -386,7 +387,8 @@ static inline bool is_acpi_node(struct fwnode_handle *fwnode) | |||
| 386 | 387 | ||
| 387 | static inline struct acpi_device *acpi_node(struct fwnode_handle *fwnode) | 388 | static inline struct acpi_device *acpi_node(struct fwnode_handle *fwnode) |
| 388 | { | 389 | { |
| 389 | return fwnode ? container_of(fwnode, struct acpi_device, fwnode) : NULL; | 390 | return is_acpi_node(fwnode) ? |
| 391 | container_of(fwnode, struct acpi_device, fwnode) : NULL; | ||
| 390 | } | 392 | } |
| 391 | 393 | ||
| 392 | static inline struct fwnode_handle *acpi_fwnode_handle(struct acpi_device *adev) | 394 | static inline struct fwnode_handle *acpi_fwnode_handle(struct acpi_device *adev) |
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index ac78910d7416..91c09305106d 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
| @@ -167,6 +167,7 @@ | |||
| 167 | #define IOMMU_OF_TABLES() OF_TABLE(CONFIG_OF_IOMMU, iommu) | 167 | #define IOMMU_OF_TABLES() OF_TABLE(CONFIG_OF_IOMMU, iommu) |
| 168 | #define RESERVEDMEM_OF_TABLES() OF_TABLE(CONFIG_OF_RESERVED_MEM, reservedmem) | 168 | #define RESERVEDMEM_OF_TABLES() OF_TABLE(CONFIG_OF_RESERVED_MEM, reservedmem) |
| 169 | #define CPU_METHOD_OF_TABLES() OF_TABLE(CONFIG_SMP, cpu_method) | 169 | #define CPU_METHOD_OF_TABLES() OF_TABLE(CONFIG_SMP, cpu_method) |
| 170 | #define CPUIDLE_METHOD_OF_TABLES() OF_TABLE(CONFIG_CPU_IDLE, cpuidle_method) | ||
| 170 | #define EARLYCON_OF_TABLES() OF_TABLE(CONFIG_SERIAL_EARLYCON, earlycon) | 171 | #define EARLYCON_OF_TABLES() OF_TABLE(CONFIG_SERIAL_EARLYCON, earlycon) |
| 171 | 172 | ||
| 172 | #define KERNEL_DTB() \ | 173 | #define KERNEL_DTB() \ |
| @@ -501,6 +502,7 @@ | |||
| 501 | CLKSRC_OF_TABLES() \ | 502 | CLKSRC_OF_TABLES() \ |
| 502 | IOMMU_OF_TABLES() \ | 503 | IOMMU_OF_TABLES() \ |
| 503 | CPU_METHOD_OF_TABLES() \ | 504 | CPU_METHOD_OF_TABLES() \ |
| 505 | CPUIDLE_METHOD_OF_TABLES() \ | ||
| 504 | KERNEL_DTB() \ | 506 | KERNEL_DTB() \ |
| 505 | IRQCHIP_OF_MATCH_TABLE() \ | 507 | IRQCHIP_OF_MATCH_TABLE() \ |
| 506 | EARLYCON_OF_TABLES() | 508 | EARLYCON_OF_TABLES() |
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 24c7aa8b1d20..dd12127f171c 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -53,10 +53,16 @@ static inline acpi_handle acpi_device_handle(struct acpi_device *adev) | |||
| 53 | return adev ? adev->handle : NULL; | 53 | return adev ? adev->handle : NULL; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | #define ACPI_COMPANION(dev) ((dev)->acpi_node.companion) | 56 | #define ACPI_COMPANION(dev) acpi_node((dev)->fwnode) |
| 57 | #define ACPI_COMPANION_SET(dev, adev) ACPI_COMPANION(dev) = (adev) | 57 | #define ACPI_COMPANION_SET(dev, adev) set_primary_fwnode(dev, (adev) ? \ |
| 58 | acpi_fwnode_handle(adev) : NULL) | ||
| 58 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev)) | 59 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev)) |
| 59 | 60 | ||
| 61 | static inline bool has_acpi_companion(struct device *dev) | ||
| 62 | { | ||
| 63 | return is_acpi_node(dev->fwnode); | ||
| 64 | } | ||
| 65 | |||
| 60 | static inline void acpi_preset_companion(struct device *dev, | 66 | static inline void acpi_preset_companion(struct device *dev, |
| 61 | struct acpi_device *parent, u64 addr) | 67 | struct acpi_device *parent, u64 addr) |
| 62 | { | 68 | { |
| @@ -471,6 +477,11 @@ static inline struct fwnode_handle *acpi_fwnode_handle(struct acpi_device *adev) | |||
| 471 | return NULL; | 477 | return NULL; |
| 472 | } | 478 | } |
| 473 | 479 | ||
| 480 | static inline bool has_acpi_companion(struct device *dev) | ||
| 481 | { | ||
| 482 | return false; | ||
| 483 | } | ||
| 484 | |||
| 474 | static inline const char *acpi_dev_name(struct acpi_device *adev) | 485 | static inline const char *acpi_dev_name(struct acpi_device *adev) |
| 475 | { | 486 | { |
| 476 | return NULL; | 487 | return NULL; |
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index c294e3e25e37..a1b25e35ea5f 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h | |||
| @@ -181,7 +181,9 @@ enum rq_flag_bits { | |||
| 181 | __REQ_ELVPRIV, /* elevator private data attached */ | 181 | __REQ_ELVPRIV, /* elevator private data attached */ |
| 182 | __REQ_FAILED, /* set if the request failed */ | 182 | __REQ_FAILED, /* set if the request failed */ |
| 183 | __REQ_QUIET, /* don't worry about errors */ | 183 | __REQ_QUIET, /* don't worry about errors */ |
| 184 | __REQ_PREEMPT, /* set for "ide_preempt" requests */ | 184 | __REQ_PREEMPT, /* set for "ide_preempt" requests and also |
| 185 | for requests for which the SCSI "quiesce" | ||
| 186 | state must be ignored. */ | ||
| 185 | __REQ_ALLOCED, /* request came from our alloc pool */ | 187 | __REQ_ALLOCED, /* request came from our alloc pool */ |
| 186 | __REQ_COPY_USER, /* contains copies of user pages */ | 188 | __REQ_COPY_USER, /* contains copies of user pages */ |
| 187 | __REQ_FLUSH_SEQ, /* request for flush sequence */ | 189 | __REQ_FLUSH_SEQ, /* request for flush sequence */ |
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 306178d7309f..9c5e89254796 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
| @@ -77,7 +77,6 @@ struct cpuidle_device { | |||
| 77 | unsigned int cpu; | 77 | unsigned int cpu; |
| 78 | 78 | ||
| 79 | int last_residency; | 79 | int last_residency; |
| 80 | int state_count; | ||
| 81 | struct cpuidle_state_usage states_usage[CPUIDLE_STATE_MAX]; | 80 | struct cpuidle_state_usage states_usage[CPUIDLE_STATE_MAX]; |
| 82 | struct cpuidle_state_kobj *kobjs[CPUIDLE_STATE_MAX]; | 81 | struct cpuidle_state_kobj *kobjs[CPUIDLE_STATE_MAX]; |
| 83 | struct cpuidle_driver_kobj *kobj_driver; | 82 | struct cpuidle_driver_kobj *kobj_driver; |
diff --git a/include/linux/device.h b/include/linux/device.h index 0eb8ee2dc6d1..324d02add7b4 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -38,6 +38,7 @@ struct class; | |||
| 38 | struct subsys_private; | 38 | struct subsys_private; |
| 39 | struct bus_type; | 39 | struct bus_type; |
| 40 | struct device_node; | 40 | struct device_node; |
| 41 | struct fwnode_handle; | ||
| 41 | struct iommu_ops; | 42 | struct iommu_ops; |
| 42 | struct iommu_group; | 43 | struct iommu_group; |
| 43 | 44 | ||
| @@ -650,14 +651,6 @@ struct device_dma_parameters { | |||
| 650 | unsigned long segment_boundary_mask; | 651 | unsigned long segment_boundary_mask; |
| 651 | }; | 652 | }; |
| 652 | 653 | ||
| 653 | struct acpi_device; | ||
| 654 | |||
| 655 | struct acpi_dev_node { | ||
| 656 | #ifdef CONFIG_ACPI | ||
| 657 | struct acpi_device *companion; | ||
| 658 | #endif | ||
| 659 | }; | ||
| 660 | |||
| 661 | /** | 654 | /** |
| 662 | * struct device - The basic device structure | 655 | * struct device - The basic device structure |
| 663 | * @parent: The device's "parent" device, the device to which it is attached. | 656 | * @parent: The device's "parent" device, the device to which it is attached. |
| @@ -703,7 +696,7 @@ struct acpi_dev_node { | |||
| 703 | * @cma_area: Contiguous memory area for dma allocations | 696 | * @cma_area: Contiguous memory area for dma allocations |
| 704 | * @archdata: For arch-specific additions. | 697 | * @archdata: For arch-specific additions. |
| 705 | * @of_node: Associated device tree node. | 698 | * @of_node: Associated device tree node. |
| 706 | * @acpi_node: Associated ACPI device node. | 699 | * @fwnode: Associated device node supplied by platform firmware. |
| 707 | * @devt: For creating the sysfs "dev". | 700 | * @devt: For creating the sysfs "dev". |
| 708 | * @id: device instance | 701 | * @id: device instance |
| 709 | * @devres_lock: Spinlock to protect the resource of the device. | 702 | * @devres_lock: Spinlock to protect the resource of the device. |
| @@ -779,7 +772,7 @@ struct device { | |||
| 779 | struct dev_archdata archdata; | 772 | struct dev_archdata archdata; |
| 780 | 773 | ||
| 781 | struct device_node *of_node; /* associated device tree node */ | 774 | struct device_node *of_node; /* associated device tree node */ |
| 782 | struct acpi_dev_node acpi_node; /* associated ACPI device node */ | 775 | struct fwnode_handle *fwnode; /* firmware device node */ |
| 783 | 776 | ||
| 784 | dev_t devt; /* dev_t, creates the sysfs "dev" */ | 777 | dev_t devt; /* dev_t, creates the sysfs "dev" */ |
| 785 | u32 id; /* device instance */ | 778 | u32 id; /* device instance */ |
| @@ -947,6 +940,9 @@ extern void unlock_device_hotplug(void); | |||
| 947 | extern int lock_device_hotplug_sysfs(void); | 940 | extern int lock_device_hotplug_sysfs(void); |
| 948 | extern int device_offline(struct device *dev); | 941 | extern int device_offline(struct device *dev); |
| 949 | extern int device_online(struct device *dev); | 942 | extern int device_online(struct device *dev); |
| 943 | extern void set_primary_fwnode(struct device *dev, struct fwnode_handle *fwnode); | ||
| 944 | extern void set_secondary_fwnode(struct device *dev, struct fwnode_handle *fwnode); | ||
| 945 | |||
| 950 | /* | 946 | /* |
| 951 | * Root device objects for grouping under /sys/devices | 947 | * Root device objects for grouping under /sys/devices |
| 952 | */ | 948 | */ |
diff --git a/include/linux/dmapool.h b/include/linux/dmapool.h index 022e34fcbd1b..52456aa566a0 100644 --- a/include/linux/dmapool.h +++ b/include/linux/dmapool.h | |||
| @@ -14,6 +14,8 @@ | |||
| 14 | #include <asm/io.h> | 14 | #include <asm/io.h> |
| 15 | #include <asm/scatterlist.h> | 15 | #include <asm/scatterlist.h> |
| 16 | 16 | ||
| 17 | struct device; | ||
| 18 | |||
| 17 | struct dma_pool *dma_pool_create(const char *name, struct device *dev, | 19 | struct dma_pool *dma_pool_create(const char *name, struct device *dev, |
| 18 | size_t size, size_t align, size_t allocation); | 20 | size_t size, size_t align, size_t allocation); |
| 19 | 21 | ||
diff --git a/include/linux/fs.h b/include/linux/fs.h index b4d71b5e1ff2..52cc4492cb3a 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -604,6 +604,7 @@ struct inode { | |||
| 604 | struct mutex i_mutex; | 604 | struct mutex i_mutex; |
| 605 | 605 | ||
| 606 | unsigned long dirtied_when; /* jiffies of first dirtying */ | 606 | unsigned long dirtied_when; /* jiffies of first dirtying */ |
| 607 | unsigned long dirtied_time_when; | ||
| 607 | 608 | ||
| 608 | struct hlist_node i_hash; | 609 | struct hlist_node i_hash; |
| 609 | struct list_head i_wb_list; /* backing dev IO list */ | 610 | struct list_head i_wb_list; /* backing dev IO list */ |
| @@ -1548,7 +1549,7 @@ struct file_operations { | |||
| 1548 | long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); | 1549 | long (*unlocked_ioctl) (struct file *, unsigned int, unsigned long); |
| 1549 | long (*compat_ioctl) (struct file *, unsigned int, unsigned long); | 1550 | long (*compat_ioctl) (struct file *, unsigned int, unsigned long); |
| 1550 | int (*mmap) (struct file *, struct vm_area_struct *); | 1551 | int (*mmap) (struct file *, struct vm_area_struct *); |
| 1551 | void (*mremap)(struct file *, struct vm_area_struct *); | 1552 | int (*mremap)(struct file *, struct vm_area_struct *); |
| 1552 | int (*open) (struct inode *, struct file *); | 1553 | int (*open) (struct inode *, struct file *); |
| 1553 | int (*flush) (struct file *, fl_owner_t id); | 1554 | int (*flush) (struct file *, fl_owner_t id); |
| 1554 | int (*release) (struct inode *, struct file *); | 1555 | int (*release) (struct inode *, struct file *); |
diff --git a/include/linux/fwnode.h b/include/linux/fwnode.h new file mode 100644 index 000000000000..0408545bce42 --- /dev/null +++ b/include/linux/fwnode.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | /* | ||
| 2 | * fwnode.h - Firmware device node object handle type definition. | ||
| 3 | * | ||
| 4 | * Copyright (C) 2015, Intel Corporation | ||
| 5 | * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | */ | ||
| 11 | |||
| 12 | #ifndef _LINUX_FWNODE_H_ | ||
| 13 | #define _LINUX_FWNODE_H_ | ||
| 14 | |||
| 15 | enum fwnode_type { | ||
| 16 | FWNODE_INVALID = 0, | ||
| 17 | FWNODE_OF, | ||
| 18 | FWNODE_ACPI, | ||
| 19 | FWNODE_PDATA, | ||
| 20 | }; | ||
| 21 | |||
| 22 | struct fwnode_handle { | ||
| 23 | enum fwnode_type type; | ||
| 24 | struct fwnode_handle *secondary; | ||
| 25 | }; | ||
| 26 | |||
| 27 | #endif | ||
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index f17da50402a4..6d89575361a8 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
| @@ -278,7 +278,7 @@ static inline int i2c_slave_event(struct i2c_client *client, | |||
| 278 | * @platform_data: stored in i2c_client.dev.platform_data | 278 | * @platform_data: stored in i2c_client.dev.platform_data |
| 279 | * @archdata: copied into i2c_client.dev.archdata | 279 | * @archdata: copied into i2c_client.dev.archdata |
| 280 | * @of_node: pointer to OpenFirmware device node | 280 | * @of_node: pointer to OpenFirmware device node |
| 281 | * @acpi_node: ACPI device node | 281 | * @fwnode: device node supplied by the platform firmware |
| 282 | * @irq: stored in i2c_client.irq | 282 | * @irq: stored in i2c_client.irq |
| 283 | * | 283 | * |
| 284 | * I2C doesn't actually support hardware probing, although controllers and | 284 | * I2C doesn't actually support hardware probing, although controllers and |
| @@ -299,7 +299,7 @@ struct i2c_board_info { | |||
| 299 | void *platform_data; | 299 | void *platform_data; |
| 300 | struct dev_archdata *archdata; | 300 | struct dev_archdata *archdata; |
| 301 | struct device_node *of_node; | 301 | struct device_node *of_node; |
| 302 | struct acpi_dev_node acpi_node; | 302 | struct fwnode_handle *fwnode; |
| 303 | int irq; | 303 | int irq; |
| 304 | }; | 304 | }; |
| 305 | 305 | ||
diff --git a/include/linux/irqchip/arm-gic-v3.h b/include/linux/irqchip/arm-gic-v3.h index 781974afff9f..ffbc034c8810 100644 --- a/include/linux/irqchip/arm-gic-v3.h +++ b/include/linux/irqchip/arm-gic-v3.h | |||
| @@ -126,8 +126,23 @@ | |||
| 126 | #define GICR_PROPBASER_WaWb (5U << 7) | 126 | #define GICR_PROPBASER_WaWb (5U << 7) |
| 127 | #define GICR_PROPBASER_RaWaWt (6U << 7) | 127 | #define GICR_PROPBASER_RaWaWt (6U << 7) |
| 128 | #define GICR_PROPBASER_RaWaWb (7U << 7) | 128 | #define GICR_PROPBASER_RaWaWb (7U << 7) |
| 129 | #define GICR_PROPBASER_CACHEABILITY_MASK (7U << 7) | ||
| 129 | #define GICR_PROPBASER_IDBITS_MASK (0x1f) | 130 | #define GICR_PROPBASER_IDBITS_MASK (0x1f) |
| 130 | 131 | ||
| 132 | #define GICR_PENDBASER_NonShareable (0U << 10) | ||
| 133 | #define GICR_PENDBASER_InnerShareable (1U << 10) | ||
| 134 | #define GICR_PENDBASER_OuterShareable (2U << 10) | ||
| 135 | #define GICR_PENDBASER_SHAREABILITY_MASK (3UL << 10) | ||
| 136 | #define GICR_PENDBASER_nCnB (0U << 7) | ||
| 137 | #define GICR_PENDBASER_nC (1U << 7) | ||
| 138 | #define GICR_PENDBASER_RaWt (2U << 7) | ||
| 139 | #define GICR_PENDBASER_RaWb (3U << 7) | ||
| 140 | #define GICR_PENDBASER_WaWt (4U << 7) | ||
| 141 | #define GICR_PENDBASER_WaWb (5U << 7) | ||
| 142 | #define GICR_PENDBASER_RaWaWt (6U << 7) | ||
| 143 | #define GICR_PENDBASER_RaWaWb (7U << 7) | ||
| 144 | #define GICR_PENDBASER_CACHEABILITY_MASK (7U << 7) | ||
| 145 | |||
| 131 | /* | 146 | /* |
| 132 | * Re-Distributor registers, offsets from SGI_base | 147 | * Re-Distributor registers, offsets from SGI_base |
| 133 | */ | 148 | */ |
| @@ -182,6 +197,7 @@ | |||
| 182 | #define GITS_CBASER_WaWb (5UL << 59) | 197 | #define GITS_CBASER_WaWb (5UL << 59) |
| 183 | #define GITS_CBASER_RaWaWt (6UL << 59) | 198 | #define GITS_CBASER_RaWaWt (6UL << 59) |
| 184 | #define GITS_CBASER_RaWaWb (7UL << 59) | 199 | #define GITS_CBASER_RaWaWb (7UL << 59) |
| 200 | #define GITS_CBASER_CACHEABILITY_MASK (7UL << 59) | ||
| 185 | #define GITS_CBASER_NonShareable (0UL << 10) | 201 | #define GITS_CBASER_NonShareable (0UL << 10) |
| 186 | #define GITS_CBASER_InnerShareable (1UL << 10) | 202 | #define GITS_CBASER_InnerShareable (1UL << 10) |
| 187 | #define GITS_CBASER_OuterShareable (2UL << 10) | 203 | #define GITS_CBASER_OuterShareable (2UL << 10) |
| @@ -198,6 +214,7 @@ | |||
| 198 | #define GITS_BASER_WaWb (5UL << 59) | 214 | #define GITS_BASER_WaWb (5UL << 59) |
| 199 | #define GITS_BASER_RaWaWt (6UL << 59) | 215 | #define GITS_BASER_RaWaWt (6UL << 59) |
| 200 | #define GITS_BASER_RaWaWb (7UL << 59) | 216 | #define GITS_BASER_RaWaWb (7UL << 59) |
| 217 | #define GITS_BASER_CACHEABILITY_MASK (7UL << 59) | ||
| 201 | #define GITS_BASER_TYPE_SHIFT (56) | 218 | #define GITS_BASER_TYPE_SHIFT (56) |
| 202 | #define GITS_BASER_TYPE(r) (((r) >> GITS_BASER_TYPE_SHIFT) & 7) | 219 | #define GITS_BASER_TYPE(r) (((r) >> GITS_BASER_TYPE_SHIFT) & 7) |
| 203 | #define GITS_BASER_ENTRY_SIZE_SHIFT (48) | 220 | #define GITS_BASER_ENTRY_SIZE_SHIFT (48) |
diff --git a/include/linux/lcm.h b/include/linux/lcm.h index 7bf01d779b45..1ce79a7f1daa 100644 --- a/include/linux/lcm.h +++ b/include/linux/lcm.h | |||
| @@ -4,5 +4,6 @@ | |||
| 4 | #include <linux/compiler.h> | 4 | #include <linux/compiler.h> |
| 5 | 5 | ||
| 6 | unsigned long lcm(unsigned long a, unsigned long b) __attribute_const__; | 6 | unsigned long lcm(unsigned long a, unsigned long b) __attribute_const__; |
| 7 | unsigned long lcm_not_zero(unsigned long a, unsigned long b) __attribute_const__; | ||
| 7 | 8 | ||
| 8 | #endif /* _LCM_H */ | 9 | #endif /* _LCM_H */ |
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index f279d9c158cd..2782df47101e 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
| @@ -474,16 +474,15 @@ struct zone { | |||
| 474 | unsigned long wait_table_bits; | 474 | unsigned long wait_table_bits; |
| 475 | 475 | ||
| 476 | ZONE_PADDING(_pad1_) | 476 | ZONE_PADDING(_pad1_) |
| 477 | |||
| 478 | /* Write-intensive fields used from the page allocator */ | ||
| 479 | spinlock_t lock; | ||
| 480 | |||
| 481 | /* free areas of different sizes */ | 477 | /* free areas of different sizes */ |
| 482 | struct free_area free_area[MAX_ORDER]; | 478 | struct free_area free_area[MAX_ORDER]; |
| 483 | 479 | ||
| 484 | /* zone flags, see below */ | 480 | /* zone flags, see below */ |
| 485 | unsigned long flags; | 481 | unsigned long flags; |
| 486 | 482 | ||
| 483 | /* Write-intensive fields used from the page allocator */ | ||
| 484 | spinlock_t lock; | ||
| 485 | |||
| 487 | ZONE_PADDING(_pad2_) | 486 | ZONE_PADDING(_pad2_) |
| 488 | 487 | ||
| 489 | /* Write-intensive fields used by page reclaim */ | 488 | /* Write-intensive fields used by page reclaim */ |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index dcf6ec27739b..278738873703 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -2185,6 +2185,12 @@ void netdev_freemem(struct net_device *dev); | |||
| 2185 | void synchronize_net(void); | 2185 | void synchronize_net(void); |
| 2186 | int init_dummy_netdev(struct net_device *dev); | 2186 | int init_dummy_netdev(struct net_device *dev); |
| 2187 | 2187 | ||
| 2188 | DECLARE_PER_CPU(int, xmit_recursion); | ||
| 2189 | static inline int dev_recursion_level(void) | ||
| 2190 | { | ||
| 2191 | return this_cpu_read(xmit_recursion); | ||
| 2192 | } | ||
| 2193 | |||
| 2188 | struct net_device *dev_get_by_index(struct net *net, int ifindex); | 2194 | struct net_device *dev_get_by_index(struct net *net, int ifindex); |
| 2189 | struct net_device *__dev_get_by_index(struct net *net, int ifindex); | 2195 | struct net_device *__dev_get_by_index(struct net *net, int ifindex); |
| 2190 | struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex); | 2196 | struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex); |
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index ae4882ca4a64..58f1e75ba105 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h | |||
| @@ -59,7 +59,7 @@ extern int platform_add_devices(struct platform_device **, int); | |||
| 59 | 59 | ||
| 60 | struct platform_device_info { | 60 | struct platform_device_info { |
| 61 | struct device *parent; | 61 | struct device *parent; |
| 62 | struct acpi_dev_node acpi_node; | 62 | struct fwnode_handle *fwnode; |
| 63 | 63 | ||
| 64 | const char *name; | 64 | const char *name; |
| 65 | int id; | 65 | int id; |
diff --git a/include/linux/resume-trace.h b/include/linux/pm-trace.h index f31db2368782..ecbde7a5548e 100644 --- a/include/linux/resume-trace.h +++ b/include/linux/pm-trace.h | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | #ifndef RESUME_TRACE_H | 1 | #ifndef PM_TRACE_H |
| 2 | #define RESUME_TRACE_H | 2 | #define PM_TRACE_H |
| 3 | 3 | ||
| 4 | #ifdef CONFIG_PM_TRACE | 4 | #ifdef CONFIG_PM_TRACE |
| 5 | #include <asm/resume-trace.h> | 5 | #include <asm/pm-trace.h> |
| 6 | #include <linux/types.h> | 6 | #include <linux/types.h> |
| 7 | 7 | ||
| 8 | extern int pm_trace_enabled; | 8 | extern int pm_trace_enabled; |
| @@ -14,7 +14,7 @@ static inline int pm_trace_is_enabled(void) | |||
| 14 | 14 | ||
| 15 | struct device; | 15 | struct device; |
| 16 | extern void set_trace_device(struct device *); | 16 | extern void set_trace_device(struct device *); |
| 17 | extern void generate_resume_trace(const void *tracedata, unsigned int user); | 17 | extern void generate_pm_trace(const void *tracedata, unsigned int user); |
| 18 | extern int show_trace_dev_match(char *buf, size_t size); | 18 | extern int show_trace_dev_match(char *buf, size_t size); |
| 19 | 19 | ||
| 20 | #define TRACE_DEVICE(dev) do { \ | 20 | #define TRACE_DEVICE(dev) do { \ |
| @@ -28,6 +28,7 @@ static inline int pm_trace_is_enabled(void) { return 0; } | |||
| 28 | 28 | ||
| 29 | #define TRACE_DEVICE(dev) do { } while (0) | 29 | #define TRACE_DEVICE(dev) do { } while (0) |
| 30 | #define TRACE_RESUME(dev) do { } while (0) | 30 | #define TRACE_RESUME(dev) do { } while (0) |
| 31 | #define TRACE_SUSPEND(dev) do { } while (0) | ||
| 31 | 32 | ||
| 32 | #endif | 33 | #endif |
| 33 | 34 | ||
diff --git a/include/linux/pm.h b/include/linux/pm.h index e2f1be6dd9dd..2d29c64f8fb1 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h | |||
| @@ -603,10 +603,18 @@ extern void dev_pm_put_subsys_data(struct device *dev); | |||
| 603 | * Power domains provide callbacks that are executed during system suspend, | 603 | * Power domains provide callbacks that are executed during system suspend, |
| 604 | * hibernation, system resume and during runtime PM transitions along with | 604 | * hibernation, system resume and during runtime PM transitions along with |
| 605 | * subsystem-level and driver-level callbacks. | 605 | * subsystem-level and driver-level callbacks. |
| 606 | * | ||
| 607 | * @detach: Called when removing a device from the domain. | ||
| 608 | * @activate: Called before executing probe routines for bus types and drivers. | ||
| 609 | * @sync: Called after successful driver probe. | ||
| 610 | * @dismiss: Called after unsuccessful driver probe and after driver removal. | ||
| 606 | */ | 611 | */ |
| 607 | struct dev_pm_domain { | 612 | struct dev_pm_domain { |
| 608 | struct dev_pm_ops ops; | 613 | struct dev_pm_ops ops; |
| 609 | void (*detach)(struct device *dev, bool power_off); | 614 | void (*detach)(struct device *dev, bool power_off); |
| 615 | int (*activate)(struct device *dev); | ||
| 616 | void (*sync)(struct device *dev); | ||
| 617 | void (*dismiss)(struct device *dev); | ||
| 610 | }; | 618 | }; |
| 611 | 619 | ||
| 612 | /* | 620 | /* |
diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index 080e778118ba..681ccb053f72 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h | |||
| @@ -127,7 +127,7 @@ static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev) | |||
| 127 | return to_gpd_data(dev->power.subsys_data->domain_data); | 127 | return to_gpd_data(dev->power.subsys_data->domain_data); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | extern struct generic_pm_domain *dev_to_genpd(struct device *dev); | 130 | extern struct generic_pm_domain *pm_genpd_lookup_dev(struct device *dev); |
| 131 | extern int __pm_genpd_add_device(struct generic_pm_domain *genpd, | 131 | extern int __pm_genpd_add_device(struct generic_pm_domain *genpd, |
| 132 | struct device *dev, | 132 | struct device *dev, |
| 133 | struct gpd_timing_data *td); | 133 | struct gpd_timing_data *td); |
| @@ -163,9 +163,9 @@ static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev) | |||
| 163 | { | 163 | { |
| 164 | return ERR_PTR(-ENOSYS); | 164 | return ERR_PTR(-ENOSYS); |
| 165 | } | 165 | } |
| 166 | static inline struct generic_pm_domain *dev_to_genpd(struct device *dev) | 166 | static inline struct generic_pm_domain *pm_genpd_lookup_dev(struct device *dev) |
| 167 | { | 167 | { |
| 168 | return ERR_PTR(-ENOSYS); | 168 | return NULL; |
| 169 | } | 169 | } |
| 170 | static inline int __pm_genpd_add_device(struct generic_pm_domain *genpd, | 170 | static inline int __pm_genpd_add_device(struct generic_pm_domain *genpd, |
| 171 | struct device *dev, | 171 | struct device *dev, |
diff --git a/include/linux/pnp.h b/include/linux/pnp.h index 6512e9cbc6d5..5df733b8f704 100644 --- a/include/linux/pnp.h +++ b/include/linux/pnp.h | |||
| @@ -510,4 +510,16 @@ static inline void pnp_unregister_driver(struct pnp_driver *drv) { } | |||
| 510 | 510 | ||
| 511 | #endif /* CONFIG_PNP */ | 511 | #endif /* CONFIG_PNP */ |
| 512 | 512 | ||
| 513 | /** | ||
| 514 | * module_pnp_driver() - Helper macro for registering a PnP driver | ||
| 515 | * @__pnp_driver: pnp_driver struct | ||
| 516 | * | ||
| 517 | * Helper macro for PnP drivers which do not do anything special in module | ||
| 518 | * init/exit. This eliminates a lot of boilerplate. Each module may only | ||
| 519 | * use this macro once, and calling it replaces module_init() and module_exit() | ||
| 520 | */ | ||
| 521 | #define module_pnp_driver(__pnp_driver) \ | ||
| 522 | module_driver(__pnp_driver, pnp_register_driver, \ | ||
| 523 | pnp_unregister_driver) | ||
| 524 | |||
| 513 | #endif /* _LINUX_PNP_H */ | 525 | #endif /* _LINUX_PNP_H */ |
diff --git a/include/linux/property.h b/include/linux/property.h index a6a3d98bd7e9..de8bdf417a35 100644 --- a/include/linux/property.h +++ b/include/linux/property.h | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #ifndef _LINUX_PROPERTY_H_ | 13 | #ifndef _LINUX_PROPERTY_H_ |
| 14 | #define _LINUX_PROPERTY_H_ | 14 | #define _LINUX_PROPERTY_H_ |
| 15 | 15 | ||
| 16 | #include <linux/fwnode.h> | ||
| 16 | #include <linux/types.h> | 17 | #include <linux/types.h> |
| 17 | 18 | ||
| 18 | struct device; | 19 | struct device; |
| @@ -40,16 +41,6 @@ int device_property_read_string_array(struct device *dev, const char *propname, | |||
| 40 | int device_property_read_string(struct device *dev, const char *propname, | 41 | int device_property_read_string(struct device *dev, const char *propname, |
| 41 | const char **val); | 42 | const char **val); |
| 42 | 43 | ||
| 43 | enum fwnode_type { | ||
| 44 | FWNODE_INVALID = 0, | ||
| 45 | FWNODE_OF, | ||
| 46 | FWNODE_ACPI, | ||
| 47 | }; | ||
| 48 | |||
| 49 | struct fwnode_handle { | ||
| 50 | enum fwnode_type type; | ||
| 51 | }; | ||
| 52 | |||
| 53 | bool fwnode_property_present(struct fwnode_handle *fwnode, const char *propname); | 44 | bool fwnode_property_present(struct fwnode_handle *fwnode, const char *propname); |
| 54 | int fwnode_property_read_u8_array(struct fwnode_handle *fwnode, | 45 | int fwnode_property_read_u8_array(struct fwnode_handle *fwnode, |
| 55 | const char *propname, u8 *val, | 46 | const char *propname, u8 *val, |
| @@ -140,4 +131,37 @@ static inline int fwnode_property_read_u64(struct fwnode_handle *fwnode, | |||
| 140 | return fwnode_property_read_u64_array(fwnode, propname, val, 1); | 131 | return fwnode_property_read_u64_array(fwnode, propname, val, 1); |
| 141 | } | 132 | } |
| 142 | 133 | ||
| 134 | /** | ||
| 135 | * struct property_entry - "Built-in" device property representation. | ||
| 136 | * @name: Name of the property. | ||
| 137 | * @type: Type of the property. | ||
| 138 | * @nval: Number of items of type @type making up the value. | ||
| 139 | * @value: Value of the property (an array of @nval items of type @type). | ||
| 140 | */ | ||
| 141 | struct property_entry { | ||
| 142 | const char *name; | ||
| 143 | enum dev_prop_type type; | ||
| 144 | size_t nval; | ||
| 145 | union { | ||
| 146 | void *raw_data; | ||
| 147 | u8 *u8_data; | ||
| 148 | u16 *u16_data; | ||
| 149 | u32 *u32_data; | ||
| 150 | u64 *u64_data; | ||
| 151 | const char **str; | ||
| 152 | } value; | ||
| 153 | }; | ||
| 154 | |||
| 155 | /** | ||
| 156 | * struct property_set - Collection of "built-in" device properties. | ||
| 157 | * @fwnode: Handle to be pointed to by the fwnode field of struct device. | ||
| 158 | * @properties: Array of properties terminated with a null entry. | ||
| 159 | */ | ||
| 160 | struct property_set { | ||
| 161 | struct fwnode_handle fwnode; | ||
| 162 | struct property_entry *properties; | ||
| 163 | }; | ||
| 164 | |||
| 165 | void device_add_property_set(struct device *dev, struct property_set *pset); | ||
| 166 | |||
| 143 | #endif /* _LINUX_PROPERTY_H_ */ | 167 | #endif /* _LINUX_PROPERTY_H_ */ |
diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h index c57d8ea0716c..59a7889e15db 100644 --- a/include/linux/sunrpc/debug.h +++ b/include/linux/sunrpc/debug.h | |||
| @@ -60,17 +60,17 @@ struct rpc_xprt; | |||
| 60 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | 60 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) |
| 61 | void rpc_register_sysctl(void); | 61 | void rpc_register_sysctl(void); |
| 62 | void rpc_unregister_sysctl(void); | 62 | void rpc_unregister_sysctl(void); |
| 63 | int sunrpc_debugfs_init(void); | 63 | void sunrpc_debugfs_init(void); |
| 64 | void sunrpc_debugfs_exit(void); | 64 | void sunrpc_debugfs_exit(void); |
| 65 | int rpc_clnt_debugfs_register(struct rpc_clnt *); | 65 | void rpc_clnt_debugfs_register(struct rpc_clnt *); |
| 66 | void rpc_clnt_debugfs_unregister(struct rpc_clnt *); | 66 | void rpc_clnt_debugfs_unregister(struct rpc_clnt *); |
| 67 | int rpc_xprt_debugfs_register(struct rpc_xprt *); | 67 | void rpc_xprt_debugfs_register(struct rpc_xprt *); |
| 68 | void rpc_xprt_debugfs_unregister(struct rpc_xprt *); | 68 | void rpc_xprt_debugfs_unregister(struct rpc_xprt *); |
| 69 | #else | 69 | #else |
| 70 | static inline int | 70 | static inline void |
| 71 | sunrpc_debugfs_init(void) | 71 | sunrpc_debugfs_init(void) |
| 72 | { | 72 | { |
| 73 | return 0; | 73 | return; |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | static inline void | 76 | static inline void |
| @@ -79,10 +79,10 @@ sunrpc_debugfs_exit(void) | |||
| 79 | return; | 79 | return; |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | static inline int | 82 | static inline void |
| 83 | rpc_clnt_debugfs_register(struct rpc_clnt *clnt) | 83 | rpc_clnt_debugfs_register(struct rpc_clnt *clnt) |
| 84 | { | 84 | { |
| 85 | return 0; | 85 | return; |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | static inline void | 88 | static inline void |
| @@ -91,10 +91,10 @@ rpc_clnt_debugfs_unregister(struct rpc_clnt *clnt) | |||
| 91 | return; | 91 | return; |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | static inline int | 94 | static inline void |
| 95 | rpc_xprt_debugfs_register(struct rpc_xprt *xprt) | 95 | rpc_xprt_debugfs_register(struct rpc_xprt *xprt) |
| 96 | { | 96 | { |
| 97 | return 0; | 97 | return; |
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | static inline void | 100 | static inline void |
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h index d9a4905e01d0..6e0ce8c7b8cb 100644 --- a/include/linux/usb/usbnet.h +++ b/include/linux/usb/usbnet.h | |||
| @@ -227,9 +227,23 @@ struct skb_data { /* skb->cb is one of these */ | |||
| 227 | struct urb *urb; | 227 | struct urb *urb; |
| 228 | struct usbnet *dev; | 228 | struct usbnet *dev; |
| 229 | enum skb_state state; | 229 | enum skb_state state; |
| 230 | size_t length; | 230 | long length; |
| 231 | unsigned long packets; | ||
| 231 | }; | 232 | }; |
| 232 | 233 | ||
| 234 | /* Drivers that set FLAG_MULTI_PACKET must call this in their | ||
| 235 | * tx_fixup method before returning an skb. | ||
| 236 | */ | ||
| 237 | static inline void | ||
| 238 | usbnet_set_skb_tx_stats(struct sk_buff *skb, | ||
| 239 | unsigned long packets, long bytes_delta) | ||
| 240 | { | ||
| 241 | struct skb_data *entry = (struct skb_data *) skb->cb; | ||
| 242 | |||
| 243 | entry->packets = packets; | ||
| 244 | entry->length = bytes_delta; | ||
| 245 | } | ||
| 246 | |||
| 233 | extern int usbnet_open(struct net_device *net); | 247 | extern int usbnet_open(struct net_device *net); |
| 234 | extern int usbnet_stop(struct net_device *net); | 248 | extern int usbnet_stop(struct net_device *net); |
| 235 | extern netdev_tx_t usbnet_start_xmit(struct sk_buff *skb, | 249 | extern netdev_tx_t usbnet_start_xmit(struct sk_buff *skb, |
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 00048339c23e..b2dd371ec0ca 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h | |||
| @@ -130,6 +130,7 @@ extern int vm_dirty_ratio; | |||
| 130 | extern unsigned long vm_dirty_bytes; | 130 | extern unsigned long vm_dirty_bytes; |
| 131 | extern unsigned int dirty_writeback_interval; | 131 | extern unsigned int dirty_writeback_interval; |
| 132 | extern unsigned int dirty_expire_interval; | 132 | extern unsigned int dirty_expire_interval; |
| 133 | extern unsigned int dirtytime_expire_interval; | ||
| 133 | extern int vm_highmem_is_dirtyable; | 134 | extern int vm_highmem_is_dirtyable; |
| 134 | extern int block_dump; | 135 | extern int block_dump; |
| 135 | extern int laptop_mode; | 136 | extern int laptop_mode; |
| @@ -146,6 +147,8 @@ extern int dirty_ratio_handler(struct ctl_table *table, int write, | |||
| 146 | extern int dirty_bytes_handler(struct ctl_table *table, int write, | 147 | extern int dirty_bytes_handler(struct ctl_table *table, int write, |
| 147 | void __user *buffer, size_t *lenp, | 148 | void __user *buffer, size_t *lenp, |
| 148 | loff_t *ppos); | 149 | loff_t *ppos); |
| 150 | int dirtytime_interval_handler(struct ctl_table *table, int write, | ||
| 151 | void __user *buffer, size_t *lenp, loff_t *ppos); | ||
| 149 | 152 | ||
| 150 | struct ctl_table; | 153 | struct ctl_table; |
| 151 | int dirty_writeback_centisecs_handler(struct ctl_table *, int, | 154 | int dirty_writeback_centisecs_handler(struct ctl_table *, int, |
diff --git a/include/media/atmel-isi.h b/include/media/atmel-isi.h index c2e570336269..6008b0985b7b 100644 --- a/include/media/atmel-isi.h +++ b/include/media/atmel-isi.h | |||
| @@ -59,6 +59,10 @@ | |||
| 59 | #define ISI_CFG1_FRATE_DIV_MASK (7 << 8) | 59 | #define ISI_CFG1_FRATE_DIV_MASK (7 << 8) |
| 60 | #define ISI_CFG1_DISCR (1 << 11) | 60 | #define ISI_CFG1_DISCR (1 << 11) |
| 61 | #define ISI_CFG1_FULL_MODE (1 << 12) | 61 | #define ISI_CFG1_FULL_MODE (1 << 12) |
| 62 | /* Definition for THMASK(ISI_V2) */ | ||
| 63 | #define ISI_CFG1_THMASK_BEATS_4 (0 << 13) | ||
| 64 | #define ISI_CFG1_THMASK_BEATS_8 (1 << 13) | ||
| 65 | #define ISI_CFG1_THMASK_BEATS_16 (2 << 13) | ||
| 62 | 66 | ||
| 63 | /* Bitfields in CFG2 */ | 67 | /* Bitfields in CFG2 */ |
| 64 | #define ISI_CFG2_GRAYSCALE (1 << 13) | 68 | #define ISI_CFG2_GRAYSCALE (1 << 13) |
diff --git a/include/net/ip.h b/include/net/ip.h index 025c61c0dffb..6cc1eafb153a 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -453,22 +453,6 @@ static __inline__ void inet_reset_saddr(struct sock *sk) | |||
| 453 | 453 | ||
| 454 | #endif | 454 | #endif |
| 455 | 455 | ||
| 456 | static inline int sk_mc_loop(struct sock *sk) | ||
| 457 | { | ||
| 458 | if (!sk) | ||
| 459 | return 1; | ||
| 460 | switch (sk->sk_family) { | ||
| 461 | case AF_INET: | ||
| 462 | return inet_sk(sk)->mc_loop; | ||
| 463 | #if IS_ENABLED(CONFIG_IPV6) | ||
| 464 | case AF_INET6: | ||
| 465 | return inet6_sk(sk)->mc_loop; | ||
| 466 | #endif | ||
| 467 | } | ||
| 468 | WARN_ON(1); | ||
| 469 | return 1; | ||
| 470 | } | ||
| 471 | |||
| 472 | bool ip_call_ra_chain(struct sk_buff *skb); | 456 | bool ip_call_ra_chain(struct sk_buff *skb); |
| 473 | 457 | ||
| 474 | /* | 458 | /* |
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index 1d09b46c1e48..eda131d179d9 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h | |||
| @@ -174,7 +174,8 @@ int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)); | |||
| 174 | 174 | ||
| 175 | static inline int ip6_skb_dst_mtu(struct sk_buff *skb) | 175 | static inline int ip6_skb_dst_mtu(struct sk_buff *skb) |
| 176 | { | 176 | { |
| 177 | struct ipv6_pinfo *np = skb->sk ? inet6_sk(skb->sk) : NULL; | 177 | struct ipv6_pinfo *np = skb->sk && !dev_recursion_level() ? |
| 178 | inet6_sk(skb->sk) : NULL; | ||
| 178 | 179 | ||
| 179 | return (np && np->pmtudisc >= IPV6_PMTUDISC_PROBE) ? | 180 | return (np && np->pmtudisc >= IPV6_PMTUDISC_PROBE) ? |
| 180 | skb_dst(skb)->dev->mtu : dst_mtu(skb_dst(skb)); | 181 | skb_dst(skb)->dev->mtu : dst_mtu(skb_dst(skb)); |
diff --git a/include/net/sock.h b/include/net/sock.h index ab186b1d31ff..e4079c28e6b8 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
| @@ -1762,6 +1762,8 @@ struct dst_entry *__sk_dst_check(struct sock *sk, u32 cookie); | |||
| 1762 | 1762 | ||
| 1763 | struct dst_entry *sk_dst_check(struct sock *sk, u32 cookie); | 1763 | struct dst_entry *sk_dst_check(struct sock *sk, u32 cookie); |
| 1764 | 1764 | ||
| 1765 | bool sk_mc_loop(struct sock *sk); | ||
| 1766 | |||
| 1765 | static inline bool sk_can_gso(const struct sock *sk) | 1767 | static inline bool sk_can_gso(const struct sock *sk) |
| 1766 | { | 1768 | { |
| 1767 | return net_gso_ok(sk->sk_route_caps, sk->sk_gso_type); | 1769 | return net_gso_ok(sk->sk_route_caps, sk->sk_gso_type); |
diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index b0a813079852..2f62ab2d7bf9 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h | |||
| @@ -973,7 +973,8 @@ struct input_keymap_entry { | |||
| 973 | */ | 973 | */ |
| 974 | #define MT_TOOL_FINGER 0 | 974 | #define MT_TOOL_FINGER 0 |
| 975 | #define MT_TOOL_PEN 1 | 975 | #define MT_TOOL_PEN 1 |
| 976 | #define MT_TOOL_MAX 1 | 976 | #define MT_TOOL_PALM 2 |
| 977 | #define MT_TOOL_MAX 2 | ||
| 977 | 978 | ||
| 978 | /* | 979 | /* |
| 979 | * Values describing the status of a force-feedback effect | 980 | * Values describing the status of a force-feedback effect |
diff --git a/include/uapi/linux/nfsd/export.h b/include/uapi/linux/nfsd/export.h index 4742f2cb42f2..d3bd6ffec041 100644 --- a/include/uapi/linux/nfsd/export.h +++ b/include/uapi/linux/nfsd/export.h | |||
| @@ -47,7 +47,7 @@ | |||
| 47 | * exported filesystem. | 47 | * exported filesystem. |
| 48 | */ | 48 | */ |
| 49 | #define NFSEXP_V4ROOT 0x10000 | 49 | #define NFSEXP_V4ROOT 0x10000 |
| 50 | #define NFSEXP_NOPNFS 0x20000 | 50 | #define NFSEXP_PNFS 0x20000 |
| 51 | 51 | ||
| 52 | /* All flags that we claim to support. (Note we don't support NOACL.) */ | 52 | /* All flags that we claim to support. (Note we don't support NOACL.) */ |
| 53 | #define NFSEXP_ALLFLAGS 0x3FE7F | 53 | #define NFSEXP_ALLFLAGS 0x3FE7F |
