Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1966833pxp; Mon, 21 Mar 2022 08:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQY9BQqdszBufS0HJl89KxEZJhwo3LXaAY18XzjPZiN0eJEtut9eoM6xGJKNvFiguV3LKz X-Received: by 2002:a17:906:f41:b0:6d5:c6bc:fbc7 with SMTP id h1-20020a1709060f4100b006d5c6bcfbc7mr20272664ejj.541.1647876929703; Mon, 21 Mar 2022 08:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647876929; cv=none; d=google.com; s=arc-20160816; b=bM1/NCsgVFT4MlM7NMQV8qgbCD9j2MnYWQAUtinlQZ4qWGzoqXDigB54Da+TH2aSw1 F9vKSPxhW7G6H1520oVnIPl3x7Vybcol7desbJWe7HQPTFNGFIcKMdkUnFWYXsD3ftyY yBG02ZdhjK7yEGybi+aKbMWk5Rq2Y7IoMZki5srry2JalViV/Km3+h5ZlmlO+tsvtgAb 79FD5RP4sArouNdxG3q1ltLCG/rUwvQyt+o7yMygxbHscCRIaZXMAlBwVi77xLb3yJgJ 5tQoiSjZeIyNu4WYCSJUKWPKaozZvPDFceEvNXDO1XYmCIGj+uOKy15QwMxrUYtK6ihT 9b6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eLKhx2VMQ8tDggxwzL4oAgf7Ak8jUkcol8jCTYRsZG8=; b=fANJNQ3+qmPEEHLjwiPwn9SQXxjSRo1fA8/ByTS5Y5KYWD42c+bbmwt13K5Rm7ntJF +v1GVZCGN6vSgCs/G7cH+QMgcRv6LzLhYvftAGRZhbi9+tPow2Qot8Gm2qPKVq2GIYVH 1ZmNJRWkfC3/kYYedVdFSQnJVxjY+HcEt+Xn0hBHKW45YJUl6n9CgvmOW3XnTv/5CcOY MsEA86E02YXutEBIlIKg38z0tMiaQR4zeKujlPUZ62ko/ifrh0TYvQ6ZOdYRJUMY95vI QNR6C/tNvYqYTtHgOnSHpG7+m6nW+eAbasuYREC+KAokSSUwQ42Ki2XaEF3pTZTpDDKL JiSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0W7kuXR3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170906108500b006df76385b72si7626339eju.18.2022.03.21.08.35.04; Mon, 21 Mar 2022 08:35:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0W7kuXR3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346060AbiCUKD0 (ORCPT + 99 others); Mon, 21 Mar 2022 06:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346152AbiCUKCz (ORCPT ); Mon, 21 Mar 2022 06:02:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29C73A76F2; Mon, 21 Mar 2022 03:01:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B9E41612EC; Mon, 21 Mar 2022 10:01:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80947C340ED; Mon, 21 Mar 2022 10:01:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647856889; bh=wdbi2VTR/6EnOH98OJIzcSlXpTD0lK64z90gLmxW3IU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0W7kuXR3smZYcZpTUHe2Whd9BvPzbhEBBeZVAQEHFbgEanCt/AP9jXVLFfKLvi1TC bw+xutcH2tkQects92jDXPM2EjZutYgCEM6vqsLh1w7OFO4Qi7XRpgMDMfzJwfZv9W sOfYPdhrUfyi1NINrMYGexKCJAaUOosTcoqQVcNI= Date: Mon, 21 Mar 2022 11:01:25 +0100 From: Greg Kroah-Hartman To: Miklos Szeredi Cc: Carlos Llamas , Alessio Balsini , Masahiro Yamada , Arnd Bergmann , kernel-team , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fuse: fix integer type usage in uapi header Message-ID: References: <20220318171405.2728855-1-cmllamas@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 21, 2022 at 10:36:20AM +0100, Miklos Szeredi wrote: > On Mon, 21 Mar 2022 at 09:50, Greg Kroah-Hartman > wrote: > > > > On Mon, Mar 21, 2022 at 09:40:56AM +0100, Miklos Szeredi wrote: > > > On Mon, 21 Mar 2022 at 03:07, Carlos Llamas wrote: > > > > > > > > On Fri, Mar 18, 2022 at 08:24:55PM +0100, Miklos Szeredi wrote: > > > > > On Fri, 18 Mar 2022 at 18:14, Carlos Llamas wrote: > > > > > > > > > > > > Kernel uapi headers are supposed to use __[us]{8,16,32,64} defined by > > > > > > instead of 'uint32_t' and similar. This patch changes > > > > > > all the definitions in this header to use the correct type. Previous > > > > > > discussion of this topic can be found here: > > > > > > > > > > > > https://lkml.org/lkml/2019/6/5/18 > > > > > > > > > > This is effectively a revert of these two commits: > > > > > > > > > > 4c82456eeb4d ("fuse: fix type definitions in uapi header") > > > > > 7e98d53086d1 ("Synchronize fuse header with one used in library") > > > > > > > > > > And so we've gone full circle and back to having to modify the header > > > > > to be usable in the cross platform library... > > > > > > > > > > And also made lots of churn for what reason exactly? > > > > > > > > There are currently only two uapi headers making use of C99 types and > > > > one is . This approach results in different typedefs being > > > > selected when compiling for userspace vs the kernel. > > > > > > Why is this a problem if the size of the resulting types is the same? > > > > uint* are not "valid" variable types to cross the user/kernel boundary. > > They are part of the userspace variable type namespace, not the kernel > > variable type namespace. Linus wrong a long post about this somewhere > > in the past, I'm sure someone can dig it up... > > Looking forward to the details. I cannot imagine why this would matter... Here's the huge thread on the issue: https://lore.kernel.org/all/19865.1101395592@redhat.com/ and specifically here's Linus's answer: https://lore.kernel.org/all/Pine.LNX.4.58.0411281710490.22796@ppc970.osdl.org/ The whole thread is actually relevant for this .h file as well. Some things never change :) thanks, greg k-h