From patchwork Tue Sep 29 11:01:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 263024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DFB4C4741F for ; Tue, 29 Sep 2020 12:20:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D77BF2075A for ; Tue, 29 Sep 2020 12:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601382020; bh=Q9FlJMFp1u43SDghofvXh7Jwp3GFsatpRLTXhTZ21qQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=JP4YW8Iq5etorYo+2ZCLjvEDaYfzTgvuEz4t1XKiR+m3pgOQIZ6VLF/sKIauz0Gle 19UMQ+50nHvLLlZaYt1gsI4eZWjxftnW/rWTsWQq779rKVczDUr0ijSeUYn7ckPDPu xXmyCzHtGRTll6b8bAsNkn43Dhon7f08GxMuIavw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732090AbgI2MUT (ORCPT ); Tue, 29 Sep 2020 08:20:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:49122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729865AbgI2Lfg (ORCPT ); Tue, 29 Sep 2020 07:35:36 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C9FFA23D6B; Tue, 29 Sep 2020 11:30:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601379028; bh=Q9FlJMFp1u43SDghofvXh7Jwp3GFsatpRLTXhTZ21qQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jTxN9BPZLehtzQM9ksXiwZRdqQjnRVgSbLLgGO/VjFwBxLPiQppXLb8UaF2sycN85 H+siqY6Nvw4GiyQEdCk/zSuIh2y5uS8jJ6CjedSb2o6wS8Z6N9Gxua5ifs4ujbmtJb lJjqfx2rb5aVCyYCSnOpCnnedmXbby1wqWDYPVPA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sven Eckelmann , Simon Wunderlich , Sasha Levin Subject: [PATCH 4.19 227/245] batman-adv: Add missing include for in_interrupt() Date: Tue, 29 Sep 2020 13:01:18 +0200 Message-Id: <20200929105958.032892749@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929105946.978650816@linuxfoundation.org> References: <20200929105946.978650816@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Sven Eckelmann [ Upstream commit 4bba9dab86b6ac15ca560ef1f2b5aa4529cbf784 ] 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 Signed-off-by: Sasha Levin --- 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 e71a35a3950de..557d7fdf0b8dc 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include