Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp950334pxb; Thu, 4 Feb 2021 00:57:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSWn/YR4/xQYVrQmad+vleYzTrY6lwQsFLFYVzw5nDoUZWpA9LKuyw8bFZiQxO1mTqwBEo X-Received: by 2002:a17:906:1d0a:: with SMTP id n10mr6947591ejh.22.1612429040500; Thu, 04 Feb 2021 00:57:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612429040; cv=none; d=google.com; s=arc-20160816; b=ORlK2ZfNJOBSINHEuXGo6TTlw4M+n5rjVR0fX/qTHsUEhWhxVclB6LwjGQ+8SPJ8Aw bDqXhpbPAuJ0dCqM3JhFBtREF0ZDO6gHuUMrlQXIdJ8qNNVWaS8fdUL18nrvKp0Hfw9I eIeAhkmrU4nh4/62U1kXjekh14ILfFnEv3Aymap9z2Ja97EK6PfFoDENQuocHeQaxvyf jbQ6m5t3n0p4H6OqdYNiwQKDeifYLInPTuvR/TS9rZt9Bdd41EbGdhXUdZwgqAx1PObB vd2+bBcPfHUJBv9HDP3gCELHWtbPwTyeB4inXrbjiv89vWZkkBDBh3VUaeaBNd5kjIbs clnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wgqtCgxTyEkoatPNuk1/d0sbXAfUIl1+10KCCoubueE=; b=kmI88d0Bc7EHpqDmYccr3COQj0JlciCd81KwsnX1mH/onVHB9ENUlEgRI6nSDr0/CM NXf/mFUeYNqh62x2FdJtyZXz4M6tL+ps+6MtMX+ACG1JCNdozdGESgQSTiudGOnL0JpN tFyvifUP3s6QluTUywdjQpJDZsVXDvCmodHlCft2MfDwFiRB9rIXwBY66AySYl0myfhx LCIGkUrfNEufH2Lbi+uFRZoDBh1LqsMnaCjdTmrzU6TLF+HrfA1zggNQyHpcV5LL48ju YG2r5QUkhGicli7ocVR/6wBv7R7xnQsraUMf3g5NNBtvYpQJPkx1KqdNqp1QFP08kOks wC5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="jCSq/9Hh"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me16si2900785ejb.615.2021.02.04.00.56.55; Thu, 04 Feb 2021 00:57:20 -0800 (PST) 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=@gmail.com header.s=20161025 header.b="jCSq/9Hh"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234982AbhBDI4S (ORCPT + 99 others); Thu, 4 Feb 2021 03:56:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231767AbhBDI4R (ORCPT ); Thu, 4 Feb 2021 03:56:17 -0500 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43B42C061573; Thu, 4 Feb 2021 00:55:37 -0800 (PST) Received: by mail-il1-x12c.google.com with SMTP id y17so1835135ili.12; Thu, 04 Feb 2021 00:55:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wgqtCgxTyEkoatPNuk1/d0sbXAfUIl1+10KCCoubueE=; b=jCSq/9Hh63zcQprobHHi7fqAMnr1T2L7KH/Q67a+uu2UEN7CgnIVX9A/LLfm03nbg9 H1kcCYOYwyB05dsLtHzVaxu3Eu8hTeCsidcToCnq7LqWtlcCu3b4dy+REHvnfFQHMEkv T3QJZLfLx4DHBGXRzSHVJhiXCC4vTsrYG9C2wdGN8hSkoQJIZgTUyDiSMQjS7Pl9qwnY hulCbu3rHsOdcJxUd71ivdXusLLRfzVnIQbAql6TAqa/gXW8g3DTQqB7PnoAU5hFePA0 7dc/unNnpjdRZcKVXxACKnwAXq0U82J0rfR8QoHAp8pqGL0HRnb0ebxTsYnIoo1AyJdr 5lcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wgqtCgxTyEkoatPNuk1/d0sbXAfUIl1+10KCCoubueE=; b=AzKIHMIQRHMr7kbTx5pBLTFKJTnvTcEAsrRzKIGGB23c43ftUZt8qOVPP5p+d1CuzI VLuEQnOlQMl88fEogyKTMv8G1pU17exlg1139MnX/IcEA8N5kDPAX1UdM4bAaNP/ze4U hK9wWZRpR6eeMSjmFVK97aoYqBtBMRldTszUkrnN5yDpHGx2TbIDH845h+d7MMQNsobm apXpH0HJtrDeNCZwc0gay5p62htAImfyBqF1rKhePHUfFIxe9rZae3qX7zyz5FBclAdl QLNcqGtAmi7LzkGafga5S4Xzhv37+/IOwpdcAe1MMT1ebpfORWZ3H6YDS4lmRVb+HW+X 4ynA== X-Gm-Message-State: AOAM530HcKqt4a+zVwg9Arpn1+H7xPFgbbbQmIQcVSFvwTe+PVRJb/YE STSIR3MSwwiK6+gchO6h2NbzMxzGvq6Aqro8WpKAKEgDuYM= X-Received: by 2002:a05:6e02:20e8:: with SMTP id q8mr5961862ilv.205.1612428936646; Thu, 04 Feb 2021 00:55:36 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Syed Nayyar Waris Date: Thu, 4 Feb 2021 14:25:24 +0530 Message-ID: Subject: Re: [PATCH 2/5] lib/test_bitmap.c: Add for_each_set_clump test cases To: Andy Shevchenko Cc: "linus.walleij@linaro.org" , "andriy.shevchenko@linux.intel.com" , "vilhelm.gray@gmail.com" , "michal.simek@xilinx.com" , "arnd@arndb.de" , "rrichter@marvell.com" , "bgolaszewski@baylibre.com" , "yamada.masahiro@socionext.com" , "akpm@linux-foundation.org" , "rui.zhang@intel.com" , "daniel.lezcano@linaro.org" , "amit.kucheria@verdurent.com" , "linux-arch@vger.kernel.org" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-pm@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 26, 2020 at 8:15 PM Andy Shevchenko wrote: > > > > On Saturday, December 26, 2020, Syed Nayyar Waris wrote: >> >> The introduction of the generic for_each_set_clump macro need test >> cases to verify the implementation. This patch adds test cases for >> scenarios in which clump sizes are 8 bits, 24 bits, 30 bits and 6 bits. >> The cases contain situations where clump is getting split at the word >> boundary and also when zeroes are present in the start and middle of >> bitmap. > > > You have to split it to a separate test under drivers/gpio, because now it has no sense to be like this. Hi Andy, How do I split it into separate test under drivers/gpio ? I have thought of making a test_clump_bits.c file in drivers/gpio. But how do I integrate this test file so that tests are executed at runtime? Similar to tests in lib/test_bitmap.c ? I believe I need to make changes in config files so that tests in test_clump_bits.c ( in drivers/gpio ) are executed at runtime. Could you please provide some steps on how to do that. Thank You ! Regards Syed Nayyar Waris