Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3534759img; Mon, 25 Mar 2019 12:15:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/yX8h+1ff0WVhS12qZ6iOsA76GaFi6Jo8mKaFmHEN4S4tZCpMSBSH8ZFAbq1peX4n3cWv X-Received: by 2002:aa7:8694:: with SMTP id d20mr25286586pfo.81.1553541335286; Mon, 25 Mar 2019 12:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553541335; cv=none; d=google.com; s=arc-20160816; b=YEc+wS3h9uxZwjf+IRzBdd8/3Ilc7xCdJBvIrtzpWCWtEUJQM1Lfsh8X9OppGeNZp9 u6WvxGfUNWFYqzffKfb2FZcUR8AX6OzUY/yrkyXNdOSdyABi4LkJx2Vh25NL0BWFBsg7 3Kh6Y36J+t6AGChbzHvbdcBi5VGRcqfvyuBvJz4iiTeLhCz+qbnaJsxgntRDSznRjn+2 DQA/1Wj1+Tay05tGNl7luCncMo9exuTKm0vsJt9NJeH7Jgyp0UDbRMkNN3Lk+A0Eaawa i3+nzbLq9u7qagS+3ueq5NHyXCiwU3tpn8kfV+7Q7+KXcvNl4fFkiufYv/PPgUhM3qQ/ ckCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=w14bmrMoWenXcyxG5nCW+xgU80aMbR4T4XyFDnq+GwE=; b=JTWLF2+qZhPAmTnhYbq56hWuzdjj8O5aBoXIwp3hSctG3hpnR1vmuFwwaEcONvxptG 2aEMAlZnLT7Zvs4CDdbyK1mG8R9dAybEMtRabscuPcm20x2Laj/E/5dzLXtjpH/cgg/e xJXKBMg0XRN78Ob3X0vLWEObOsE+c3vf+rDF0BmAcLk+VZSG2xc4ppbGP5ltEcGXRxfQ 71X84CKBfXqwGTJXInkJbb3lZxFvZbD4iBHimpnzzD3Gzoa1sC0Gd2yekRra070QPbRZ YBllD/JLvB+szp9tHuPbxqvjkzvJdXoup0VNEqux8b3HLd9PeGznBxl/OiUdBTX+enYG lYkg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si15487193plw.242.2019.03.25.12.15.20; Mon, 25 Mar 2019 12:15:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729938AbfCYTNU (ORCPT + 99 others); Mon, 25 Mar 2019 15:13:20 -0400 Received: from smtprelay0245.hostedemail.com ([216.40.44.245]:33482 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729473AbfCYTNT (ORCPT ); Mon, 25 Mar 2019 15:13:19 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 2C55018224BA9; Mon, 25 Mar 2019 19:13:18 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2553:2559:2562:2828:2914:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3874:4250:4321:5007:7576:7903:7974:10004:10400:10848:11232:11658:11914:12043:12663:12740:12760:12895:13069:13311:13357:13439:13618:14040:14181:14659:14721:21063:21080:21324:21433:21627:21795:30034:30054:30070:30090:30091,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: stage25_1ca9ef1f74401 X-Filterd-Recvd-Size: 2376 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA; Mon, 25 Mar 2019 19:13:16 +0000 (UTC) Message-ID: <1542313a5e6de85b2991e63eab75f3a94a0eb30f.camel@perches.com> Subject: Re: [PATCH 4/4] CPER: Remove unnecessary use of user-space types From: Joe Perches To: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Masahiro Yamada , Greg Kroah-Hartman , Andrew Morton Date: Mon, 25 Mar 2019 12:13:15 -0700 In-Reply-To: <20190325182608.GS251185@google.com> References: <20190325181425.247227-1-helgaas@kernel.org> <20190325181425.247227-5-helgaas@kernel.org> <20190325182608.GS251185@google.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-03-25 at 13:26 -0500, Bjorn Helgaas wrote: > On Mon, Mar 25, 2019 at 01:14:25PM -0500, helgaas@kernel.org wrote: > > From: Bjorn Helgaas > > > > "__u32" and similar types are intended for things exported to user-space, > > including structs used in ioctls; see include/uapi/asm-generic/int-l64.h. > > > > They are not needed for the CPER struct definitions, which not exported to > > user-space and not used in ioctls. Replace them with the typical "u32" and > > similar types. No functional change intended. [] > I *think* the conclusion there was that this sort of change makes > sense, but I want to make sure. If it does make sense, I'm surprised > at how much stuff in include/linux/ still uses __u32 when it doesn't > appear to need it. It is a fairly large number. $ git grep -w -P '__[us](?:8|16|32|64)' include/linux/ | wc -l 2318 It's a rather large number of patches though to make all the actual function definitions match the declarations that are spread around the kernel sources as well. Whatever struct member uses of possible temporary assignments could also be changed to match. Perhaps it's a lot of churn for relatively little benefit though I do find __ prefixes unsightly when unnecessary. A gradual conversion would eventually help isolate uapi uses in the kernel sources.