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 33C05C433F5 for ; Wed, 8 Dec 2021 15:32:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236104AbhLHPgF (ORCPT ); Wed, 8 Dec 2021 10:36:05 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:60126 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233264AbhLHPgD (ORCPT ); Wed, 8 Dec 2021 10:36:03 -0500 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-out2.suse.de (Postfix) with ESMTPS id CBB8E1FD2A; Wed, 8 Dec 2021 15:32:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1638977549; 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=6VNz+rbMG4FKJ01MyWRZjmX8ICbIRHGfA3fPOOQX6vk=; b=lQmxOHPqIImGvYgUFoj/iKM+12qOie5JvMtoB4akJ2qZmCHmYbpTXL1pvnWqKwkORVb1aC iybWxH9xZOdHCV+A18n0UDr++hxRn356Fzb1GqFlIPDcphqBBuHc+IbeowMYndmGnjy+zO VXh4Y/0OKAdpEJBC2Q0SYA38L3Jw06s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1638977549; 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=6VNz+rbMG4FKJ01MyWRZjmX8ICbIRHGfA3fPOOQX6vk=; b=WT1UpZk6WMHwKNVbBEX+hLKKuM7l5DRaCdSSlLONT9RxyDh2ke5UNv4X9z6Hk6yl5we44/ fPRHxkB4QtYWO5Aw== 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 6619913F90; Wed, 8 Dec 2021 15:32:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id quQdFw3QsGE3VAAAMHmgww (envelope-from ); Wed, 08 Dec 2021 15:32:29 +0000 Date: Wed, 8 Dec 2021 16:33:47 +0100 From: Cyril Hrubis To: David Howells Cc: Zack Weinberg , Arnd Bergmann , "linux-arch@vger.kernel.org" , libc-alpha@sourceware.org, "linux-api@vger.kernel.org" , "linux-kernel@vger.kernel.org" , David Laight , "ltp@lists.linux.it" Subject: Re: [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: <913509.1638457313@warthog.procyon.org.uk> 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 -- Cyril Hrubis chrubis@suse.cz