From patchwork Fri Oct 13 09:42:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 10004005 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 45C4460216 for ; Fri, 13 Oct 2017 09:43:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38BCA2900D for ; Fri, 13 Oct 2017 09:43:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DD6A29010; Fri, 13 Oct 2017 09:43:31 +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=-6.9 required=2.0 tests=BAYES_00,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 ADEEC2900D for ; Fri, 13 Oct 2017 09:43:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753474AbdJMJna (ORCPT ); Fri, 13 Oct 2017 05:43:30 -0400 Received: from s3.sipsolutions.net ([144.76.63.242]:49242 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753135AbdJMJn3 (ORCPT ); Fri, 13 Oct 2017 05:43:29 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1e2wUE-000389-0G; Fri, 13 Oct 2017 11:42:34 +0200 From: Johannes Berg To: backports@vger.kernel.org Cc: Johannes Berg Subject: [PATCH v2 11/11] backports: no longer support kernels < 3.10 Date: Fri, 13 Oct 2017 11:42:26 +0200 Message-Id: <20171013094226.10021-11-johannes@sipsolutions.net> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171013094226.10021-1-johannes@sipsolutions.net> References: <20171013094226.10021-1-johannes@sipsolutions.net> Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Johannes Berg Since CRYPTO_CMAC was introduced in 3.10, and mac80211 depends on it, we basically get nothing out of it anyway. I'm not removing the support code (yet) since it actually compiles, and perhaps somebody has a need for (certain) kernel versions lower than 3.10. Signed-off-by: Johannes Berg --- README | 2 +- devel/backports-update-manager | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README b/README index 8d544eb4870e..2b494c8c7238 100644 --- a/README +++ b/README @@ -8,7 +8,7 @@ down to older kernels. It currently backports the following subsystems: * WWAN This package provides the latest Linux kernel subsystem enhancements -for kernels 3.0 and above. +for kernels 3.10 and above. # Documentation diff --git a/devel/backports-update-manager b/devel/backports-update-manager index 8069fd485ea6..dc9697253e84 100755 --- a/devel/backports-update-manager +++ b/devel/backports-update-manager @@ -18,6 +18,8 @@ SPACE_PER_KERNEL=101 # ~13 MiB of both deb files SPACE_PER_KERNEL_DEB=13 +MIN_VERSION = (3, 10) + GIT_TREES = [ "git://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git", "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git", @@ -82,6 +84,12 @@ class backport_kernel_updater: while len(sver[0]) < n: sver[0].append(0) + filtered = {} + for subvers in last: + if tuple(make_version_tuple(subvers[1:])) >= MIN_VERSION: + filtered[subvers] = last[subvers] + last = filtered + result = [] for subvers in last.values(): subvers.sort(reverse=True)