Received: by 10.213.65.68 with SMTP id h4csp1188087imn; Mon, 26 Mar 2018 02:34:50 -0700 (PDT) X-Google-Smtp-Source: AG47ELuKjaHOi9xjKMxLTsnz/tV9Ilf7sa8yuqLOx1SDX+xNyG5FVlFGf4OW7qryBQ16YVO9GBr3 X-Received: by 10.101.93.5 with SMTP id e5mr10108178pgr.247.1522056890089; Mon, 26 Mar 2018 02:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522056890; cv=none; d=google.com; s=arc-20160816; b=J7Kkz1c4+5F9S/A1ssnG9PGQPAdtYgA7aJDOALNNY/x2ayF7ktMqO1GF+rl4XSwAV+ ke0Hi+qfhaeIFUk/jR1VTO7ud8qRvZYyejvg9k6uunCnTOzNFw+h2ZagSBjxc4IjWr1M UHhvIfDIgXD3O6xNmG42y0xdG9w2IFdtws+Mgqt6eVo3xTPzy/xFeG+V+3sKsm0KshVB WmvL9oDys8ZLq+MmkO14BYJNcBisWa0q9wdK6Gbds4mJkOPUHcq2zng+Ql6v/1vUb21U xtyidcssn1l/KvF937j782sVikJMzW/XVS+psif9zx+N3sFlQojkD+awj5mI8hg3Jro1 WTOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=hsPNHxOcgkpguEQRhTxJSUgeyNrNQNDgiFRuJm2xSDU=; b=hYcZ1lid2cetVOZBwmIYAIsaF7TGoBvhXQVmEPQjgBmWyip1JL/YnQrZkQ06ynnBOz KF25Kb7k58qqANTiTE0wNEXcfN74RuCdoqAQAbAFZ6vM22N0m/l9UjN82e5JhyEskzdf h+lJXaI9aHKKmjbEJBH4FZ8VDjELCsYkQzV9HA7Htp98dgbxDk8duD0f7O4zM5lUNufv b09d9ESPdUyuPYS02lYmM4Ofkx/ARRYJq0bjDMKVNxe+hX0UUsGSHyurvfBvOSnGFNs3 Bnv3VVMKdwGuh9aoT8F9yuZMtqaG4glV7BtCP2ZKN8zty8KEqAbjJMs2rlLDqMlIKVQT 3wdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si11040762pfh.200.2018.03.26.02.34.35; Mon, 26 Mar 2018 02:34:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752046AbeCZJde (ORCPT + 99 others); Mon, 26 Mar 2018 05:33:34 -0400 Received: from mga17.intel.com ([192.55.52.151]:43809 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751938AbeCZJdU (ORCPT ); Mon, 26 Mar 2018 05:33:20 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2018 02:33:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,364,1517904000"; d="scan'208";a="36851597" Received: from gvt-dell.bj.intel.com (HELO gvt-dell-host.bj.intel.com) ([10.238.154.59]) by FMSMGA003.fm.intel.com with ESMTP; 26 Mar 2018 02:33:18 -0700 From: changbin.du@intel.com To: shuah@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH 4/4] selftests/bpf: fix compiling errors Date: Mon, 26 Mar 2018 17:23:28 +0800 Message-Id: <1522056208-4004-5-git-send-email-changbin.du@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522056208-4004-1-git-send-email-changbin.du@intel.com> References: <1522056208-4004-1-git-send-email-changbin.du@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Changbin Du This patch fixed below errors of missing head files. tools/testing/selftests$ make ... clang -I. -I./include/uapi -I../../../include/uapi -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c test_pkt_access.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /home/changbin/work/linux/tools/testing/selftests/bpf//test_pkt_access.o In file included from test_pkt_access.c:9: In file included from ../../../include/uapi/linux/bpf.h:11: In file included from ./include/uapi/linux/types.h:5: /usr/include/asm-generic/int-ll64.h:11:10: fatal error: 'asm/bitsperlong.h' file not found #include ^ 1 error generated. clang -I. -I./include/uapi -I../../../include/uapi -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c test_xdp.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /home/changbin/work/linux/tools/testing/selftests/bpf//test_xdp.o In file included from test_xdp.c:9: In file included from ../../../include/uapi/linux/bpf.h:11: In file included from ./include/uapi/linux/types.h:5: /usr/include/asm-generic/int-ll64.h:11:10: fatal error: 'asm/bitsperlong.h' file not found #include ^ 1 error generated. clang -I. -I./include/uapi -I../../../include/uapi -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c test_l4lb.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /home/changbin/work/linux/tools/testing/selftests/bpf//test_l4lb.o In file included from test_l4lb.c:10: In file included from /usr/include/linux/pkt_cls.h:4: In file included from ./include/uapi/linux/types.h:5: /usr/include/asm-generic/int-ll64.h:11:10: fatal error: 'asm/bitsperlong.h' file not found #include ^ 1 error generated. clang -I. -I./include/uapi -I../../../include/uapi -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c test_tcp_estats.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /home/changbin/work/linux/tools/testing/selftests/bpf//test_tcp_estats.o In file included from test_tcp_estats.c:35: In file included from ../../../include/uapi/linux/bpf.h:11: In file included from ./include/uapi/linux/types.h:5: /usr/include/asm-generic/int-ll64.h:11:10: fatal error: 'asm/bitsperlong.h' file not found #include ... Signed-off-by: Changbin Du --- tools/testing/selftests/bpf/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 5c43c18..dc0fdc8 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -10,7 +10,8 @@ ifneq ($(wildcard $(GENHDR)),) GENFLAGS := -DHAVE_GENHDR endif -CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(GENDIR) $(GENFLAGS) -I../../../include +CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(GENDIR) $(GENFLAGS) \ + -I../../../include -I../../../../usr/include LDLIBS += -lcap -lelf -lrt -lpthread # Order correspond to 'make run_tests' order @@ -62,7 +63,7 @@ else CPU ?= generic endif -CLANG_FLAGS = -I. -I./include/uapi -I../../../include/uapi \ +CLANG_FLAGS = -I. -I./include/uapi -I../../../include/uapi -I../../../../usr/include \ -Wno-compare-distinct-pointer-types $(OUTPUT)/test_l4lb_noinline.o: CLANG_FLAGS += -fno-inline -- 2.7.4