From patchwork Mon Jul 1 21:49:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 11026817 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 50B6A14F6 for ; Mon, 1 Jul 2019 21:50:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46536286E2 for ; Mon, 1 Jul 2019 21:50:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B1B728793; Mon, 1 Jul 2019 21:50:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAC3E286E2 for ; Mon, 1 Jul 2019 21:50:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727043AbfGAVuN (ORCPT ); Mon, 1 Jul 2019 17:50:13 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:41324 "EHLO mx1.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727028AbfGAVuN (ORCPT ); Mon, 1 Jul 2019 17:50:13 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id AF12D504A1; Mon, 1 Jul 2019 23:50:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id 2-USelvedjZd; Mon, 1 Jul 2019 23:49:58 +0200 (CEST) From: Hauke Mehrtens To: backports@vger.kernel.org Cc: Hauke Mehrtens Subject: [PATCH 14/18] patches: rtw88: Add missing include on kernel 3.18 Date: Mon, 1 Jul 2019 23:49:09 +0200 Message-Id: <20190701214914.8066-15-hauke@hauke-m.de> In-Reply-To: <20190701214914.8066-1-hauke@hauke-m.de> References: <20190701214914.8066-1-hauke@hauke-m.de> MIME-Version: 1.0 Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On kernel 3.18 linux/module.h is not indirectly included in this driver. On some other kernel version linux/interrupt.h is not indirectly included, but needed. This fixes some compile problems in the rtw88 driver. Signed-off-by: Hauke Mehrtens --- .../0013-fix-makefile-includes/rtw88.patch | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 patches/0013-fix-makefile-includes/rtw88.patch diff --git a/patches/0013-fix-makefile-includes/rtw88.patch b/patches/0013-fix-makefile-includes/rtw88.patch new file mode 100644 index 00000000..454c9f89 --- /dev/null +++ b/patches/0013-fix-makefile-includes/rtw88.patch @@ -0,0 +1,40 @@ +--- a/drivers/net/wireless/realtek/rtw88/main.c ++++ b/drivers/net/wireless/realtek/rtw88/main.c +@@ -12,6 +12,7 @@ + #include "reg.h" + #include "efuse.h" + #include "debug.h" ++#include + + static bool rtw_fw_support_lps; + unsigned int rtw_debug_mask; +--- a/drivers/net/wireless/realtek/rtw88/rtw8822b.c ++++ b/drivers/net/wireless/realtek/rtw88/rtw8822b.c +@@ -12,6 +12,7 @@ + #include "mac.h" + #include "reg.h" + #include "debug.h" ++#include + + static void rtw8822b_config_trx_mode(struct rtw_dev *rtwdev, u8 tx_path, + u8 rx_path, bool is_tx2_path); +--- a/drivers/net/wireless/realtek/rtw88/rtw8822c.c ++++ b/drivers/net/wireless/realtek/rtw88/rtw8822c.c +@@ -12,6 +12,7 @@ + #include "mac.h" + #include "reg.h" + #include "debug.h" ++#include + + static void rtw8822c_config_trx_mode(struct rtw_dev *rtwdev, u8 tx_path, + u8 rx_path, bool is_tx2_path); +--- a/drivers/net/wireless/realtek/rtw88/pci.c ++++ b/drivers/net/wireless/realtek/rtw88/pci.c +@@ -9,6 +9,7 @@ + #include "tx.h" + #include "rx.h" + #include "debug.h" ++#include + + static u32 rtw_pci_tx_queue_idx_addr[] = { + [RTW_TX_QUEUE_BK] = RTK_PCI_TXBD_IDX_BKQ,