From patchwork Fri Sep 18 13:19:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Wunderlich X-Patchwork-Id: 18189 X-Patchwork-Delegate: sw@simonwunderlich.de Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from diktynna.open-mesh.org (localhost [IPv6:::1]) by diktynna.open-mesh.org (Postfix) with ESMTP id 9F36280803; Fri, 18 Sep 2020 15:28:02 +0200 (CEST) Received: from simonwunderlich.de (packetmixer.de [IPv6:2001:4d88:2000:24::c0de]) by diktynna.open-mesh.org (Postfix) with ESMTPS id A26FA800F2 for ; Fri, 18 Sep 2020 15:27:59 +0200 (CEST) Received: from kero.packetmixer.de (p200300c59714ead05d12fb7f5a0314d0.dip0.t-ipconnect.de [IPv6:2003:c5:9714:ead0:5d12:fb7f:5a03:14d0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by simonwunderlich.de (Postfix) with ESMTPSA id 8E30862076; Fri, 18 Sep 2020 15:19:59 +0200 (CEST) From: Simon Wunderlich To: davem@davemloft.net Subject: [PATCH 3/6] batman-adv: Add missing include for in_interrupt() Date: Fri, 18 Sep 2020 15:19:53 +0200 Message-Id: <20200918131956.21598-4-sw@simonwunderlich.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200918131956.21598-1-sw@simonwunderlich.de> References: <20200918131956.21598-1-sw@simonwunderlich.de> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh.org; s=20121; t=1600435679; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h/EkiLpAMXJp1nYMkqncJMvVk7Rex111c4LHMdtKWnU=; b=2ng6KKVJ8YSoNmlCGxEh3h5OnhPA1OKtis/JHgrr1/HDRRoxzCnl+dBoA9b1FbRAUdMPiw sVHSa5UxZPmFkum5LeDOXv9N17xRTwO5IZLIXyTzN/Kyv5ZOFA6UDc3OGRsRX+UN11Mxus p1jehunOnvLHEch3nBz6d8ZnskizRRE= ARC-Seal: i=1; s=20121; d=open-mesh.org; t=1600435679; a=rsa-sha256; cv=none; b=A4KLmhdeMS6ZjzeM3OWcgFsWR0JGTs3zOShkhVQxfwqYgOTAhlCqBC1gcZd/P6hdROYXbo NITu3qllZWKnuEXXVCfpvE/mcrJc88URlal0q5zAdDu8ixgbI/ftJJX7IZ4sM+YVhS5TBF LbAD2imIThEsM1JuAjCo9zTlCKOY/Ng= ARC-Authentication-Results: i=1; diktynna.open-mesh.org; dkim=none; spf=pass (diktynna.open-mesh.org: domain of sw@simonwunderlich.de designates 2001:4d88:2000:24::c0de as permitted sender) smtp.mailfrom=sw@simonwunderlich.de Message-ID-Hash: 5MCRZTYSFKCU3H6PVHXXT7TWOUVM6WIO X-Message-ID-Hash: 5MCRZTYSFKCU3H6PVHXXT7TWOUVM6WIO X-MailFrom: sw@simonwunderlich.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-b.a.t.m.a.n.lists.open-mesh.org-0; header-match-b.a.t.m.a.n.lists.open-mesh.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: netdev@vger.kernel.org, b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 3.2.1 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: From: Sven Eckelmann The fix for receiving (internally generated) bla packets outside the interrupt context introduced the usage of in_interrupt(). But this functionality is only defined in linux/preempt.h which was not included with the same patch. Fixes: 279e89b2281a ("batman-adv: bla: use netif_rx_ni when not in interrupt context") Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/bridge_loop_avoidance.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index d8c5d3170676..08419a2e6b95 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include