Name of failed tests ====================
* checkpatch master ./net/batman-adv/fragmentation.c * checkpatch next ./net/batman-adv/fragmentation.c * difference between net-next and batadv next * headers master
Output of different failed tests ================================
checkpatch next ./net/batman-adv/fragmentation.c ------------------------------------------------
WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #410: FILE: ./net/batman-adv/fragmentation.c:410: + unsigned header_size = sizeof(*frag_head);
WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #411: FILE: ./net/batman-adv/fragmentation.c:411: + unsigned fragment_size = mtu - header_size;
WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #447: FILE: ./net/batman-adv/fragmentation.c:447: + unsigned mtu = neigh_node->if_incoming->net_dev->mtu;
WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #448: FILE: ./net/batman-adv/fragmentation.c:448: + unsigned header_size = sizeof(frag_header);
WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #449: FILE: ./net/batman-adv/fragmentation.c:449: + unsigned max_fragment_size, max_packet_size;
total: 0 errors, 5 warnings, 0 checks, 516 lines checked
difference between net-next and batadv next -------------------------------------------
net/batman-adv/Kconfig | 2 +- net/batman-adv/bat_iv_ogm.c | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-)
headers master --------------
diff --git a/net/batman-adv/bitarray.h b/net/batman-adv/bitarray.h index f93cbc7..9b191bd 100644 --- a/net/batman-adv/bitarray.h +++ b/net/batman-adv/bitarray.h @@ -21,6 +21,7 @@ #include "main.h"
#include <linux/bitops.h> +#include <linux/stddef.h> #include <linux/compiler.h> #include <linux/types.h>
diff --git a/net/batman-adv/soft-interface.h b/net/batman-adv/soft-interface.h index 417d30a..adc1c65 100644 --- a/net/batman-adv/soft-interface.h +++ b/net/batman-adv/soft-interface.h @@ -18,9 +18,9 @@ #ifndef _NET_BATMAN_ADV_SOFT_INTERFACE_H_ #define _NET_BATMAN_ADV_SOFT_INTERFACE_H_
-#include "main.h" - +#include <linux/types.h> #include <net/rtnetlink.h> +#include "main.h"
struct net_device; struct sk_buff;