Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp320838ybs; Sun, 24 May 2020 06:27:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3oH4rB31nee4bLwyYVbb7+rw5QzNRRSp/Ge7GKaLOfCxN1SJW49FF6DMD7UTqSXnLKcsO X-Received: by 2002:aa7:d691:: with SMTP id d17mr11186418edr.273.1590326879163; Sun, 24 May 2020 06:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590326879; cv=none; d=google.com; s=arc-20160816; b=jxu8ebmZ+QZGtYB82oZb7ckDl1MK4AUgrwyxs3DcgIABW4r0fn4AxQOflmxt1FuZ4L t6q1Vc9VV5tkyYH5Ln9IwUji/n+jEjHeE8ZytL9Mgk16/Q4EX3s9LoxHJFwdAiLRPGga cfSZlGQ5icMqBUkhs+XL6JyP5Zs3JbJ1eNOlSFw4LAe+rTUkAgHvWXt8tfmFowMMRrSS Tow/nldW4rdu8pCrpS674fiPQx5PSNPMvgc/NXYFrcNSh1GJ6rkppjK45B70FKWRd+mG 1/DoAs3//Dgoig5+oQBI51jEdLyMrg/D1cX+I5bXtbGt0nA0YuHuq7WYAwDzXfZ00DrV XH9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=mHMPPRddlUGNjBweR3B9I+Hv0QjW0kgzgCw5Ey9i/ZI=; b=BtYHChBs1bPet17FGwG2UPhlB51DT58/nrAUUlkMkcQUYLi3Fn1VhNbFjKw0frlQ8R LpBUtoYxWRsNbp3JTEb5IysQ6HOXKivmPQ95U3HcLFsG43qCSkfFdWE/4NI7ZJ+fF/EO LCiAbrlUBucXBP1uKmhYrsTQ/cKhHbJ+sSpjg1yTMQ78hpI4VmT3YcJAMcFKUesCQZ+p PMo4vz+cvo+J4x5FKNtle1wKKKI8TA6Y8Jzb+F+bZft9q4wVHmgSlBnsTPRleLXwiXlx aI3YsQx8JHd1HEDnSa5By/HuTdTMuIBah/3yRtwypq0MLVWEKu+KwpPW0ZHg7e/G84Yy Ke1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P1+lv9Ik; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ob20si7352189ejb.401.2020.05.24.06.27.36; Sun, 24 May 2020 06:27:59 -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=@redhat.com header.s=mimecast20190719 header.b=P1+lv9Ik; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728807AbgEXNY4 (ORCPT + 99 others); Sun, 24 May 2020 09:24:56 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:20049 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725873AbgEXNY4 (ORCPT ); Sun, 24 May 2020 09:24:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590326695; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=mHMPPRddlUGNjBweR3B9I+Hv0QjW0kgzgCw5Ey9i/ZI=; b=P1+lv9Ik0fcPvXPvVICTkKkmeJf/huBfopzTqgU2MUyPWi00i84y2/MOOB80YF7feQtHRY 3Kc2e8qvtvVKDTEDnVnx8iRo1G5FudghsQpFRRQV6l6dE1Ky3QkKPONYI9ABNImE6UFKef cLRAI0sw2Jhiu52tM6p7DLYtt4VAzvs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-99-vD-2LxgjNv6H1i3KD-_uTA-1; Sun, 24 May 2020 09:24:53 -0400 X-MC-Unique: vD-2LxgjNv6H1i3KD-_uTA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ED27F460; Sun, 24 May 2020 13:24:51 +0000 (UTC) Received: from elisabeth (unknown [10.36.110.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 646FA5C1B2; Sun, 24 May 2020 13:24:49 +0000 (UTC) Date: Sun, 24 May 2020 15:24:36 +0200 From: Stefano Brivio To: Yury Norov Cc: Pablo Neira Ayuso , Andrew Morton , Andy Shevchenko , Rasmus Villemoes , linux-kernel@vger.kernel.org Subject: Re: [PATCH] lib/bitmap: rework bitmap_cut() Message-ID: <20200524152350.0192a835@elisabeth> In-Reply-To: <20200307140739.GA31182@yury-thinkpad> References: <20200306221423.18631-1-yury.norov@gmail.com> <20200307143341.5497e7ee@elisabeth> <20200307140739.GA31182@yury-thinkpad> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yury, On Sat, 7 Mar 2020 06:07:39 -0800 Yury Norov wrote: > On Sat, Mar 07, 2020 at 02:33:41PM +0100, Stefano Brivio wrote: > > > > [...] > > > > ...which means it would be a good idea to also add tests for numbers of > > bits that are not multiple of eight, and single bits too. > > OK, I will look at this and send v2 Meanwhile, I could send the simple version of the fix I proposed for the hypothetical partial overlapping issue you reported, and add this test, recycling parts of the tests you already shared, if you agree. Just let me know. -- Stefano