Эх сурвалжийг харах

Merge tag 'batadv-next-for-davem-20180302' of git://git.open-mesh.org/linux-merge

Simon Wunderlich says:

====================
This cleanup patchset includes the following patches:

 - bump version strings, by Simon Wunderlich

 - bump copyright years, by Sven Eckelmann

 - fix macro indendation for checkpatch, by Sven Eckelmann

 - fix comparison operator for bool returning functions,
   by Sven Eckelmann

 - assume 2-byte packet alignments for all packet types,
   by Matthias Schiffer
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 7 жил өмнө
parent
commit
ca435f88c1
61 өөрчлөгдсөн 72 нэмэгдсэн , 79 устгасан
  1. 3 12
      include/uapi/linux/batadv_packet.h
  2. 1 1
      include/uapi/linux/batman_adv.h
  3. 1 1
      net/batman-adv/Kconfig
  4. 1 1
      net/batman-adv/Makefile
  5. 1 1
      net/batman-adv/bat_algo.c
  6. 1 1
      net/batman-adv/bat_algo.h
  7. 1 1
      net/batman-adv/bat_iv_ogm.c
  8. 1 1
      net/batman-adv/bat_iv_ogm.h
  9. 1 1
      net/batman-adv/bat_v.c
  10. 1 1
      net/batman-adv/bat_v.h
  11. 1 1
      net/batman-adv/bat_v_elp.c
  12. 1 1
      net/batman-adv/bat_v_elp.h
  13. 1 1
      net/batman-adv/bat_v_ogm.c
  14. 1 1
      net/batman-adv/bat_v_ogm.h
  15. 1 1
      net/batman-adv/bitarray.c
  16. 1 1
      net/batman-adv/bitarray.h
  17. 1 1
      net/batman-adv/bridge_loop_avoidance.c
  18. 1 1
      net/batman-adv/bridge_loop_avoidance.h
  19. 1 1
      net/batman-adv/debugfs.c
  20. 1 1
      net/batman-adv/debugfs.h
  21. 2 2
      net/batman-adv/distributed-arp-table.c
  22. 1 1
      net/batman-adv/distributed-arp-table.h
  23. 1 1
      net/batman-adv/fragmentation.c
  24. 1 1
      net/batman-adv/fragmentation.h
  25. 1 1
      net/batman-adv/gateway_client.c
  26. 1 1
      net/batman-adv/gateway_client.h
  27. 1 1
      net/batman-adv/gateway_common.c
  28. 1 1
      net/batman-adv/gateway_common.h
  29. 1 1
      net/batman-adv/hard-interface.c
  30. 1 1
      net/batman-adv/hard-interface.h
  31. 1 1
      net/batman-adv/hash.c
  32. 1 1
      net/batman-adv/hash.h
  33. 1 1
      net/batman-adv/icmp_socket.c
  34. 1 1
      net/batman-adv/icmp_socket.h
  35. 1 1
      net/batman-adv/log.c
  36. 1 1
      net/batman-adv/log.h
  37. 1 1
      net/batman-adv/main.c
  38. 9 7
      net/batman-adv/main.h
  39. 1 1
      net/batman-adv/multicast.c
  40. 1 1
      net/batman-adv/multicast.h
  41. 1 1
      net/batman-adv/netlink.c
  42. 1 1
      net/batman-adv/netlink.h
  43. 1 1
      net/batman-adv/network-coding.c
  44. 1 1
      net/batman-adv/network-coding.h
  45. 1 1
      net/batman-adv/originator.c
  46. 1 1
      net/batman-adv/originator.h
  47. 1 1
      net/batman-adv/routing.c
  48. 1 1
      net/batman-adv/routing.h
  49. 1 1
      net/batman-adv/send.c
  50. 1 1
      net/batman-adv/send.h
  51. 1 1
      net/batman-adv/soft-interface.c
  52. 1 1
      net/batman-adv/soft-interface.h
  53. 1 1
      net/batman-adv/sysfs.c
  54. 1 1
      net/batman-adv/sysfs.h
  55. 1 1
      net/batman-adv/tp_meter.c
  56. 1 1
      net/batman-adv/tp_meter.h
  57. 1 1
      net/batman-adv/translation-table.c
  58. 1 1
      net/batman-adv/translation-table.h
  59. 1 1
      net/batman-adv/tvlv.c
  60. 1 1
      net/batman-adv/tvlv.h
  61. 1 1
      net/batman-adv/types.h

