Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1617011ybm; Sat, 30 May 2020 14:58:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyr3RXdgWOpV9+/w4Yiet1mbg7q47X296yL5dM/2YQf61g9GVoORWGteFca7OZOJnXNh7eo X-Received: by 2002:a05:6402:1434:: with SMTP id c20mr14184643edx.27.1590875938537; Sat, 30 May 2020 14:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590875938; cv=none; d=google.com; s=arc-20160816; b=T+84uC4QFXMIjhFlnz3F84sfY1HaDF5LhgM+c70arJ26quWoJYjo4yiecdRJEPMYEP g3x74K/b3XMGWweVj5nRRq/Ceoa+eHQtRpxzpTd0hS/iC7NNwJ21O9dA3hWKUyK9d+gL Y9L2p2jP8smXaQORXRoW5xm1xysqAsII+unY4YQkmG+0pm2OgqiPSw3GMXz53BS+IqD/ Uz7qJ0831GPnA0eMzPAz6Hxl/ySZdHsCu4kcXeByUK+Mn9gl+a3n1taeLSNS5yj4SNMJ gd+AVlITIKoK0bbHWvXVRs2kk/ZDOSvJfeJOJF5Vku/Im27OE31GX/+M3IpFeZQbPHgX Wgug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/Q/62SLj+ZhKCBBeH3KOcxljLVc7oDJKgIMz667CV8Y=; b=N27Tb36QRIfGlzSpjXnme5kNHfKxQ6ABJDniDUHtcx4A+RsYIZHR56rxAJOllvhXKb sgwIGRDz8nioSTmpwrM44ot2JNBEZSJducUVK7fqck3fsuZOmJJIptRtP1uINWeTshCu vjU7210p4CPGXKeq61pEY5pepcTLgQizKAYj/4vr38Fd7Vi9MizPITggrXllIIBEq7Je JmwTwbqo5DpNfhDEj0HLnICpV0+1UBS4oOEfXK45pQ2clwkmANmcq327kF4sEb594p9R 8UZ5kfm7UeYgk3NtnZWpnvgi/DNHBV78AnaBnMloIjTOrubzG8dP7ANDjulE8/gwLAE7 eKMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UiPz3GnF; 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 n27si5106430eja.232.2020.05.30.14.58.35; Sat, 30 May 2020 14:58:58 -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=@gmail.com header.s=20161025 header.b=UiPz3GnF; 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 S1729329AbgE3V4s (ORCPT + 99 others); Sat, 30 May 2020 17:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728741AbgE3V4r (ORCPT ); Sat, 30 May 2020 17:56:47 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69C92C03E969 for ; Sat, 30 May 2020 14:56:47 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id ga6so155352pjb.1 for ; Sat, 30 May 2020 14:56:47 -0700 (PDT) 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=/Q/62SLj+ZhKCBBeH3KOcxljLVc7oDJKgIMz667CV8Y=; b=UiPz3GnFhxQqwWmQHi1p73o0a/ata4PU/VN6BsLjZI8opUKdcpvPwkLdEXSLwXCFwt lZI5OHWGqUiTkT+PkAY349SzFAKHYMuOeAcPHoIEjMYNUtiSqsgfPn4FnmuoMt70EitM +kvo4V8Xxtk9k3RsNxFbUzoSRx2zRidhy/r9Q0l7IRjit7JURpRLvT0pMMALbNJl6mFh 804ph1JS/FeHk3d9PAdy74TtliBUwFmqSwbK9bJ4w02RHIbSWzpqN90doIbwA/gAMLHC qyv+m68X2W6aoBxwr7qK8vxHCB10Wdwo3LR+MC6cnTUSvaBV2AcIReoaOyHhKU5OkGD3 vKOw== 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=/Q/62SLj+ZhKCBBeH3KOcxljLVc7oDJKgIMz667CV8Y=; b=Q+tdkxvHek8E7/2kkvlMybNyitUXJEg7H2fARuhBdcOvDyXXAqQBGsD8vNMdQbx7/D hbCdadxICQXivyyY//LDQOzh7CBseq5x1ZF60cKvZjjo5FLfcYcn3OaU8NV4++pPp5Hm /9dJhDnTSnvJOYR8IfoLpK5kMHRqNph6IdhNOoQSULc+sl94sS8ns/G3dMFgsBeRliBI ELtLwhh+XeBLLp22fq9lvXcWqDB5b47YRODCcm3wyrjaBk4WTMYkJLzn7eSvtTIMe/QF t472coxZLKIsKwAqNIRUgGjVZpHNNzIBS0S2kmmMMw0Y2wSTao3siZFa7xdsE6RL5sPU pg9A== X-Gm-Message-State: AOAM531Qv+wmdrLyKZ1HepUCIkwaewvHrkgVRErwT7SOSB+L4FShTOa2 mWA5Dx1RpP3zaLGOnP6Z4/t0DHpBj5ZXGNgG7GM= X-Received: by 2002:a17:902:ea8a:: with SMTP id x10mr14412358plb.255.1590875806865; Sat, 30 May 2020 14:56:46 -0700 (PDT) MIME-Version: 1.0 References: <20200530004328.30530-1-richard.weiyang@gmail.com> <20200530102531.GA1634618@smile.fi.intel.com> <20200530211940.yninqlngnzfvsvki@master> In-Reply-To: <20200530211940.yninqlngnzfvsvki@master> From: Andy Shevchenko Date: Sun, 31 May 2020 00:56:29 +0300 Message-ID: Subject: Re: [PATCH] lib: make a test module with get_count_order/long To: Wei Yang Cc: Andy Shevchenko , Andrew Morton , Christian Brauner , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 31, 2020 at 12:23 AM Wei Yang wrote: > On Sat, May 30, 2020 at 01:25:31PM +0300, Andy Shevchenko wrote: > >On Sat, May 30, 2020 at 12:43:28AM +0000, Wei Yang wrote: > >> A test module to make sure get_count_order/long returns the correct result. > > > >> lib/Kconfig.debug | 13 ++++++ > >> lib/Makefile | 2 + > >> lib/test_getorder.c | 64 ++++++++++++++++++++++++++++++ > > > >I didn't get why it's not a part of test_bitops? > > > > I see the document of test_bitops says it does exercise on clear_bit and > set_bit. So not sure it is proper to put them together. It's not a problem to amend a documentation as well :-) -- With Best Regards, Andy Shevchenko