From patchwork Sun Dec 2 20:51:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 10708259 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 C0CEF17F0 for ; Sun, 2 Dec 2018 20:51:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3B522A80B for ; Sun, 2 Dec 2018 20:51:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7F7F2A80D; Sun, 2 Dec 2018 20:51:46 +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 4477F2A80B for ; Sun, 2 Dec 2018 20:51:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725788AbeLBUvt (ORCPT ); Sun, 2 Dec 2018 15:51:49 -0500 Received: from mx2.mailbox.org ([80.241.60.215]:33884 "EHLO mx2.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbeLBUvt (ORCPT ); Sun, 2 Dec 2018 15:51:49 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 05D1EA10FC; Sun, 2 Dec 2018 21:51:44 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id qVNnFy8MtB8c; Sun, 2 Dec 2018 21:51:43 +0100 (CET) From: Hauke Mehrtens To: johannes@sipsolutions.net Cc: backports@vger.kernel.org, Hauke Mehrtens Subject: [PATCH 6/7] backports: Add missing includes for mt76 driver. Date: Sun, 2 Dec 2018 21:51:30 +0100 Message-Id: <20181202205131.13519-7-hauke@hauke-m.de> In-Reply-To: <20181202205131.13519-1-hauke@hauke-m.de> References: <20181202205131.13519-1-hauke@hauke-m.de> Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch was taken from kernel 4.20. Signed-off-by: Hauke Mehrtens --- patches/0013-fix-makefile-includes/mt76.patch | 49 +++++++++++++++++++++++++++ patches/0090-use-skb_pad.patch | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 patches/0013-fix-makefile-includes/mt76.patch diff --git a/patches/0013-fix-makefile-includes/mt76.patch b/patches/0013-fix-makefile-includes/mt76.patch new file mode 100644 index 00000000..9edf61f2 --- /dev/null +++ b/patches/0013-fix-makefile-includes/mt76.patch @@ -0,0 +1,49 @@ +From db6bb5c6c19451faa935934e6b45416fd7dd777a Mon Sep 17 00:00:00 2001 +From: Felix Fietkau +Date: Mon, 24 Sep 2018 11:13:11 +0200 +Subject: mt76: include linux/module.h in files using MODULE_* + +Fix source files using MODULE_* macros without including linux/module.h + +Signed-off-by: Felix Fietkau + +--- a/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c ++++ b/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c +@@ -13,6 +13,7 @@ + * GNU General Public License for more details. + */ + ++#include + #include + #include + #include +--- a/drivers/net/wireless/mediatek/mt76/usb_mcu.c ++++ b/drivers/net/wireless/mediatek/mt76/usb_mcu.c +@@ -14,6 +14,7 @@ + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + ++#include + #include + + #include "mt76.h" +--- a/drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c ++++ b/drivers/net/wireless/mediatek/mt76/mt76x2_eeprom.c +@@ -14,6 +14,7 @@ + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + ++#include + #include + #include "mt76x2.h" + #include "mt76x2_eeprom.h" +--- a/drivers/net/wireless/mediatek/mt76/usb.c ++++ b/drivers/net/wireless/mediatek/mt76/usb.c +@@ -14,6 +14,7 @@ + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + ++#include + #include "mt76.h" + #include "usb_trace.h" + #include "dma.h" diff --git a/patches/0090-use-skb_pad.patch b/patches/0090-use-skb_pad.patch index 086328c1..9f29d6cb 100644 --- a/patches/0090-use-skb_pad.patch +++ b/patches/0090-use-skb_pad.patch @@ -1,6 +1,6 @@ --- a/drivers/net/wireless/mediatek/mt76/usb.c +++ b/drivers/net/wireless/mediatek/mt76/usb.c -@@ -535,7 +535,7 @@ int mt76u_skb_dma_info(struct sk_buff *s +@@ -536,7 +536,7 @@ int mt76u_skb_dma_info(struct sk_buff *s } if (unlikely(pad)) {