From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <1475689996.6105.11.camel@perches.com> Subject: Re: [PATCH] bluetooth.h: __ variants of u8 and friends are not neccessary inside kernel From: Joe Perches To: Marcel Holtmann , Pavel Machek Cc: trivial@kernel.org, "Gustavo F. Padovan" , Johan Hedberg , "David S. Miller" , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <368810F9-519C-44B5-85D4-1815273438BF@holtmann.org> References: <20161003085640.GA8130@amd> <368810F9-519C-44B5-85D4-1815273438BF@holtmann.org> Content-Type: text/plain; charset="ISO-8859-1" Date: Wed, 05 Oct 2016 10:53:16 -0700 Mime-Version: 1.0 List-ID: On Wed, 2016-10-05 at 13:14 +0200, Marcel Holtmann wrote: > Hi Pavel, > > > bluetooth.h is not part of user API, so __ variants are not neccessary > > here. > > > > Signed-off-by: Pavel Machek > > > > diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h [] > > struct bt_skb_cb { > > - __u8 pkt_type; > > - __u8 force_active; > > - __u16 expect; > > - __u8 incoming:1; > > + u8 pkt_type; > > + u8 force_active; > > + u16 expect; > > + u8 incoming:1; > > union { > > struct l2cap_ctrl l2cap; > > struct hci_ctrl hci; trivia: It's generally faster to use bool instead of u8 foo:1;