From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 5CE41385841B for ; Mon, 29 Nov 2021 11:57:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5CE41385841B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz 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 8CB431FD38; Mon, 29 Nov 2021 11:57:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1638187063; 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=FVDQcZLHC3tPkZdXshg+mfyHdXB90Lp7oCFBvM1e3JM=; b=AgaHeOHi1NsfHACoVX9xaT0TLBu4DfbDjvMkx0ruxufTKt4Al869dicbkc4oyuYIWMfZAt Jcd2+zlemTc2ncDC3oNQzTeNv3eDbHylTIwO/BDjDyxqnHP0nouQoHHRsUW8dblF3goFwa Ma3rWyALvggnm3YxqsikVuB/YZtVlDM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1638187063; 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=FVDQcZLHC3tPkZdXshg+mfyHdXB90Lp7oCFBvM1e3JM=; b=wsq6sBFCJOr1290Umq666MEOHGFk3VCCUzpG0XAs3oWuvGVeb2B5L/Gy2XELaCcNbX988M GTN1EwBL0nBeQMDA== 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 696BD13A86; Mon, 29 Nov 2021 11:57:43 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 47rlFjfApGG+IgAAMHmgww (envelope-from ); Mon, 29 Nov 2021 11:57:43 +0000 Date: Mon, 29 Nov 2021 12:58:53 +0100 From: Cyril Hrubis To: David Laight Cc: 'David Howells' , "linux-kernel@vger.kernel.org" , "linux-api@vger.kernel.org" , "ltp@lists.linux.it" , "libc-alpha@sourceware.org" , "linux-arch@vger.kernel.org" , "arnd@arndb.de" Subject: Re: [PATCH] uapi: Make __{u,s}64 match {u,}int64_t in userspace Message-ID: References: <1618289.1637686052@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, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2021 11:57:45 -0000 Hi! > > > This changes the __u64 and __s64 in userspace on 64bit platforms from > > > long long (unsigned) int to just long (unsigned) int in order to match > > > the uint64_t and int64_t size in userspace. > > That is a massive UAPI change you can't do. Understood. However it can still be changed if user asks for it explicitly right? What about guarding the change with __STDINT_COMPATIBLE_TYPES__ as: #if defined(__STDINT_COMPATIBLE_TYPES__) # include typedef __u64 uint64_t; ... #else # include #endif -- Cyril Hrubis chrubis@suse.cz