+ 3 - 12
include/uapi/linux/batadv_packet.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) */
 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *
@@ -196,8 +196,6 @@ struct batadv_bla_claim_dst {
 	__be16 group;		/* group id */
 	__be16 group;		/* group id */
 };
 };
 
 
-#pragma pack()
-
 /**
 /**
  * struct batadv_ogm_packet - ogm (routing protocol) packet
  * struct batadv_ogm_packet - ogm (routing protocol) packet
  * @packet_type: batman-adv packet type, part of the general header
  * @packet_type: batman-adv packet type, part of the general header
@@ -222,9 +220,6 @@ struct batadv_ogm_packet {
 	__u8   reserved;
 	__u8   reserved;
 	__u8   tq;
 	__u8   tq;
 	__be16 tvlv_len;
 	__be16 tvlv_len;
-	/* __packed is not needed as the struct size is divisible by 4,
-	 * and the largest data type in this struct has a size of 4.
-	 */
 };
 };
 
 
 #define BATADV_OGM_HLEN sizeof(struct batadv_ogm_packet)
 #define BATADV_OGM_HLEN sizeof(struct batadv_ogm_packet)
@@ -249,9 +244,6 @@ struct batadv_ogm2_packet {
 	__u8   orig[ETH_ALEN];
 	__u8   orig[ETH_ALEN];
 	__be16 tvlv_len;
 	__be16 tvlv_len;
 	__be32 throughput;
 	__be32 throughput;
-	/* __packed is not needed as the struct size is divisible by 4,
-	 * and the largest data type in this struct has a size of 4.
-	 */
 };
 };
 
 
 #define BATADV_OGM2_HLEN sizeof(struct batadv_ogm2_packet)
 #define BATADV_OGM2_HLEN sizeof(struct batadv_ogm2_packet)
