diff options
| author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-21 05:33:03 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-21 08:44:55 -0400 |
| commit | 64131a87f2aae2ed9e05d8227c5b009ca6c50d98 (patch) | |
| tree | fdea23fd59216120bf54a48c60ca24489a733f14 /include/linux/can | |
| parent | 676ee36be04985062522804c2de04f0764212be6 (diff) | |
| parent | 2c33ce009ca2389dbf0535d0672214d09738e35e (diff) | |
Merge branch 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux into v4l_for_linus
* 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux: (9717 commits)
media-bus: Fixup RGB444_1X12, RGB565_1X16, and YUV8_1X24 media bus format
hexdump: avoid warning in test function
fs: take i_mutex during prepare_binprm for set[ug]id executables
smp: Fix error case handling in smp_call_function_*()
iommu-common: Fix PARISC compile-time warnings
sparc: Make LDC use common iommu poll management functions
sparc: Make sparc64 use scalable lib/iommu-common.c functions
Break up monolithic iommu table/lock into finer graularity pools and lock
sparc: Revert generic IOMMU allocator.
tools/power turbostat: correct dumped pkg-cstate-limit value
tools/power turbostat: calculate TSC frequency from CPUID(0x15) on SKL
tools/power turbostat: correct DRAM RAPL units on recent Xeon processors
tools/power turbostat: Initial Skylake support
tools/power turbostat: Use $(CURDIR) instead of $(PWD) and add support for O= option in Makefile
tools/power turbostat: modprobe msr, if needed
tools/power turbostat: dump MSR_TURBO_RATIO_LIMIT2
tools/power turbostat: use new MSR_TURBO_RATIO_LIMIT names
Bluetooth: hidp: Fix regression with older userspace and flags validation
config: Enable NEED_DMA_MAP_STATE by default when SWIOTLB is selected
perf/x86/intel/pt: Fix and clean up error handling in pt_event_add()
...
That solves several merge conflicts:
Documentation/DocBook/media/v4l/subdev-formats.xml
Documentation/devicetree/bindings/vendor-prefixes.txt
drivers/staging/media/mn88473/mn88473.c
include/linux/kconfig.h
include/uapi/linux/media-bus-format.h
The ones at subdev-formats.xml and media-bus-format.h are not trivial.
That's why we opted to merge from DRM.
Diffstat (limited to 'include/linux/can')
| -rw-r--r-- | include/linux/can/dev.h | 2 | ||||
| -rw-r--r-- | include/linux/can/led.h | 6 | ||||
| -rw-r--r-- | include/linux/can/skb.h | 7 |
3 files changed, 7 insertions, 8 deletions
diff --git a/include/linux/can/dev.h b/include/linux/can/dev.h index c05ff0f9f9a5..c3a9c8fc60fa 100644 --- a/include/linux/can/dev.h +++ b/include/linux/can/dev.h | |||
| @@ -61,6 +61,8 @@ struct can_priv { | |||
| 61 | char tx_led_trig_name[CAN_LED_NAME_SZ]; | 61 | char tx_led_trig_name[CAN_LED_NAME_SZ]; |
| 62 | struct led_trigger *rx_led_trig; | 62 | struct led_trigger *rx_led_trig; |
| 63 | char rx_led_trig_name[CAN_LED_NAME_SZ]; | 63 | char rx_led_trig_name[CAN_LED_NAME_SZ]; |
| 64 | struct led_trigger *rxtx_led_trig; | ||
| 65 | char rxtx_led_trig_name[CAN_LED_NAME_SZ]; | ||
| 64 | #endif | 66 | #endif |
| 65 | }; | 67 | }; |
| 66 | 68 | ||
diff --git a/include/linux/can/led.h b/include/linux/can/led.h index e0475c5cbb92..146de4506d21 100644 --- a/include/linux/can/led.h +++ b/include/linux/can/led.h | |||
| @@ -21,8 +21,10 @@ enum can_led_event { | |||
| 21 | 21 | ||
| 22 | #ifdef CONFIG_CAN_LEDS | 22 | #ifdef CONFIG_CAN_LEDS |
| 23 | 23 | ||
| 24 | /* keep space for interface name + "-tx"/"-rx" suffix and null terminator */ | 24 | /* keep space for interface name + "-tx"/"-rx"/"-rxtx" |
| 25 | #define CAN_LED_NAME_SZ (IFNAMSIZ + 4) | 25 | * suffix and null terminator |
| 26 | */ | ||
| 27 | #define CAN_LED_NAME_SZ (IFNAMSIZ + 6) | ||
| 26 | 28 | ||
| 27 | void can_led_event(struct net_device *netdev, enum can_led_event event); | 29 | void can_led_event(struct net_device *netdev, enum can_led_event event); |
| 28 | void devm_can_led_init(struct net_device *netdev); | 30 | void devm_can_led_init(struct net_device *netdev); |
diff --git a/include/linux/can/skb.h b/include/linux/can/skb.h index cc00d15c6107..b6a52a4b457a 100644 --- a/include/linux/can/skb.h +++ b/include/linux/can/skb.h | |||
| @@ -44,16 +44,11 @@ static inline void can_skb_reserve(struct sk_buff *skb) | |||
| 44 | skb_reserve(skb, sizeof(struct can_skb_priv)); | 44 | skb_reserve(skb, sizeof(struct can_skb_priv)); |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | static inline void can_skb_destructor(struct sk_buff *skb) | ||
| 48 | { | ||
| 49 | sock_put(skb->sk); | ||
| 50 | } | ||
| 51 | |||
| 52 | static inline void can_skb_set_owner(struct sk_buff *skb, struct sock *sk) | 47 | static inline void can_skb_set_owner(struct sk_buff *skb, struct sock *sk) |
| 53 | { | 48 | { |
| 54 | if (sk) { | 49 | if (sk) { |
| 55 | sock_hold(sk); | 50 | sock_hold(sk); |
| 56 | skb->destructor = can_skb_destructor; | 51 | skb->destructor = sock_efree; |
| 57 | skb->sk = sk; | 52 | skb->sk = sk; |
| 58 | } | 53 | } |
| 59 | } | 54 | } |
