From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E4D5C43334 for ; Fri, 17 Jun 2022 15:02:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382738AbiFQPCT (ORCPT ); Fri, 17 Jun 2022 11:02:19 -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: Precedence: bulk List-ID: X-Mailing-List: linux-api@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