Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2282595pxp; Mon, 21 Mar 2022 15:49:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzFOmHp+jRpzGuay9CCR5QadYptUcYWRiXJba3nZKIiezZ1CtsOJd/xGAVkKnRkH9ZRlp2 X-Received: by 2002:a65:5a8e:0:b0:365:3b6:47fb with SMTP id c14-20020a655a8e000000b0036503b647fbmr19770615pgt.147.1647902975261; Mon, 21 Mar 2022 15:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647902975; cv=none; d=google.com; s=arc-20160816; b=evWqIbsqd+yctBl6NuGNLSY5Z5dgf0qPiteAF0H9vu+0nqFbdlOKRbtVuQpoucwad6 0cSa+lqzOhTU6CK/Nq3Khd740Uwv2O+Gs0BpKGgqtEGfT+lCfPbr5FRXcrI/YUUMJtdI gUnXYyET7/YWidk9Qvs5D688qqr4pq32b7pWUWJgG9+PUpTGFxwmHRx0bX9rGK/zVgJ3 82yoW7yvobV579hIw5Y1ecikUnX90Pgb6u1q1103fMelV/jA2LFwQCfa2UKg8fkAroGa VE0HYrJ1h9NM/yuQa3XWKaaxAZfJaXRFxKFCGhEHhJVIrhexQLDuCtoVAYNdXqpLuJV2 totg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ogrhRXR+AVdt3mfgPz8CUVBxI7B5+eAIXFaggH9T3eY=; b=I2MKcHeLwoxzEMs1W0Pp/jJjUSbDm4pfOB9GAURL6Hw8Ay8dVblUAFa516Z+jJcRtZ h4deGE5Z3pTDT/9/BrmcG9VAMUl7MI80fYU3XmnYCZllkSuSac5MHYjGwXpb4WcBIAT+ alnCWZjeGbK/lFaixmlrYKkMxodvhEhF9Kv/5rzLSVEXBh8xY94hO9lp1k5BnXjnBxAJ YxqS1XQrPmd6GtZp8JaCrhwfxtSxwNVkWcJwbHp5leCJuvV2iDPTpglChAZ9d5FjylGT CUYGJMZ0lamR9fMvGNoWl72Yaq4LmUKf/UTvYDxv3MIywtt52mrudhQVuz3tTp63EAPL PFyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=JTdeK1AY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g12-20020a170902c38c00b00153b2d1647bsi11150110plg.131.2022.03.21.15.49.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:49:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=JTdeK1AY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8473634098E; Mon, 21 Mar 2022 14:57:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345931AbiCUJiO (ORCPT + 99 others); Mon, 21 Mar 2022 05:38:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345933AbiCUJh6 (ORCPT ); Mon, 21 Mar 2022 05:37:58 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 791E85FF29 for ; Mon, 21 Mar 2022 02:36:33 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id j15so14505597eje.9 for ; Mon, 21 Mar 2022 02:36:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ogrhRXR+AVdt3mfgPz8CUVBxI7B5+eAIXFaggH9T3eY=; b=JTdeK1AYQxPLk0QC4MPXc65N/+9KLmUz6bikgdSXHUYI1p9r2xyaAC87MAdfYFwnjX SBcIYVRVP+XrwcjVGS++LI/xdkXEGR/RfOz7lYc9NYGt5ThG2cWE7ZZrlTctS0fsSm4n iHHZnYjhB4CoSF55F68VVh93gpvkr+4GcL2jw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ogrhRXR+AVdt3mfgPz8CUVBxI7B5+eAIXFaggH9T3eY=; b=Wilq5LbVJcbD5Lulct5agYnDWWY86GED/pGHCTwCpttgyAk8kVQp/lVZ0WCKjG88MC 1dHz+mvCB62+aFXArVgcSgszd3eogTollFqsKJl4nSQOOO2NLKavPwFs3llQeOydBjip VmkMJTWqzix7AV700rRDLQJsO7KphzrP7LGx4wPjh+asjntBeoWmoHVoVlb8oU4evqmh 60bloYAOEBNK815XmjE+79SZyeNb3rzXmgesA5i0NGTgEsh/sVOExBQCeBulNGEYf9Rp NG0fLJnCZ60UrCvuwQCOsYSYa6YAkeDOKcsmyN4okBLlO9ZsvmDUgvfET3swCekxHAXV +p5w== X-Gm-Message-State: AOAM531ONKAptr+W7rF0C5jmasYp4fMGki2utsta7Q4bmUCYCyLnrHIb 8SsxPKNKBgI9ZH8rBbVObz3OD4Cf6IFTwlnTzSagqw== X-Received: by 2002:a17:906:c259:b0:6ce:a165:cd0d with SMTP id bl25-20020a170906c25900b006cea165cd0dmr19443119ejb.270.1647855392023; Mon, 21 Mar 2022 02:36:32 -0700 (PDT) MIME-Version: 1.0 References: <20220318171405.2728855-1-cmllamas@google.com> In-Reply-To: From: Miklos Szeredi Date: Mon, 21 Mar 2022 10:36:20 +0100 Message-ID: Subject: Re: [PATCH] fuse: fix integer type usage in uapi header To: Greg Kroah-Hartman Cc: Carlos Llamas , Alessio Balsini , Masahiro Yamada , Arnd Bergmann , kernel-team , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, 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... Thanks, Miklos