Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp395807iog; Fri, 17 Jun 2022 05:44:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uKyNMrQGRXLbDpH19Ci50ELHyYwgHX/lIC5OvCWW46hlrXvgOFBjl5+s+utWJ01FtNiELP X-Received: by 2002:a17:903:11c6:b0:167:90e5:59ac with SMTP id q6-20020a17090311c600b0016790e559acmr9710983plh.143.1655469869629; Fri, 17 Jun 2022 05:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655469869; cv=none; d=google.com; s=arc-20160816; b=t3UlLiRLBHVwPKdI2zi76CN0CtE0oiWGKgUdzDSuoTVD6EYpAqdouN5BjPxgzQvLVq piC+ai7MVFBrdkjFNAmuE9RJ7TR9t9XkOGa1YAmwU3Zrt7Rh9KZHop44vrd3QA+YV8S5 ms5BZTEXR3pWOY4fHEv8GuPp0vVXWScTsfWrkLFo+u6eKJF64mbjOzN29O3kHc84FOWI mkBHsmNDms1ax/89afVTYOGpsry73pG3iKE+ed/VkQ5yaMNoTqzZsdN/YJzwA9pwoCHW 97gQ915Sqpe8bldZY7DzLuDUm9eU48e9rW2UHVbjygHVGVVntRpwJv9750Uitym0ydh6 dbsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hnlyRioGpxx+rbPm2S0jS6ADUAhgKmqzSuVKtSCygKE=; b=osSAoaST+s2B+jDoWiDPZOMGcmuTsxuN6HDv8F52KO6STIoY9wG+9mrVhH74a3btbm L5QAv8hGhsXglszr7GcYW/dy/mo6jYgwIiNLbJ6HFk1hSpgJqYf8NNLPRQznB8q90/lk t3b2iNLD9taDYuAZyHGic9mhliMhYl0n4ENJf8Gv/2Ln/f/RbqybrMhJlf32kQJhmpd/ aYGIIDw0a01k6iCyBkl59ZI8tTbpjfW/upW+sC5q1y2ixwN6R+K0DmQtHN+j8OBqN2XS zwvTAIbg1flyRuHAqKEnd0ti36PaCo0SOYu6okVSMQVGBSLl/vEvyZ2Z+e75v8ngEkh3 sEBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DtNHpfpH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a17090a8a0800b001d56e224608si2368556pjn.40.2022.06.17.05.44.15; Fri, 17 Jun 2022 05:44:29 -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=@gmail.com header.s=20210112 header.b=DtNHpfpH; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382201AbiFQMNR (ORCPT + 99 others); Fri, 17 Jun 2022 08:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239096AbiFQMNQ (ORCPT ); Fri, 17 Jun 2022 08:13:16 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83F85E3D; Fri, 17 Jun 2022 05:13:15 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id i81-20020a1c3b54000000b0039c76434147so4269153wma.1; Fri, 17 Jun 2022 05:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=hnlyRioGpxx+rbPm2S0jS6ADUAhgKmqzSuVKtSCygKE=; b=DtNHpfpHlFlaeqXduwx0230ymigZwE3YzhrDwapDz6K7xjYWim1sOMYwnNqiFUtIdO LtRUjjUdSifY8JlG/rs5SUmn3NvK1rDYkFwODdcErzXrabvUSYS6mj4qWre9UNA3jsQK xmj00Gg7lW4qkYffU+wUvpcHXY0opEJwW1UU+pRlFBzqK6r7gXx+2mrjZ7dHbiln8iau aA4Zxc0DzqPAg1WlyEPnvDkBb3KXdViTCXE2bjYWMqb00WQlM4W9FibqQv4HJ8ttXTET MHmzHNaZFdWHVCRulhu6KHWpPB1ewT73HoTPmPZwu6AvVbcPeALy6jsLwbHzpT6at+0U YiDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=hnlyRioGpxx+rbPm2S0jS6ADUAhgKmqzSuVKtSCygKE=; b=enFkf3sOmvcejbNwl+4Q8xiXB1ldCQkAac1KzcBnEdGlPl+Lal5XkZVkBK4EJiDxmj D7jBfOEsYXY27NrHfPd2NUjkBNxpqLWIWZrkItL/+miB00swyvcBEME0O/N1eeLf4tzK ri0P4GSKiPq/wUUyzR7NzFmjuQgtH/og2gNGYloPDGawFg0qjs5nZctIuXgMjk0jyPKg kHBtBaHv9YoZn2gTF7zRROiylSNdnexwoE/PEzbztyAHEtg8ekfSk1LfP1FNhQkhei9+ 1T9K9dnBObisreVt/PMsUuouCpFR+BU0hu8PylvXNjYYF9fStVvYf8gJ2DnUNmvbfGuZ 76Kg== X-Gm-Message-State: AJIora8ChZXnxCAmKtu1f0u5N6Oa94zwDuOJj05D0i755pH3pLWdaBh/ CBw0o2ndZAMvTqVRTNr82NXfJ54RhRs= X-Received: by 2002:a05:600c:190b:b0:39c:7704:74a4 with SMTP id j11-20020a05600c190b00b0039c770474a4mr9806897wmq.92.1655467994150; Fri, 17 Jun 2022 05:13:14 -0700 (PDT) Received: from [192.168.0.160] ([170.253.36.171]) by smtp.gmail.com with ESMTPSA id d8-20020adfc088000000b00213ba0cab3asm4526185wrf.44.2022.06.17.05.13.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jun 2022 05:13:13 -0700 (PDT) Message-ID: Date: Fri, 17 Jun 2022 14:13:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Ping: [PATCH] uapi: Make __{u,s}64 match {u,}int64_t in userspace Content-Language: en-US To: Cyril Hrubis 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 References: <1618289.1637686052@warthog.procyon.org.uk> <913509.1638457313@warthog.procyon.org.uk> From: Alejandro Colomar In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Cyril, On 12/8/21 16:33, Cyril Hrubis wrote: > 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? Cheers, Alex [1]: -- Alejandro Colomar