From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753425AbcJFNDA convert rfc822-to-8bit (ORCPT ); Thu, 6 Oct 2016 09:03:00 -0400 Received: from smtp-out6.electric.net ([192.162.217.181]:55694 "EHLO smtp-out6.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750992AbcJFNC5 (ORCPT ); Thu, 6 Oct 2016 09:02:57 -0400 From: David Laight To: "'Joe Perches'" , Pavel Machek CC: Marcel Holtmann , "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" Subject: RE: [PATCH] bluetooth.h: __ variants of u8 and friends are not neccessary inside kernel Thread-Topic: [PATCH] bluetooth.h: __ variants of u8 and friends are not neccessary inside kernel Thread-Index: AQHSHzyMWPzf7RPwX0+vLIeDsDP30qCbLJqwgAAQkoCAACZugA== Date: Thu, 6 Oct 2016 13:00:19 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6DB01E4056@AcuExch.aculab.com> References: <20161003085640.GA8130@amd> <368810F9-519C-44B5-85D4-1815273438BF@holtmann.org> <1475689996.6105.11.camel@perches.com> <20161005191103.GA25972@amd> <1475694934.1941.1.camel@perches.com> <063D6719AE5E284EB5DD2968C1650D6DB01E3EAB@AcuExch.aculab.com> <1475753929.1914.2.camel@perches.com> In-Reply-To: <1475753929.1914.2.camel@perches.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.99.200] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Outbound-IP: 213.249.233.130 X-Env-From: David.Laight@ACULAB.COM X-Proto: esmtps X-Revdns: X-HELO: AcuExch.aculab.com X-TLS: TLSv1:AES128-SHA:128 X-Authenticated_ID: X-PolicySMART: 3396946, 3397078 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joe Perches > Sent: 06 October 2016 12:39 > On Thu, 2016-10-06 at 09:41 +0000, David Laight wrote: > > From: Joe Perches > > > No worries, and bool is the same ,size as u8. > > That is not guaranteed at all. > > One of the ARM ABI defined bool to be the size of int. > > Really? What kernel has sizeof(_Bool) != 1 ? Probably none, but I know systems have used larger bool. I found this: > with egcs-2.90.29 980515 (egcs-1.0.3 release) on alphaev56-dec-osf4.0d > bool = 8 > short = 2 > int = 4 > long = 8 I'm pretty sure something newer than an old alpha ABI used 4 byte bool. David