From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 762D2C43460 for ; Sun, 11 Apr 2021 13:49:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 54FB561244 for ; Sun, 11 Apr 2021 13:49:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236630AbhDKNtj (ORCPT ); Sun, 11 Apr 2021 09:49:39 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:33298 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235987AbhDKNoi (ORCPT ); Sun, 11 Apr 2021 09:44:38 -0400 Date: Sun, 11 Apr 2021 13:43:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1618148626; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sKXFKfobxhcmyD3R97AaWpUXq0Da9PtDztKL5ih1Jfc=; b=ykeTIdO9Mx1ftrCIqcEgPSaSvH4zozQJss9otH57c0/yxZAcgTY61Vt2Zpv41otHI6/mmk CZ2ZwzpckWvbVLnxqKzAvustPZF4YNrJEsn8/c1yTk2XGoNVoAWwt68zGW/ZvpISVC9l10 YU85sQ+3mPzPeDvZ0FgYHeL0CXwpGGDZMPa1yZS9F9sA5onn10CwnGdcEMe7nhQF8MugLq tfm2gzLLmr2tz20Et3sZIQSB73Snnp4jmMXtAZbNsU1aUwool8gbpkAirmhPKiAhniSTGM 07PP4f0KGjPcrdUaehzMxZ3jGF7TNJPuZO9aBoiDwO/pxgdP5vbxquGQZYKFFA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1618148626; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sKXFKfobxhcmyD3R97AaWpUXq0Da9PtDztKL5ih1Jfc=; b=D0Ftz/DPffiLdiM3uj/4h+FesMaReGSEhXKufa2gc8+PwwNLjU67Yy3EGBIQyItvN62dNa 9Jm4Jf9j2V/JDuDQ== From: "tip-bot2 for Paul Gortmaker" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/rcu] lib: test_bitmap: add tests to trigger ERANGE case. Cc: Yury Norov , Rasmus Villemoes , Andy Shevchenko , Paul Gortmaker , "Paul E. McKenney" , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <161814862614.29796.8505409915398576752.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/rcu branch of tip: Commit-ID: 6fef5905fbd691aeb91093056b27d5ee7b106097 Gitweb: https://git.kernel.org/tip/6fef5905fbd691aeb91093056b27d5ee7b106097 Author: Paul Gortmaker AuthorDate: Sun, 21 Feb 2021 03:08:21 -05:00 Committer: Paul E. McKenney CommitterDate: Mon, 08 Mar 2021 14:16:58 -08:00 lib: test_bitmap: add tests to trigger ERANGE case. Add tests that specify a valid range, but one that is outside the width of the bitmap for which it is to be applied to. These should trigger an -ERANGE response from the code. Cc: Yury Norov Cc: Rasmus Villemoes Cc: Andy Shevchenko Acked-by: Yury Norov Reviewed-by: Andy Shevchenko Signed-off-by: Paul Gortmaker Signed-off-by: Paul E. McKenney --- lib/test_bitmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/test_bitmap.c b/lib/test_bitmap.c index 853a3a6..0f2e91d 100644 --- a/lib/test_bitmap.c +++ b/lib/test_bitmap.c @@ -337,6 +337,8 @@ static const struct test_bitmap_parselist parselist_tests[] __initconst = { {-EINVAL, "-1", NULL, 8, 0}, {-EINVAL, "-0", NULL, 8, 0}, {-EINVAL, "10-1", NULL, 8, 0}, + {-ERANGE, "8-8", NULL, 8, 0}, + {-ERANGE, "0-31", NULL, 8, 0}, {-EINVAL, "0-31:", NULL, 32, 0}, {-EINVAL, "0-31:0", NULL, 32, 0}, {-EINVAL, "0-31:0/", NULL, 32, 0},