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=-2.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 C73F5C433E0 for ; Thu, 4 Feb 2021 08:56:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C7B564F3F for ; Thu, 4 Feb 2021 08:56:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234924AbhBDI4R (ORCPT ); Thu, 4 Feb 2021 03:56:17 -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-Google-Smtp-Source: ABdhPJz9k6ybKd/Iiv1NxWPmTbfh043bu1P7WPQnmsZo7oVbMtqG2ILSVjiEDDVCGcHmpd+YXWLg0ahrVxJ9GSai0fA= 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-gpio@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 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=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 5BE62C433E0 for ; Thu, 4 Feb 2021 08:57:03 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0B6A964E4B for ; Thu, 4 Feb 2021 08:57:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B6A964E4B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WtkSMtsu8OGzO4f/4B9YNoFxUeLNovrDZTIz1kHUcQQ=; b=Jlo7Vw+npyr62uRQvnUTX9J+r Z5f5dtm9LPaPUje5MFoXbjL8lbrd+1Yon6kkBnm/XKSHFNm5Ugxuj7tLHGzVjvTDhjrUQFUpI83lo 6DubvPdIK7XmnCL6pb6beT2zaNF9qCI7v1eBUbLrygUt7r+Mdf5O2F4jtoy6PJxavL8wNNzNkmBwF QJaxqBM52qaQLOtgGgRxBhSyDhI3fUb717Ulkfajj6g+/8fajdIMwHINRZndPAxoXoUfIansDewrJ YUP8CkuwSNbfdhzVxoJ8eE1JUcaupcxowo6RUULSXjEhQ6WLXRMErNezuSPjk3f9TbnGrY/4mPVwY U9+OqsnsA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7aQR-0005nd-3G; Thu, 04 Feb 2021 08:55:43 +0000 Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7aQO-0005nA-AI for linux-arm-kernel@lists.infradead.org; Thu, 04 Feb 2021 08:55:41 +0000 Received: by mail-il1-x133.google.com with SMTP id e1so1910934ilu.0 for ; Thu, 04 Feb 2021 00:55:38 -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=QAWM9XQgCOKjbk/BEQ4gHZ2Uq144AJN1sc8rNqVo3AqIJ6VXx7i9fCP7Tg8f5oPhcg RE/xyCyuB7SU98zimyp+XQpI49jQkquFm1lW6wzonk3BmYpj5ZMYH4iRbk7RYCx83Asf QQNu8ECv1rNMeO05N6G0Bh3lAVOtGLVqfQ7HHSBwjSKLoHsfK8FPFr7JFuT6vwecizHG DmMuc0R61q9kKDd9brA41/lK7UwUfiYwtzF0wzSWROOyzFGEFHz76EYmxUENGREiZt1f b4mFR+VOgPp7YzjCLD/PwbEqcmJY8MN+7xvBUKDwC27B2Vw2OaWekD9JrrS3zBgSLLNp d+og== X-Gm-Message-State: AOAM530TaE1pxskjppNfPsqK+siZFi7nMud++bvOr8dWVRrvbDQj1Ade wIWKfSbFjGgQnbNnxkF+nFrzdIs5HmMPV0ss3Lw= X-Google-Smtp-Source: ABdhPJz9k6ybKd/Iiv1NxWPmTbfh043bu1P7WPQnmsZo7oVbMtqG2ILSVjiEDDVCGcHmpd+YXWLg0ahrVxJ9GSai0fA= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210204_035540_387464_96B76E33 X-CRM114-Status: GOOD ( 14.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "linux-arch@vger.kernel.org" , "amit.kucheria@verdurent.com" , "arnd@arndb.de" , "yamada.masahiro@socionext.com" , "linux-kernel@vger.kernel.org" , "linus.walleij@linaro.org" , "daniel.lezcano@linaro.org" , "vilhelm.gray@gmail.com" , "michal.simek@xilinx.com" , "bgolaszewski@baylibre.com" , "rrichter@marvell.com" , "linux-gpio@vger.kernel.org" , "linux-pm@vger.kernel.org" , "akpm@linux-foundation.org" , "andriy.shevchenko@linux.intel.com" , "rui.zhang@intel.com" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel