Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1226145pxf; Fri, 9 Apr 2021 03:18:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiWrizRMAQHr1T+aYrpojFVVVVkCN4YmRfBJ4pV+N8YGY6DN+e3+w143jUmbIbhRQhElEi X-Received: by 2002:a17:907:3f22:: with SMTP id hq34mr6841179ejc.535.1617963504663; Fri, 09 Apr 2021 03:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617963504; cv=none; d=google.com; s=arc-20160816; b=cjmsazLX6Yrbx/lq1/hpBrxQXCw/zmkPu8pzFP8Q3SEzH4raCy//669jW/W+/rGkiF cHRn6fBsS+6isLA7jhFBSbS4N7Lrf2Z0FnsXtlFtAwhJwd5s+/ihr5fk39dhjLrINKBP GA7v4TbAIyuHuMgHPLQfIa2LJIRUHQAaBlIuq6pPWPAOU31rB3ssCFgXz0/aCaMcFyfL UBA+aZbwY3upRZSHPZORNcLcthTVbIjJqVR3XwAlh2YnUyNXkPDRdF86BvmbyIE0k49P ctLELenQWVKjqA7ANBkXFPSuJLqbmkSFtJks0I6p99sToC7CuljtpDcIUQZEqeUwQolV LPpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Jjpig9ErbKpNtg4AtM+KAKrQ4HfGw9Mkh0Mx0RtCjGc=; b=z/YYY3pTHXHshA0Zj+3xjg+uoHHHBXao+Ga7Gj+cSYCVY4aJqYahVeO6LiGONepG9H LtB/2UiaHCRlUwFwLqIyt25mEz6/vVkOasKSPETh2bAUwnfwDAX9ei/4htA/nP4feudy m1RewQsmtZKKMXFn/GrinTp+Uth672gSGQcKVMRi8/bnn2+5YSC5PDLfe+uq0HuvcC9h 55BA/nC8cOxB2KXkPCvskuFeXoHDP8j4jeYgsKbNlEtES3VhP6OHGjb3WJPnXrICwG9V eJOzQY1JE1VfihYW5os8nsKXwgD/xVZ6CnsRrC3dTl5ymcyPrEpboR13D2kQZGtCDvgD gVyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i65Fd4Lt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lt25si1695865ejb.646.2021.04.09.03.18.01; Fri, 09 Apr 2021 03:18:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i65Fd4Lt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234430AbhDIKOe (ORCPT + 99 others); Fri, 9 Apr 2021 06:14:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:50620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234207AbhDIKFM (ORCPT ); Fri, 9 Apr 2021 06:05:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3A5C261220; Fri, 9 Apr 2021 10:01:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617962498; bh=2bBfFwl2STD3U2v71d89twdNtHHGFFxTU9BETJfBpso=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i65Fd4LtFqa0eIgNFZjpgJ7uU+xWghocc1HJrXoFmXsT42GUnIQwQK7v7a49nbON+ tFxfdpfra9YXWCLnH/E8cJo3NJ1q1Q9KJr6H+/hHon+nvF+AJn17K32QMl7PYH4xCC GsmOj0bBiAKK/3Ef6E73Jh8/sSFrSofG7ZCOs3vI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Gow , Daniel Latypov , Brendan Higgins , Shuah Khan , Sasha Levin Subject: [PATCH 5.11 08/45] kunit: tool: Fix a python tuple typing error Date: Fri, 9 Apr 2021 11:53:34 +0200 Message-Id: <20210409095305.656480586@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210409095305.397149021@linuxfoundation.org> References: <20210409095305.397149021@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Gow [ Upstream commit 7421b1a4d10c633ca5f14c8236d3e2c1de07e52b ] The first argument to namedtuple() should match the name of the type, which wasn't the case for KconfigEntryBase. Fixing this is enough to make mypy show no python typing errors again. Fixes 97752c39bd ("kunit: kunit_tool: Allow .kunitconfig to disable config items") Signed-off-by: David Gow Reviewed-by: Daniel Latypov Acked-by: Brendan Higgins Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/kunit/kunit_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/kunit/kunit_config.py b/tools/testing/kunit/kunit_config.py index bdd60230764b..27fe086d2d0d 100644 --- a/tools/testing/kunit/kunit_config.py +++ b/tools/testing/kunit/kunit_config.py @@ -13,7 +13,7 @@ from typing import List, Set CONFIG_IS_NOT_SET_PATTERN = r'^# CONFIG_(\w+) is not set$' CONFIG_PATTERN = r'^CONFIG_(\w+)=(\S+|".*")$' -KconfigEntryBase = collections.namedtuple('KconfigEntry', ['name', 'value']) +KconfigEntryBase = collections.namedtuple('KconfigEntryBase', ['name', 'value']) class KconfigEntry(KconfigEntryBase): -- 2.30.2