From patchwork Mon Apr 24 20:03:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Linus_L=C3=BCssing?= X-Patchwork-Id: 17009 X-Patchwork-Delegate: sw@simonwunderlich.de Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from open-mesh.org (localhost [IPv6:::1]) by open-mesh.org (Postfix) with ESMTP id B08F9835C9; Mon, 24 Apr 2017 22:03:40 +0200 (CEST) Authentication-Results: open-mesh.org; dmarc=none header.from=c0d3.blue Received-SPF: None (no SPF record) identity=mailfrom; client-ip=138.201.29.205; helo=mail.aperture-lab.de; envelope-from=linus.luessing@c0d3.blue; receiver=b.a.t.m.a.n@lists.open-mesh.org Authentication-Results: open-mesh.org; dmarc=none header.from=c0d3.blue X-Greylist: delayed 2159 seconds by postgrey-1.35 at open-mesh.org; Mon, 24 Apr 2017 22:03:37 CEST Received: from mail.aperture-lab.de (mail.aperture-lab.de [138.201.29.205]) by open-mesh.org (Postfix) with ESMTPS id AB933833A9 for ; Mon, 24 Apr 2017 22:03:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.aperture-lab.de (Postfix) with ESMTP id A9E22E05EF; Mon, 24 Apr 2017 22:03:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aperture-lab.de Received: from mail.aperture-lab.de ([127.0.0.1]) by localhost (mail.aperture-lab.de [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id nD8M5cba2oaf; Mon, 24 Apr 2017 22:03:37 +0200 (CEST) Received: from localhost (unknown [193.96.224.42]) (Authenticated sender: linus.luessing@c0d3.blue) by mail.aperture-lab.de (Postfix) with ESMTPSA; Mon, 24 Apr 2017 22:03:36 +0200 (CEST) From: =?utf-8?q?Linus_L=C3=BCssing?= To: b.a.t.m.a.n@lists.open-mesh.org Date: Mon, 24 Apr 2017 22:03:31 +0200 Message-Id: <20170424200331.21660-1-linus.luessing@c0d3.blue> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Cc: Manoj Srivastava , "Dmitry V . Levin" Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: compat: fix compilation for kernels >= 4.11 on Debian X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" This patch is a workaround for the following issue: [...]/batman-adv/build/net/batman-adv/../../../compat-sources/net/core/skbuff.o ./include/linux/if.h:27:11: error: unable to open 'sys/socket.h' In file included from ./include/linux/compat.h:16:0, from ./include/linux/ethtool.h:16, from [...]/batman-adv/build/../compat-include/linux/ethtool.h:25, from ./include/linux/netdevice.h:42, from [...]/batman-adv/build/../compat-include/linux/netdevice.h:25, from ./include/linux/icmpv6.h:12, from ./include/linux/ipv6.h:82, from [...]/batman-adv/build/net/batman-adv/../../../compat-sources/net/core/skbuff.c:36: ./include/linux/if.h:27:54: fatal error: sys/socket.h: No such file or directory #include /* for struct sockaddr. */ It seems to occur since: "uapi: fix linux/if.h userspace compilation errors" (2618be7dcc, Linux 4.11-rc1) Simply including an empty sys/socket.h makes the kernel module compile again. (The #ifndef __KERNEL__, which kernel-package / make-kpkg stripped, should have removed this include for kernel modules anyway.) Signed-off-by: Linus Lüssing --- Fixes: - https://www.open-mesh.org/issues/333 --- compat-include/sys/socket.h | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 compat-include/sys/socket.h diff --git a/compat-include/sys/socket.h b/compat-include/sys/socket.h new file mode 100644 index 0000000..8722e57 --- /dev/null +++ b/compat-include/sys/socket.h @@ -0,0 +1,3 @@ +/* + * Workaround for Debian's kernel-package + */