From patchwork Wed Mar 27 03:00:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chia-Lin Kao (AceLan)" X-Patchwork-Id: 10872449 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 5CEB317E0 for ; Wed, 27 Mar 2019 03:00:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 466FF28B68 for ; Wed, 27 Mar 2019 03:00:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37DD528BF9; Wed, 27 Mar 2019 03:00:52 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 D604028B68 for ; Wed, 27 Mar 2019 03:00:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731664AbfC0DAv (ORCPT ); Tue, 26 Mar 2019 23:00:51 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37005 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726922AbfC0DAv (ORCPT ); Tue, 26 Mar 2019 23:00:51 -0400 Received: by mail-pg1-f196.google.com with SMTP id q206so9216063pgq.4 for ; Tue, 26 Mar 2019 20:00:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=7N1ouRxa4TSFGu4udslbaDq+i5rQRCGlHsRn/0j1M6I=; b=lZTBBxgqp8Z7wfUg2Bi9Po3UaIc6CdQeNi3kc7y53Yrzu4ZUv9L0DLGybaEQCTF/xb 1lJVIplqyqgVbCN7XpfNZUKNKHFbfRt/pIWHAEgD0jRmuYQZxhrL/ooOK44tXE040FNE YQJRrH3dBPzM9krXjvkgU4AcqAeUz2RWq8JtWLZicM/LU1M+zBL+SuiZZfgRkpHk1JrP E8Ff8TqRdD6YywGG2URtm7qVhzRpNBfSvXxg0wd/MNWBYaG873G5UzJWX2nMKQg/o6E5 pY6BttEF+CaqM3ZN/EpuSo7Va5AeB9/Cy3SkfDxp7HopDbRrNhI9KTi3avebOeAlvQ4j YWoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=7N1ouRxa4TSFGu4udslbaDq+i5rQRCGlHsRn/0j1M6I=; b=m0O2zTrcjSTlgmEAktGK5DQ6zr7W+nld8tUftbg4dDhbmk+y8FIxi8axB6Ia7Qmct2 rRQJp5lm/gHcbzeCQtPxvuelSujfmD6gkd/5rcUa9tanh1LUIMgebYJGVY84eGkQ0hqx uZV26q7CJtSd1A5lwWqqlW5UtZvUGGOfysB8XSdCJ+X3uMx0GzXiOttPRAJj0MmN/Ql9 OCPGsdVbgHWwLUxYD1xbOef7LacSg+fwuD5U3SKglsURWTBZI7jCEhVkW//X9oZwju0g +tLKMf+lN+QDVJQr5+oXKQr/JCozn3dcxNdpCRtA/mg8a8Z6vxQDiPEVNSJEu1xgMyF6 OoYQ== X-Gm-Message-State: APjAAAVngNSjgyEpaVpOj746kzS4rcpHATAak4wU3v7KudSM1dyKXv5o YO56RYW3nDs+50rUbbkKCSk= X-Google-Smtp-Source: APXvYqz6+k7SsYrDLUTwwicSNfLvGYJtn2MX6VZpuFa6KQ1+EZKuBlGSkPO/S8+hwNO14suHcCw7LA== X-Received: by 2002:aa7:9090:: with SMTP id i16mr31965796pfa.85.1553655650614; Tue, 26 Mar 2019 20:00:50 -0700 (PDT) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id w67sm35854665pfw.173.2019.03.26.20.00.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2019 20:00:49 -0700 (PDT) From: AceLan Kao To: hauke@hauke-m.de, mcgrof@kernel.org, backports@vger.kernel.org Subject: [PATCH v3 1/3] backports: remove mt76.patch Date: Wed, 27 Mar 2019 11:00:42 +0800 Message-Id: <20190327030044.28263-2-acelan.kao@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190327030044.28263-1-acelan.kao@canonical.com> References: <20190327030044.28263-1-acelan.kao@canonical.com> Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The patch patches/0013-fix-makefile-includes/mt76.patch was added in upstream Linux commit 85b7e2acd31b ("mt76: Add missing include of linux/module.h") which was added in v5.1-rc1 Signed-off-by: AceLan Kao --- patches/0013-fix-makefile-includes/mt76.patch | 10 ---------- 1 file changed, 10 deletions(-) delete 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 deleted file mode 100644 index 4f122c46..00000000 --- a/patches/0013-fix-makefile-includes/mt76.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c -+++ b/drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c -@@ -15,6 +15,7 @@ - */ - #include - #include -+#include - - #include "mt76x0.h" - #include "mcu.h" From patchwork Wed Mar 27 03:00:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chia-Lin Kao (AceLan)" X-Patchwork-Id: 10872451 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 B7793925 for ; Wed, 27 Mar 2019 03:00:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A284D28B68 for ; Wed, 27 Mar 2019 03:00:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96B6C28BF9; Wed, 27 Mar 2019 03:00:54 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 2396D28B68 for ; Wed, 27 Mar 2019 03:00:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731690AbfC0DAx (ORCPT ); Tue, 26 Mar 2019 23:00:53 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46880 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726922AbfC0DAx (ORCPT ); Tue, 26 Mar 2019 23:00:53 -0400 Received: by mail-pf1-f193.google.com with SMTP id 9so8988214pfj.13 for ; Tue, 26 Mar 2019 20:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=YLOk9AIveWTj1Mb4Yl5OAp2WZPbkTo+QjIG+cLHKRQU=; b=cvK5KkyJLsFBZVkF8frHYJyG5HTVP0o2Mq13g7U9WWR4DG79NT1CoLluetXq7CFdge tyT2K+3QIiIvgFiBOw7aGRJ+CF5dN/9A15J1ydDyBka5hGY81+F7X2rA21HWplEOsoqF 80uyynfa1nP/jFaH8jk9N/Vj2uitt6YQ0wysl1exNZyXz1NYlZrJfcMHCkgLBG89AzvG 5EEYujPyOjv9qBxONus0uvsOSsyX7FhrB+i7FMa5psztbQspJZgrXZmOqiK7hGiO4NN0 QOPN8xHYJmVjoOT/lkws8QerOF6iEyWS33JyQ/VIQPI0uik27pMKXjK3m2daZHdOQcU/ +jGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=YLOk9AIveWTj1Mb4Yl5OAp2WZPbkTo+QjIG+cLHKRQU=; b=uSPMhHKfWC5to2yeXgR/3+pfd+mL6btkSea2K2FNopOjqynhSvxriRy/aX/ikiKqE7 dG8ugeIWFszsNxHQcQomrq+DAuaJ0r01H0bDYVjmSKhGOcdl0RdKRdBum1y07uTwf/gX 6IdBE/iaomczXiq1+q7oOo2J9d3/3P16KZfeVpXaeQrp5UEvzbziYCACb2spdM0WySbg jhCw/x8EAMaJ3GVd+qQEMaeHPT5ToxlSLyL5tKtYDm72oR/ftuR51OhFvQsf+nJm4Fy8 N2y8v+pfYaaJk0JUJryj1q4ryw7fL6ZZsvWW9nr+jKbnI8NOvlo75ybFDHISQ0aOy/7i mEaQ== X-Gm-Message-State: APjAAAU0iVOpnn0NtEjnujSVoBbvWpOh98twNUBEulEpBV5qXizJf647 kll6A1tr3DlAVGi9K9qzC7M= X-Google-Smtp-Source: APXvYqzWzqFuqDZ47OQFE9i1QbTBGB/cnsgC5q43vJb1wHR0WWuRwG8QBUBo5OLZHFrae88lWLnCPA== X-Received: by 2002:a65:5b44:: with SMTP id y4mr14825293pgr.446.1553655652961; Tue, 26 Mar 2019 20:00:52 -0700 (PDT) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id c134sm29470974pfc.87.2019.03.26.20.00.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2019 20:00:52 -0700 (PDT) From: AceLan Kao To: hauke@hauke-m.de, mcgrof@kernel.org, backports@vger.kernel.org Subject: [PATCH v3 2/3] backports: update backport/backport-include/net/netlink.h Date: Wed, 27 Mar 2019 11:00:43 +0800 Message-Id: <20190327030044.28263-3-acelan.kao@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190327030044.28263-1-acelan.kao@canonical.com> References: <20190327030044.28263-1-acelan.kao@canonical.com> Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add new macros introduced from v5.1-rc1 23323289b154 netlink: reduce NLA_POLICY_NESTED{,_ARRAY} arguments v3: Fix v4.20 compilation error Signed-off-by: AceLan Kao --- backport/backport-include/net/netlink.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/backport/backport-include/net/netlink.h b/backport/backport-include/net/netlink.h index 4af73631..d8237f10 100644 --- a/backport/backport-include/net/netlink.h +++ b/backport/backport-include/net/netlink.h @@ -4,6 +4,19 @@ #include #include +#if LINUX_VERSION_IS_LESS(5,1,0) +#undef NLA_POLICY_NESTED +#undef NLA_POLICY_NESTED_ARRAY +#define _NLA_POLICY_NESTED(maxattr, policy) \ + { .type = NLA_NESTED, .validation_data = policy, .len = maxattr } +#define _NLA_POLICY_NESTED_ARRAY(maxattr, policy) \ + { .type = NLA_NESTED_ARRAY, .validation_data = policy, .len = maxattr } +#define NLA_POLICY_NESTED(policy) \ + _NLA_POLICY_NESTED(ARRAY_SIZE(policy) - 1, policy) +#define NLA_POLICY_NESTED_ARRAY(policy) \ + _NLA_POLICY_NESTED_ARRAY(ARRAY_SIZE(policy) - 1, policy) +#endif /* < 5.1 */ + #if LINUX_VERSION_IS_LESS(4,20,0) /* can't backport using the enum - need to override */ #define NLA_UNSPEC 0 @@ -59,11 +72,6 @@ struct backport_nla_policy { #define NLA_POLICY_ETH_ADDR NLA_POLICY_EXACT_LEN(ETH_ALEN) #define NLA_POLICY_ETH_ADDR_COMPAT NLA_POLICY_EXACT_LEN_WARN(ETH_ALEN) -#define NLA_POLICY_NESTED(maxattr, policy) \ - { .type = NLA_NESTED, .validation_data = policy, .len = maxattr } -#define NLA_POLICY_NESTED_ARRAY(maxattr, policy) \ - { .type = NLA_NESTED_ARRAY, .validation_data = policy, .len = maxattr } - #define __NLA_ENSURE(condition) (sizeof(char[1 - 2*!(condition)]) - 1) #define NLA_ENSURE_INT_TYPE(tp) \ (__NLA_ENSURE(tp == NLA_S8 || tp == NLA_U8 || \ From patchwork Wed Mar 27 03:00:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chia-Lin Kao (AceLan)" X-Patchwork-Id: 10872453 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 310FD925 for ; Wed, 27 Mar 2019 03:00:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1ADDB28B68 for ; Wed, 27 Mar 2019 03:00:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C79828C0C; Wed, 27 Mar 2019 03:00:57 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 A882928B68 for ; Wed, 27 Mar 2019 03:00:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731701AbfC0DA4 (ORCPT ); Tue, 26 Mar 2019 23:00:56 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:43516 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726922AbfC0DA4 (ORCPT ); Tue, 26 Mar 2019 23:00:56 -0400 Received: by mail-pg1-f195.google.com with SMTP id z9so2925146pgu.10 for ; Tue, 26 Mar 2019 20:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=0iO9tkOGqcI0tvGbQKa6YOU9sxnGsx47exhRnLQXXSw=; b=omUuBi3Sg3LPZTm3wqsBo+9Zeq7W6xN7vEKBybOzQpise8TB90WPlJkZaDU6C5c9fn 6rg2w039CYvuLJv4A1H9cggpRqZymqBTirpRv2ygV7aCwmz9THIgzrpmo4Yd08ibLOvz BEDuoDmf+WXuxVgJ6XCont+cNdxNkd9PI77l+ZN7d2KAkeI3AhHAuWhwq8oGzvwaoHFl s5wNKit1DyKnbQiXTPKyBwRIIlnsP7SR1ORNDQNBBCSgMVrMjMdJD7golArXpDFDTnWE wqyuUXvgJwuzxheQKHN3fiW6ImyrWFtVizP6cXZlYa6cUoUAiMY7/5xggoe45EqgHPMi MzNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=0iO9tkOGqcI0tvGbQKa6YOU9sxnGsx47exhRnLQXXSw=; b=tdCBcEk8qkvX7iB/+u+8LJZuBZRB75l9tDsg2tbcIlPr4nv+zs3HKA0qkU25pW+IQ6 0CYngcbuB6VRi2K141S3/A2HK6MvOtMEm2ewajdwcNYbAQHV/+jvDRDofYwfuS94ero6 u3W45jcV3/vcdatLbFHiaVUPdDBl9mL4Htpi+hdUh36O8DbOhC3zhqKhRLzvRTn1jC8b asrr3MVDjsQEQkmEQ6ebVdpw6LwFHSwk7CGaI1WXQS2ntUj7pPs9abDkV2+FDDofxnWo MDl8bwji8gptRdCcgtu0pVwqZsGWOd8YPujql4sVjXNMymlgKOPdxQ+bk2/yLNxJfeNM g00w== X-Gm-Message-State: APjAAAXhzD2rp+gGZ3pEyQoYxw/P+uRjswMdthG66FkhXDjCUcXvpmzB gLTiJLT2r8Xptf5RD+1Dn7U= X-Google-Smtp-Source: APXvYqy2ZKsY4U1h5Em7qAQCPpYhJr3ZGct9zXzypSxU6JvB/xr3PMiylUvS0M2qlVTl1/fqMDhklA== X-Received: by 2002:aa7:8609:: with SMTP id p9mr32982477pfn.166.1553655655451; Tue, 26 Mar 2019 20:00:55 -0700 (PDT) Received: from localhost (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id z77sm38785243pfi.155.2019.03.26.20.00.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2019 20:00:54 -0700 (PDT) From: AceLan Kao To: hauke@hauke-m.de, mcgrof@kernel.org, backports@vger.kernel.org Subject: [PATCH v3 3/3] backports: fix compilation error against v4.4 kernel Date: Wed, 27 Mar 2019 11:00:44 +0800 Message-Id: <20190327030044.28263-4-acelan.kao@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190327030044.28263-1-acelan.kao@canonical.com> References: <20190327030044.28263-1-acelan.kao@canonical.com> Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the smp_acquire__after_ctrl_dep macro to compat/lib-refcount.c to fix the compilation error /tmp/tmp.Z85sMNyuzD/backports-5.1-rc1-test1/backports-5.1-rc1/compat/lib-refcount.c: In function 'backport_refcount_sub_and_test_checked': /tmp/tmp.Z85sMNyuzD/backports-5.1-rc1-test1/backports-5.1-rc1/compat/lib-refcount.c:198:3: error: implicit declaration of function 'smp_acquire__after_ctrl_dep' [-Werror=implicit-function-declaration] smp_acquire__after_ctrl_dep(); ^ Signed-off-by: AceLan Kao --- patches/lib-refcount.patch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/patches/lib-refcount.patch b/patches/lib-refcount.patch index 28106342..ae568f8d 100644 --- a/patches/lib-refcount.patch +++ b/patches/lib-refcount.patch @@ -2,11 +2,15 @@ diff --git a/compat/lib-refcount.c b/compat/lib-refcount.c index 5d0582a..8d108f9 100644 --- a/compat/lib-refcount.c +++ b/compat/lib-refcount.c -@@ -39,6 +39,7 @@ +@@ -42,6 +42,11 @@ #include #include #include +#include ++ ++#ifndef smp_acquire__after_ctrl_dep ++#define smp_acquire__after_ctrl_dep() smp_rmb() ++#endif /** * refcount_add_not_zero_checked - add a value to a refcount unless it is 0