@@ -405,7 +397,6 @@ struct batadv_icmp_packet_rr {
  * misalignment of the payload after the ethernet header. It may also lead to
  * misalignment of the payload after the ethernet header. It may also lead to
  * leakage of information when the padding it not initialized before sending.
  * leakage of information when the padding it not initialized before sending.
  */
  */
-#pragma pack(2)
 
 
 /**
 /**
  * struct batadv_unicast_packet - unicast packet for network payload
  * struct batadv_unicast_packet - unicast packet for network payload
@@ -533,8 +524,6 @@ struct batadv_coded_packet {
 	__be16 coded_len;
 	__be16 coded_len;
 };
 };
 
 
-#pragma pack()
-
 /**
 /**
  * struct batadv_unicast_tvlv_packet - generic unicast packet with tvlv payload
  * struct batadv_unicast_tvlv_packet - generic unicast packet with tvlv payload
  * @packet_type: batman-adv packet type, part of the general header
  * @packet_type: batman-adv packet type, part of the general header
@@ -641,4 +630,6 @@ struct batadv_tvlv_mcast_data {
 	__u8 reserved[3];
 	__u8 reserved[3];
 };
 };
 
 
+#pragma pack()
+
 #endif /* _UAPI_LINUX_BATADV_PACKET_H_ */
 #endif /* _UAPI_LINUX_BATADV_PACKET_H_ */

+ 1 - 1
include/uapi/linux/batman_adv.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: MIT */
 /* SPDX-License-Identifier: MIT */
-/* Copyright (C) 2016-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2016-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Matthias Schiffer
  * Matthias Schiffer
  *
  *

+ 1 - 1
net/batman-adv/Kconfig

@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 # SPDX-License-Identifier: GPL-2.0
-# Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+# Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
 #
 #
 # Marek Lindner, Simon Wunderlich
 # Marek Lindner, Simon Wunderlich
 #
 #

+ 1 - 1
net/batman-adv/Makefile

@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 # SPDX-License-Identifier: GPL-2.0
-# Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+# Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
 #
 #
 # Marek Lindner, Simon Wunderlich
 # Marek Lindner, Simon Wunderlich
 #
 #

+ 1 - 1
net/batman-adv/bat_algo.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/bat_algo.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2011-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2011-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Linus Lüssing
  * Marek Lindner, Linus Lüssing
  *
  *

+ 1 - 1
net/batman-adv/bat_iv_ogm.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/bat_iv_ogm.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/bat_v.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2013-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2013-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Linus Lüssing, Marek Lindner
  * Linus Lüssing, Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/bat_v.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2011-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2011-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Linus Lüssing
  * Marek Lindner, Linus Lüssing
  *
  *

+ 1 - 1
net/batman-adv/bat_v_elp.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2011-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2011-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Linus Lüssing, Marek Lindner
  * Linus Lüssing, Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/bat_v_elp.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2013-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2013-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Linus Lüssing, Marek Lindner
  * Linus Lüssing, Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/bat_v_ogm.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2013-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2013-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Antonio Quartulli
  * Antonio Quartulli
  *
  *

+ 1 - 1
net/batman-adv/bat_v_ogm.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2013-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2013-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Antonio Quartulli
  * Antonio Quartulli
  *
  *

+ 1 - 1
net/batman-adv/bitarray.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2006-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2006-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Simon Wunderlich, Marek Lindner
  * Simon Wunderlich, Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/bitarray.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2006-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2006-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Simon Wunderlich, Marek Lindner
  * Simon Wunderlich, Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/bridge_loop_avoidance.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2011-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2011-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Simon Wunderlich
  * Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/bridge_loop_avoidance.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2011-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2011-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Simon Wunderlich
  * Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/debugfs.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2010-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2010-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/debugfs.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2010-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2010-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 2 - 2
net/batman-adv/distributed-arp-table.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2011-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2011-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Antonio Quartulli
  * Antonio Quartulli
  *
  *
@@ -495,7 +495,7 @@ static bool batadv_is_orig_node_eligible(struct batadv_dat_candidate *res,
 	 * the one with the lowest address
 	 * the one with the lowest address
 	 */
 	 */
 	if (tmp_max == max && max_orig_node &&
 	if (tmp_max == max && max_orig_node &&
-	    batadv_compare_eth(candidate->orig, max_orig_node->orig) > 0)
+	    batadv_compare_eth(candidate->orig, max_orig_node->orig))
 		goto out;
 		goto out;
 
 
 	ret = true;
 	ret = true;

+ 1 - 1
net/batman-adv/distributed-arp-table.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2011-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2011-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Antonio Quartulli
  * Antonio Quartulli
  *
  *

+ 1 - 1
net/batman-adv/fragmentation.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2013-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2013-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Martin Hundebøll <martin@hundeboll.net>
  * Martin Hundebøll <martin@hundeboll.net>
  *
  *

+ 1 - 1
net/batman-adv/fragmentation.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2013-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2013-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Martin Hundebøll <martin@hundeboll.net>
  * Martin Hundebøll <martin@hundeboll.net>
  *
  *

+ 1 - 1
net/batman-adv/gateway_client.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2009-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2009-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/gateway_client.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2009-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2009-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/gateway_common.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2009-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2009-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/gateway_common.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2009-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2009-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/hard-interface.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/hard-interface.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/hash.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2006-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2006-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Simon Wunderlich, Marek Lindner
  * Simon Wunderlich, Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/hash.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2006-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2006-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Simon Wunderlich, Marek Lindner
  * Simon Wunderlich, Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/icmp_socket.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/icmp_socket.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/log.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2010-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2010-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/log.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/main.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 9 - 7
net/batman-adv/main.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *
@@ -25,7 +25,7 @@
 #define BATADV_DRIVER_DEVICE "batman-adv"
 #define BATADV_DRIVER_DEVICE "batman-adv"
 
 
 #ifndef BATADV_SOURCE_VERSION
 #ifndef BATADV_SOURCE_VERSION
-#define BATADV_SOURCE_VERSION "2018.0"
+#define BATADV_SOURCE_VERSION "2018.1"
 #endif
 #endif
 
 
 /* B.A.T.M.A.N. parameters */
 /* B.A.T.M.A.N. parameters */
@@ -331,11 +331,13 @@ static inline bool batadv_has_timed_out(unsigned long timestamp,
  *
  *
  * Return: true when x is a predecessor of y, false otherwise
  * Return: true when x is a predecessor of y, false otherwise
  */
  */
-#define batadv_seq_before(x, y) ({typeof(x)_d1 = (x); \
-				 typeof(y)_d2 = (y); \
-				 typeof(x)_dummy = (_d1 - _d2); \
-				 (void)(&_d1 == &_d2); \
-				 _dummy > batadv_smallest_signed_int(_dummy); })
+#define batadv_seq_before(x, y) ({ \
+	typeof(x)_d1 = (x); \
+	typeof(y)_d2 = (y); \
+	typeof(x)_dummy = (_d1 - _d2); \
+	(void)(&_d1 == &_d2); \
+	_dummy > batadv_smallest_signed_int(_dummy); \
+})
 
 
 /**
 /**
  * batadv_seq_after() - Checks if a sequence number x is a successor of y
  * batadv_seq_after() - Checks if a sequence number x is a successor of y

+ 1 - 1
net/batman-adv/multicast.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2014-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2014-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Linus Lüssing
  * Linus Lüssing
  *
  *

+ 1 - 1
net/batman-adv/multicast.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2014-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2014-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Linus Lüssing
  * Linus Lüssing
  *
  *

+ 1 - 1
net/batman-adv/netlink.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2016-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2016-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Matthias Schiffer
  * Matthias Schiffer
  *
  *

+ 1 - 1
net/batman-adv/netlink.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2016-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2016-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Matthias Schiffer
  * Matthias Schiffer
  *
  *

+ 1 - 1
net/batman-adv/network-coding.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2012-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2012-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Martin Hundebøll, Jeppe Ledet-Pedersen
  * Martin Hundebøll, Jeppe Ledet-Pedersen
  *
  *

+ 1 - 1
net/batman-adv/network-coding.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2012-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2012-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Martin Hundebøll, Jeppe Ledet-Pedersen
  * Martin Hundebøll, Jeppe Ledet-Pedersen
  *
  *

+ 1 - 1
net/batman-adv/originator.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2009-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2009-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/originator.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/routing.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/routing.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/send.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/send.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/soft-interface.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/soft-interface.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/sysfs.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2010-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2010-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/sysfs.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2010-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2010-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner
  * Marek Lindner
  *
  *

+ 1 - 1
net/batman-adv/tp_meter.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2012-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2012-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Edo Monticelli, Antonio Quartulli
  * Edo Monticelli, Antonio Quartulli
  *
  *

+ 1 - 1
net/batman-adv/tp_meter.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2012-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2012-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Edo Monticelli, Antonio Quartulli
  * Edo Monticelli, Antonio Quartulli
  *
  *

+ 1 - 1
net/batman-adv/translation-table.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich, Antonio Quartulli
  * Marek Lindner, Simon Wunderlich, Antonio Quartulli
  *
  *

+ 1 - 1
net/batman-adv/translation-table.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich, Antonio Quartulli
  * Marek Lindner, Simon Wunderlich, Antonio Quartulli
  *
  *

+ 1 - 1
net/batman-adv/tvlv.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-License-Identifier: GPL-2.0
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/tvlv.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *

+ 1 - 1
net/batman-adv/types.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* SPDX-License-Identifier: GPL-2.0 */
-/* Copyright (C) 2007-2017  B.A.T.M.A.N. contributors:
+/* Copyright (C) 2007-2018  B.A.T.M.A.N. contributors:
  *
  *
  * Marek Lindner, Simon Wunderlich
  * Marek Lindner, Simon Wunderlich
  *
  *