Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4368296imm; Mon, 18 Jun 2018 13:47:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLKiCXZkrN3mIQwtDoOFtgSKyckZKk7pfgkZFgZfbiuKdkFUOd+YR4AH7dWxF5N4LmmNtZ4 X-Received: by 2002:a17:902:5ac8:: with SMTP id g8-v6mr15513249plm.221.1529354865878; Mon, 18 Jun 2018 13:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529354865; cv=none; d=google.com; s=arc-20160816; b=h30O4xGDr5z3fgng9a7mXpNANtEmZY3yyafkOegwUiQpp1pD4Q65dl86fbmnCIREFJ 8adzZwopQhLO1eZPi2t7x12MswSymv9UpLCj0GUMXZCV6v+XgNZL4SAJx+3+et1TsBQy nVD3hXR6erRV2ol5pi27IysAzU68zIvbgsr1OnzOrQNI4ooGbdMyxgrYagDYt8jbC+wR 8UDnEBcr4Sm/WAGnJ6hz1YYNAjM9x7YZKFD20wo/VvqTTTHTojG9gjo2/62G6qEpWfBi WWPzdUYhgXAsyzj/2O4GBZT7P/UfgZPHhUp9Dbipy+8Jv55vYV0HbvxlgKdNOXn8qlBf QDuQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=zBzrN5F9zdlIxMCfVP9gkdlxv9F88e44I8rwK1fQJPE=; b=Z1Fn3DFbS4rQeQHLTW1lbZmlLVSb7fDCqQrHZoYYyXbD+SpnwKdVw1D+cW4sxcwmy4 bZMUTWtlb+eA+uW1sH2u6S2gAIrH35Iyndf13S7EDnYJWDuzPmZQ6uK4/aWqQWiJmS8R pIhzG/V8Nq6r4CJn9Wvak8hhTjo9KRBRJgjM73yKwUfHu1Fo2RlXEhdXGD696mVuHK9U Ivw5oWoi4/x8qEJTppQazBEYwnktQj/Wy1uolFD+xIhgEZLgGfDbd3yEOBhgAEBBoi1S Q3vuoplnned3Nvc9M4Q2/YEVK7DXTWWlNErD+xFygzxpVr24hx4v1U94OrqPItM6JBeO Oluw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XV05vfkg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q7-v6si16057242pll.445.2018.06.18.13.47.32; Mon, 18 Jun 2018 13:47:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XV05vfkg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S936774AbeFRUqJ (ORCPT + 99 others); Mon, 18 Jun 2018 16:46:09 -0400 Received: from mail-ua0-f196.google.com ([209.85.217.196]:33659 "EHLO mail-ua0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935090AbeFRUqH (ORCPT ); Mon, 18 Jun 2018 16:46:07 -0400 Received: by mail-ua0-f196.google.com with SMTP id m21-v6so11622322uan.0; Mon, 18 Jun 2018 13:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zBzrN5F9zdlIxMCfVP9gkdlxv9F88e44I8rwK1fQJPE=; b=XV05vfkgGTcvSkCgIGjFphe6IqR1O/8E6t1u3PCaxb2nR7SRuj1CTWBPZXAvgFSRw3 q2ICTlGIMFSnQeAjjWG1IKyxE+k1eZ/0gcAvJC3pcpunV9eII4zm1eraN62MCBv0TSL7 rkj/jHWhZlzzgt2PxvJZMMa3E0mNjsjsxDVPSNh0ZoDVIYIitES2wkcdJ9G/MapfRawU PSssOWUWM3s4FAr0jY6zDATe24k2yDAL2vUFhayDkg+JV8Th/kCvC/ehhhBbxco9UeMy xvAJRg28goXuTu7/Njk91brcoZK75uZt7PYbPqby6dxwxQWriQTFPBggUSYO27MiJJrk HKWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zBzrN5F9zdlIxMCfVP9gkdlxv9F88e44I8rwK1fQJPE=; b=UacHmfSsboQGJfsbNOyuyuNPzmgFiSLIr/QlVjwB6RIbpaDHACOuQQ1OLrrjpeSun1 GMnmfm7fvqP/VubQKNyVxkwysLtHbdtutGfRHOeDlIx1rMH8rOaHBBbjfSr7wYzz6rcp k3LUjZVU+l5pCQz30fzA2egElIb/0cohlYLeaTyZVP2js44/qG0+G9A9zBkOXhDpxKYK PdAtpeZqfAKnZdCYUCN14fWJeKdMp0IADxCyLFQiCqBv5SGt2qdRKhLp0wngogUKXg83 Q+aHLHOE6ShDydKyzsWsLvBYGw3voUKZcDrTaxa16p/4ZvZ+KOhaegiY8BtWAFsf4Bqn JZ9w== X-Gm-Message-State: APt69E28cyr1wm3CTytCOEQlDvABaxV2cZ5NQZOc1CUjE4aEfpuKfrkv 2v1sN/i582LRf8M8KVNGB+ioGjFSnS53YcFGjlaIHg== X-Received: by 2002:a9f:3613:: with SMTP id r19-v6mr9173895uad.49.1529354767171; Mon, 18 Jun 2018 13:46:07 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:8b02:0:0:0:0:0 with HTTP; Mon, 18 Jun 2018 13:46:06 -0700 (PDT) In-Reply-To: <1529354549.3092.36.camel@sipsolutions.net> References: <20180618195618.17536-1-johannes@sipsolutions.net> <1529353683.3092.32.camel@sipsolutions.net> <1529354549.3092.36.camel@sipsolutions.net> From: Andy Shevchenko Date: Mon, 18 Jun 2018 23:46:06 +0300 Message-ID: Subject: Re: [PATCH v3] bitfield: fix *_encode_bits() To: Johannes Berg Cc: Linux Kernel Mailing List , netdev , Al Viro 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 Mon, Jun 18, 2018 at 11:42 PM, Johannes Berg wrote: > On Mon, 2018-06-18 at 23:40 +0300, Andy Shevchenko wrote: > >> The idea is to print what was the input, expected output and actual result. >> Then you would see what exactly is broken. > > Yeah, I guess we could. I did some of that work. > >> I dunno how much we may take away from this certain test case, though >> it would be better for my opinion. > > TBH though, I'm not sure I want to do this (right now at least). I don't > think we gain anything from it, it's so basic ... so to me it's just > pointless extra code. I'm not insisting I'm trying to specify rationale behind it. We may add this later at some point. -- With Best Regards, Andy Shevchenko