From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Kicinski Subject: Re: [PATCH v3] bitfield: fix *_encode_bits() Date: Mon, 18 Jun 2018 13:33:30 -0700 Message-ID: <20180618133330.707f3efd@cakuba.netronome.com> References: <20180618195618.17536-1-johannes@sipsolutions.net> <1529353683.3092.32.camel@sipsolutions.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Andy Shevchenko , Linux Kernel Mailing List , netdev , Al Viro To: Johannes Berg Return-path: In-Reply-To: <1529353683.3092.32.camel@sipsolutions.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, 18 Jun 2018 22:28:03 +0200, Johannes Berg wrote: > > For me looks like for consistency we may add fake conversion macros > > for this, such as > > > > #define cpu_to_le8(x) x > > #define le8_to_cpu(x) x > > ... > > #undef le8_to_cpu > > #undef cpu_to_le8 > > > > And do in the same way like below > > > > __MAKE_OP(8) > > I disagree with this. I don't see why we should have le8_encode_bits() > and be8_encode_bits() and friends, that makes no sense. +1