selftests: bpf: remove duplicated include
authorYueHaibing <yuehaibing@huawei.com>
Fri, 25 Jan 2019 02:46:34 +0000 (10:46 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 28 Jan 2019 23:09:26 +0000 (00:09 +0100)
Remove duplicated include.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_flow_dissector.c
tools/testing/selftests/bpf/test_maps.c
tools/testing/selftests/bpf/test_sockmap.c

index 12b784afba31e3dd37bcbf81d575c5e0b12ca9b7..01f0c634d548185dbc1874f8b8a875661c406772 100644 (file)
@@ -16,7 +16,6 @@
 #include <errno.h>
 #include <linux/if_packet.h>
 #include <linux/if_ether.h>
-#include <linux/if_packet.h>
 #include <linux/ipv6.h>
 #include <netinet/ip.h>
 #include <netinet/in.h>
@@ -25,7 +24,6 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
index e2b9eee3718734492a4ef2b2c92b8cfd31ec8554..1dfef77cff6f4b62aa59bad8395b98461f18d36a 100644 (file)
@@ -633,7 +633,6 @@ static void test_stackmap(int task, void *data)
        close(fd);
 }
 
-#include <sys/socket.h>
 #include <sys/ioctl.h>
 #include <arpa/inet.h>
 #include <sys/select.h>
index e85a771f607bf776acbc9391d534c587bfcb117a..3845144e2c917eae7739fdf90b92c5b7b08e880e 100644 (file)
@@ -10,7 +10,6 @@
 #include <unistd.h>
 #include <string.h>
 #include <errno.h>
-#include <sys/ioctl.h>
 #include <stdbool.h>
 #include <signal.h>
 #include <fcntl.h>