From patchwork Fri Nov 2 19:01:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 992510 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.net Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42mryS5z0Cz9sDr for ; Sat, 3 Nov 2018 06:01:20 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 308A386E07; Fri, 2 Nov 2018 19:01:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uGxCNcyU3eZv; Fri, 2 Nov 2018 19:01:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6491B86DF4; Fri, 2 Nov 2018 19:01:17 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 74BC11BF403 for ; Fri, 2 Nov 2018 19:01:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 722BD86DF4 for ; Fri, 2 Nov 2018 19:01:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3mwdwQ4QTT_T for ; Fri, 2 Nov 2018 19:01:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 383B186DF1 for ; Fri, 2 Nov 2018 19:01:14 +0000 (UTC) Received: from localhost.localdomain ([188.99.123.185]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MRB8F-1g7TBq2N4h-00Ub3Q; Fri, 02 Nov 2018 20:01:09 +0100 Received: from localhost.localdomain ([188.99.123.185]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MRB8F-1g7TBq2N4h-00Ub3Q; Fri, 02 Nov 2018 20:01:09 +0100 From: Peter Seiderer To: buildroot@buildroot.org Date: Fri, 2 Nov 2018 20:01:08 +0100 Message-Id: <20181102190108.29507-1-ps.report@gmx.net> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:PFilYVlPWK5yA3yP/9DqnoW3WA7i+TjZWuj7dRmM9M3CmfzQlJH Ns/gC2T1OfQynxsoxZfNXzP2O5qqHXotx4zQXhT/4qdrPiyM2jyapgOHd/EgTBouyYWPJee OJszIKibv3WHNRLbJ76CdYGpTOR3ctSfK0sFsGvsCHKkVh5+pWElmRxrnBx0WkNwl/W+/ub m6yWBjXq0GDDy4rl6eU5w== X-UI-Out-Filterresults: notjunk:1; V01:K0:MM3qJ1suBFc=:yI+3NdhCnlar7h+4eLnBkk w8qvMgTQBx/5nXfhXdFircWd8Tak5XaMoEBws4DGcFmpb5/afGWNa9LuPQwSxUCtCxyHWMUKN T+OOYLZYh+iR8saKi93AYa4UZnOG159tyurl4XPOQjwX7lHHaoXFdWLCfgGcA4W+IIxzIH+Yl Rgnjf4lz8giOjjFyf6NW6E2zLcU0z6602JD4eByaJk7pwi4MnwT4izvBF/XavVeOr4tPKS52t sLYcK+E9eTN/f+6uhlR5nBl4M3HQwJoPAaVCK8raw9VntJFrhdq7+gp3+TE/sNAM03edhBGSA srpjnOMAw94wluWguepDQj4xnlYKvDbnW7pSHx9hHd3a6t3TxwaokFfY+q7/dydMgIV7TNod2 ycjCZohT339TPT3N9qgZ8a9edTik+GHY5dvUojNuhzMQtbsyAbcDCRFRto0+fUkPX79SV6kyk 3GhdzsuK1DceSZigK237mYAnzSYTbAZq3MZXPgRviw29u0zY0dMhG8/GdzcIHG25N4rOS6vPl 8JV4Zif3R9n8H2RM368wLlBrexFKz1duL2aGUxJcsDSrFJhmeINslxz4q68wH+fRyAiSElu5B YjKlSpOqI3x3FUDnmt1iHrzVh9uGHYAe1LZtlkgM1VPUF18ywFtmEz23CDk32xp3X++P/EGMK pgao4uN9O0JYAYD3j4/i4EY8UYM1BdJusFFcY94JHMeRO5Z6Vqz9MHZgAwfsf2D4dDRLrO6M9 WISL6gT+ddUM2byQ4GGJ1hBRnKDPF2lV440tPnXVddA8EO8JY6BE4eX8lTDEOBkL26JIa41qe IYvdYhQOooaxeGL+7xx4ZDsc9ujrA== Subject: [Buildroot] [PATCH v1] libv4l: add missing bpf_common.h header X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine , Volkov Viacheslav Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes [1] (for older toolchains not providing this header): CC keytable.o In file included from bpf.h:26:0, from keytable.c:37: ../../include/linux/bpf.h:12:10: fatal error: linux/bpf_common.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~ [1] http://autobuild.buildroot.org/results/d22c0939eed4bc949f7eaeae7595d01ec45cc2cd Signed-off-by: Peter Seiderer --- .../0005-Add-missing-linux-bpf_common.h.patch | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 package/libv4l/0005-Add-missing-linux-bpf_common.h.patch diff --git a/package/libv4l/0005-Add-missing-linux-bpf_common.h.patch b/package/libv4l/0005-Add-missing-linux-bpf_common.h.patch new file mode 100644 index 0000000000..d43ea70027 --- /dev/null +++ b/package/libv4l/0005-Add-missing-linux-bpf_common.h.patch @@ -0,0 +1,80 @@ +From 311e344039d58cfde09dd34f14804db8ac0513c9 Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Fri, 2 Nov 2018 18:58:53 +0100 +Subject: [PATCH] Add missing linux/bpf_common.h + +Copy from [1], needed by bpf.h. + +https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/include/uapi/linux/bpf_common.h?h=v4.19 +Signed-off-by: Peter Seiderer +--- + include/linux/bpf_common.h | 57 ++++++++++++++++++++++++++++++++++++++ + 1 file changed, 57 insertions(+) + create mode 100644 include/linux/bpf_common.h + +diff --git a/include/linux/bpf_common.h b/include/linux/bpf_common.h +new file mode 100644 +index 00000000..ee97668b +--- /dev/null ++++ b/include/linux/bpf_common.h +@@ -0,0 +1,57 @@ ++/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ ++#ifndef _UAPI__LINUX_BPF_COMMON_H__ ++#define _UAPI__LINUX_BPF_COMMON_H__ ++ ++/* Instruction classes */ ++#define BPF_CLASS(code) ((code) & 0x07) ++#define BPF_LD 0x00 ++#define BPF_LDX 0x01 ++#define BPF_ST 0x02 ++#define BPF_STX 0x03 ++#define BPF_ALU 0x04 ++#define BPF_JMP 0x05 ++#define BPF_RET 0x06 ++#define BPF_MISC 0x07 ++ ++/* ld/ldx fields */ ++#define BPF_SIZE(code) ((code) & 0x18) ++#define BPF_W 0x00 /* 32-bit */ ++#define BPF_H 0x08 /* 16-bit */ ++#define BPF_B 0x10 /* 8-bit */ ++/* eBPF BPF_DW 0x18 64-bit */ ++#define BPF_MODE(code) ((code) & 0xe0) ++#define BPF_IMM 0x00 ++#define BPF_ABS 0x20 ++#define BPF_IND 0x40 ++#define BPF_MEM 0x60 ++#define BPF_LEN 0x80 ++#define BPF_MSH 0xa0 ++ ++/* alu/jmp fields */ ++#define BPF_OP(code) ((code) & 0xf0) ++#define BPF_ADD 0x00 ++#define BPF_SUB 0x10 ++#define BPF_MUL 0x20 ++#define BPF_DIV 0x30 ++#define BPF_OR 0x40 ++#define BPF_AND 0x50 ++#define BPF_LSH 0x60 ++#define BPF_RSH 0x70 ++#define BPF_NEG 0x80 ++#define BPF_MOD 0x90 ++#define BPF_XOR 0xa0 ++ ++#define BPF_JA 0x00 ++#define BPF_JEQ 0x10 ++#define BPF_JGT 0x20 ++#define BPF_JGE 0x30 ++#define BPF_JSET 0x40 ++#define BPF_SRC(code) ((code) & 0x08) ++#define BPF_K 0x00 ++#define BPF_X 0x08 ++ ++#ifndef BPF_MAXINSNS ++#define BPF_MAXINSNS 4096 ++#endif ++ ++#endif /* _UAPI__LINUX_BPF_COMMON_H__ */ +-- +2.19.1 +