Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp558353iog; Fri, 17 Jun 2022 08:38:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uopxoEyAs3Bc49jGCFgbRF+nF1Berg1nUhlXiluYkx///WF+1enBA8S38JPJJ0YZQC2s9E X-Received: by 2002:a17:90b:615:b0:1e6:9c25:81ce with SMTP id gb21-20020a17090b061500b001e69c2581cemr11125100pjb.148.1655480290262; Fri, 17 Jun 2022 08:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655480290; cv=none; d=google.com; s=arc-20160816; b=iTvuDTqnQA53favS345hNFa8XiTcXIgkUdUAsewmlKnqdvAlp5/DN576fhKhtzaOEj Qh9dTbEEJnYnqY62PG/HBKPOguC0mN7dOrk1Le6kxAzZb8ghcTaXxs/DlrBEeEEdhYKl 5kOF02RPX+3Hx0HKV8OGFbiAWrbjq6nz+ZoDCt/uX5Nq0636bYFXe+9QNdPdrepe1Z0d nVsaNr+Hg6QNCOBWMKnDPhlpZH2JV6GxsPJXCUPk2dBaBUw5zBph9k0rFyx+GQ7cwBVy CyY9tQDv5qOvGoNZXIkjKHavuZVzLp4bHSyZRDJrZi2Fbdq5gSLivkBdjzy5y+knn8Lc v+bQ== 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 :dkim-signature; bh=pPx6aFu2+C8m/s4I7i764IkxIpymMdXz3MEbjj3vaT0=; b=P8Sfdjaf97aIUq6x9AgPKW/nU/qnpADrb65hupu3FWVMvOTDJqv32mcQhpH9apN3bS eiEY+1FyU1LdJiHRIpI0Fg4UKksYTI0FL9Zt3twut4QUSSmCzu++8f4T1Mc19Rwy4h9M sL2twQaOt03SmMBHSU+31lZc+YN5GVOwexESnuzPlylpcRuEqIWVbTSwLT/Wh48voeZe JZ4+7fjQuLG8tWaKZUAjqSCapAqTLbsK4mbwDMR5xkPxGtv1AfXZyEhNu0cCQjkn2Eve nrfxreNski9oWCswxBveERnzRSzpqbO+IAkQ/EPl4/6sMxrvOQtFddI2+0QgA6wEoflX nfmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=oATsqTy3; dkim=neutral (no key) header.i=@suse.cz header.b=DEw9fjGn; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a63cf07000000b00408a85af306si6765206pgg.137.2022.06.17.08.37.50; Fri, 17 Jun 2022 08:38:10 -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=@suse.cz header.s=susede2_rsa header.b=oATsqTy3; dkim=neutral (no key) header.i=@suse.cz header.b=DEw9fjGn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383034AbiFQPCW (ORCPT + 99 others); Fri, 17 Jun 2022 11:02:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382695AbiFQPCG (ORCPT ); Fri, 17 Jun 2022 11:02:06 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4922341308; Fri, 17 Jun 2022 08:02:04 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id BB97321E1A; Fri, 17 Jun 2022 15:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1655478122; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pPx6aFu2+C8m/s4I7i764IkxIpymMdXz3MEbjj3vaT0=; b=oATsqTy3tWG8Ye+OffaNGYq3oEgZNgmCNzza7t3ngrO1yGVyypI7yt2ZirBjSr64rnPsZN MiHEKYDroCoqvAJrUhXooL3TtOE1FOvf+qTsMQM97PhAhUH7kWhk/5PUjdsHIbdN/odghh plZA8x1CptqK4GLO1FXyfzp6DaSp76s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1655478122; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pPx6aFu2+C8m/s4I7i764IkxIpymMdXz3MEbjj3vaT0=; b=DEw9fjGnI3YFS2Qar0UQ2i6XX8xUnKrGi548MpVPHdzQMbwoCyfx/htX8EycNF2hVzziS1 PkrETsjvUBzFRzDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A8A151348E; Fri, 17 Jun 2022 15:02:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 7OoAKGqXrGLnPQAAMHmgww (envelope-from ); Fri, 17 Jun 2022 15:02:02 +0000 Date: Fri, 17 Jun 2022 17:04:12 +0200 From: Cyril Hrubis To: Alejandro Colomar Cc: "linux-arch@vger.kernel.org" , libc-alpha@sourceware.org, "linux-api@vger.kernel.org" , "linux-kernel@vger.kernel.org" , David Laight , Zack Weinberg , "ltp@lists.linux.it" , David Howells Subject: Re: Ping: [PATCH] uapi: Make __{u,s}64 match {u,}int64_t in userspace Message-ID: References: <1618289.1637686052@warthog.procyon.org.uk> <913509.1638457313@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Hi! > >>> I could be persuaded otherwise with an example of a program for which > >>> changing __s64 from 'long long' to 'long' would break *binary* backward > >>> compatibility, or similarly for __u64. > >> > >> C++ could break. > > > > Thinking of this again we can detect C++ as well so it can be safely > > enabled just for C with: > > > > #if !defined(__KERNEL__) && !defined(__cplusplus) && __BITSPERLONG == 64 > > # include > > #else > > # include > > #endif > > > > I'm very interested in seeing this merged, as that would allow > simplifying the man-pages by removing unnecessary kernel details such as > u64[1]. How is the state of this patch? I guess that it stalled because I haven't posted it as an actual patch, I should do so to get this back on a track. -- Cyril Hrubis chrubis@suse.cz