From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753310AbcBAQk7 (ORCPT ); Mon, 1 Feb 2016 11:40:59 -0500 Received: from smtp-out6.electric.net ([192.162.217.184]:63155 "EHLO smtp-out6.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752369AbcBAQk5 convert rfc822-to-8bit (ORCPT ); Mon, 1 Feb 2016 11:40:57 -0500 From: David Laight To: "'Lucas Tanure'" , Pablo Neira Ayuso , Patrick McHardy CC: Jozsef Kadlecsik , "David S . Miller" , Alexey Kuznetsov , "coreteam@netfilter.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 3/4] netfilter: ipv4: use preferred kernel types Thread-Topic: [PATCH 3/4] netfilter: ipv4: use preferred kernel types Thread-Index: AQHRW2BaJ6FRFRMi5UCW7SYASviCN58XZdGw Date: Mon, 1 Feb 2016 16:37:41 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6D1CCD2580@AcuExch.aculab.com> References: <1454159878-20706-1-git-send-email-tanure@linux.com> <1454159878-20706-3-git-send-email-tanure@linux.com> In-Reply-To: <1454159878-20706-3-git-send-email-tanure@linux.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-PolicySMART: 3396946, 3397078 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lucas Tanure > Sent: 30 January 2016 13:18 > As suggested by checkpatch.pl: > CHECK: Prefer kernel type 'uX' over 'uintX_t' One might ask why? The kernel types are older, but the uintX_t ones are now part of the C standard. Writing header files (eg for ioctl buffers) that have to be parsed by both userspace and kernel is a PITA unless the uintX_t forms are used - at which point you have inconsistent names in the same file. At some point someone might decide that the uintX_t types are preferred (as NetBSD did a few years ago) - so these changes would get reverted. David