summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Makefile8
-rw-r--r--src/selftest/routingtable.h6
2 files changed, 8 insertions, 6 deletions
diff --git a/src/Makefile b/src/Makefile
index d47473e..a8a7265 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -61,9 +61,11 @@ tools:
tools-debug:
$(MAKE) -C tools V=1 DEBUG_TOOLS=y
-check:
- $(MAKE) -C $(KERNELDIR) M=$(PWD) C=2 CF="-D__CHECK_ENDIAN__" CONFIG_WIREGUARD_DEBUG=y
- $(MAKE) -C tools check
+check: clean
+ scan-build --view --keep-going $(MAKE) module tools CONFIG_WIREGUARD_DEBUG=y C=2 CF="-D__CHECK_ENDIAN__"
+
+coccicheck: clean
+ $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_WIREGUARD_DEBUG=y coccicheck MODE=report
cloc: clean
cloc $(wildcard *.c) $(wildcard *.h)
diff --git a/src/selftest/routingtable.h b/src/selftest/routingtable.h
index 2f052fa..951eb59 100644
--- a/src/selftest/routingtable.h
+++ b/src/selftest/routingtable.h
@@ -68,7 +68,7 @@ static __init void horrible_routing_table_free(struct horrible_routing_table *ta
hlist_for_each_entry_safe (node, h, &table->head, table) {
hlist_del(&node->table);
kfree(node);
- };
+ }
}
static __init inline union nf_inet_addr horrible_cidr_to_mask(uint8_t cidr)
{
@@ -168,7 +168,7 @@ static __init void *horrible_routing_table_lookup_v4(struct horrible_routing_tab
ret = node->value;
break;
}
- };
+ }
return ret;
}
static __init void *horrible_routing_table_lookup_v6(struct horrible_routing_table *table, struct in6_addr *ip)
@@ -182,7 +182,7 @@ static __init void *horrible_routing_table_lookup_v6(struct horrible_routing_tab
ret = node->value;
break;
}
- };
+ }
return ret;
}