1 From 47058e3bd5c13b9db796a81083c049cb1d0b7883 Mon Sep 17 00:00:00 2001
2 From: Marc Kleine-Budde <mkl@pengutronix.de>
3 Date: Mon, 7 Oct 2019 09:59:49 +0200
4 Subject: [PATCH] can: rx-offload: fix long lines
6 This patch fixes the checkpatch warnings about too long lines.
8 Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
10 drivers/net/can/dev/rx-offload.c | 39 ++++++++++++++++++++++++++-------------
11 1 file changed, 26 insertions(+), 13 deletions(-)
13 --- a/drivers/net/can/dev/rx-offload.c
14 +++ b/drivers/net/can/dev/rx-offload.c
16 // SPDX-License-Identifier: GPL-2.0-only
18 - * Copyright (c) 2014 David Jander, Protonic Holland
19 - * Copyright (C) 2014-2017 Pengutronix, Marc Kleine-Budde <kernel@pengutronix.de>
20 +/* Copyright (c) 2014 Protonic Holland,
22 + * Copyright (C) 2014-2017 Pengutronix,
23 + * Marc Kleine-Budde <kernel@pengutronix.de>
26 #include <linux/can/dev.h>
27 @@ -11,14 +12,17 @@ struct can_rx_offload_cb {
31 -static inline struct can_rx_offload_cb *can_rx_offload_get_cb(struct sk_buff *skb)
32 +static inline struct can_rx_offload_cb *
33 +can_rx_offload_get_cb(struct sk_buff *skb)
35 BUILD_BUG_ON(sizeof(struct can_rx_offload_cb) > sizeof(skb->cb));
37 return (struct can_rx_offload_cb *)skb->cb;
40 -static inline bool can_rx_offload_le(struct can_rx_offload *offload, unsigned int a, unsigned int b)
42 +can_rx_offload_le(struct can_rx_offload *offload,
43 + unsigned int a, unsigned int b)
47 @@ -26,7 +30,8 @@ static inline bool can_rx_offload_le(str
51 -static inline unsigned int can_rx_offload_inc(struct can_rx_offload *offload, unsigned int *val)
52 +static inline unsigned int
53 +can_rx_offload_inc(struct can_rx_offload *offload, unsigned int *val)
57 @@ -36,7 +41,9 @@ static inline unsigned int can_rx_offloa
59 static int can_rx_offload_napi_poll(struct napi_struct *napi, int quota)
61 - struct can_rx_offload *offload = container_of(napi, struct can_rx_offload, napi);
62 + struct can_rx_offload *offload = container_of(napi,
63 + struct can_rx_offload,
65 struct net_device *dev = offload->dev;
66 struct net_device_stats *stats = &dev->stats;
68 @@ -65,8 +72,9 @@ static int can_rx_offload_napi_poll(stru
72 -static inline void __skb_queue_add_sort(struct sk_buff_head *head, struct sk_buff *new,
73 - int (*compare)(struct sk_buff *a, struct sk_buff *b))
75 +__skb_queue_add_sort(struct sk_buff_head *head, struct sk_buff *new,
76 + int (*compare)(struct sk_buff *a, struct sk_buff *b))
78 struct sk_buff *pos, *insert = NULL;
80 @@ -199,7 +207,8 @@ can_rx_offload_offload_one(struct can_rx
84 -int can_rx_offload_irq_offload_timestamp(struct can_rx_offload *offload, u64 pending)
85 +int can_rx_offload_irq_offload_timestamp(struct can_rx_offload *offload,
88 struct sk_buff_head skb_queue;
90 @@ -328,7 +337,9 @@ int can_rx_offload_queue_tail(struct can
92 EXPORT_SYMBOL_GPL(can_rx_offload_queue_tail);
94 -static int can_rx_offload_init_queue(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight)
95 +static int can_rx_offload_init_queue(struct net_device *dev,
96 + struct can_rx_offload *offload,
97 + unsigned int weight)
101 @@ -346,7 +357,8 @@ static int can_rx_offload_init_queue(str
105 -int can_rx_offload_add_timestamp(struct net_device *dev, struct can_rx_offload *offload)
106 +int can_rx_offload_add_timestamp(struct net_device *dev,
107 + struct can_rx_offload *offload)
111 @@ -366,7 +378,8 @@ int can_rx_offload_add_timestamp(struct
113 EXPORT_SYMBOL_GPL(can_rx_offload_add_timestamp);
115 -int can_rx_offload_add_fifo(struct net_device *dev, struct can_rx_offload *offload, unsigned int weight)
116 +int can_rx_offload_add_fifo(struct net_device *dev,
117 + struct can_rx_offload *offload, unsigned int weight)
119 if (!offload->mailbox_read)