Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3581893img; Mon, 25 Mar 2019 13:14:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFKc61Ut+mhsH0FzP48aY8BJ5GTOM1YR6AS420p83GzSAtizGMLWZZsmRsa1R+8PDJQjsC X-Received: by 2002:a17:902:9a83:: with SMTP id w3mr27167932plp.137.1553544874701; Mon, 25 Mar 2019 13:14:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553544874; cv=none; d=google.com; s=arc-20160816; b=ssJUmsWKpFiuyvhBSyxo6nwXoP0Yx1mPegJZ4cqjzJLS1qkIGcKuMHsSwB1QylcIv0 40ebY75tKfORTbg2Bp/jAGZ7+Zxevnh+SjZCYJfTeyXXAenZvrKplJ38sk0MCr2VHLpP Qg/iagRQ/BL48fQwmSm4RkpmNBIXRKAR62lmC3cNtbOIna9T6uurwqKAKv7oSFtdr+pP DQkHtHEQ0Cf+LPhkicrwZuD38gnHi6IzvMNxof5coCI7HtB2YsNSCecnhtU8ty8DPV3c 6kPRJuszuH3Z/eU3nHNWcVivHr2ljsBQnRshiaL/VojLcJ7lJ/XaqsbwmSitkkRkirF9 +7Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yhZnYjRBLhDfQP9xyee6SD3XnQpz1PB1r0Cn+q748vA=; b=ptznkEEw2JWjm+5klY9QxYggbJd1TdcEK0vEbsE150iE0kWUusaHvVIZs0qLkM4v8m /q484/tT1yeNCr+geGyKM5QAQ6qFmjniBFrrBHz+tbE16pZmmd8mDC1PLg03lj8MS0Mr Py+7qqaKHddg7K8pnqIy06u5xgbs27Ak03h0IEPe/GDrsIYSEGwNB03JTVdKArj3P2/D sqCytl3vJsovqDQPN6DwIopW1PV4F3Pfy7m/2OI6lvfRRsp8hJvL1xKViPP5+srq1uL4 OKB33pP5gQ0gIkys3QriWcAG5NiZbkiFXbOVv0zmDXAD12E0yubH5873Vh9ICXM+wMaj UIRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rYDTTCG5; 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 x6si13948292pgr.372.2019.03.25.13.14.19; Mon, 25 Mar 2019 13:14:34 -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; dkim=pass header.i=@kernel.org header.s=default header.b=rYDTTCG5; 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 S1730339AbfCYUNH (ORCPT + 99 others); Mon, 25 Mar 2019 16:13:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:50180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729283AbfCYUNH (ORCPT ); Mon, 25 Mar 2019 16:13:07 -0400 Received: from localhost (unknown [218.237.54.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4976A2087C; Mon, 25 Mar 2019 20:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553544786; bh=qoi4DrLeJag4i+ibJhvNB/437GAaTrRKrsZpH2QftsQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rYDTTCG5Q6mKGHs4Mqlf1lNp6KRD9cnGaqxJpr5XLQwpWY7gboBSRQ/889KV/CbRO igLP1FtFy/tTJpT1u7+opXtUUfVP84110qxIj+V73OMGfYW1JfloF2BkKqab6JFfPS VcBx+C0Rc9FQg4HJfGLe0eLinPimDJXgpeJ3TtFc= Date: Tue, 26 Mar 2019 04:56:05 +0900 From: Greg Kroah-Hartman To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Andrew Morton Subject: Re: [PATCH 4/4] CPER: Remove unnecessary use of user-space types Message-ID: <20190325195605.GA21965@kroah.com> References: <20190325181425.247227-1-helgaas@kernel.org> <20190325181425.247227-5-helgaas@kernel.org> <20190325182608.GS251185@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190325182608.GS251185@google.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 25, 2019 at 01:26:08PM -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. > > > > The reason for changing this is to remove the question of "why do we use > > __u32 here instead of u32?" We should use __u32 when there's a reason for > > it; otherwise, we should prefer u32 for consistency. > > > > Reference: Documentation/process/coding-style.rst > > Signed-off-by: Bjorn Helgaas > > CC: Masahiro Yamada > > CC: Greg Kroah-Hartman > > CC: Andrew Morton > > I cc'd you folks because you were part of this conversation: > > https://lore.kernel.org/lkml/1526350925-14922-3-git-send-email-yamada.masahiro@socionext.com/T/#u > > 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. People just cut/paste and don't think about it. We used to have a bunch of known structures that didn't use __u32 and friends as people didn't realize it, so it doesn't surprise me that the other way is also the case :( greg k-h