Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2061590rwi; Tue, 1 Nov 2022 03:26:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5e54ZS3zeLPLvfoSMqZLGotfw8PO6SnLnzLMx01UFaaTEGOXA+ekf0WNQmU9Abi5UIYy6E X-Received: by 2002:a17:90b:1e49:b0:20b:36a3:aba6 with SMTP id pi9-20020a17090b1e4900b0020b36a3aba6mr37761532pjb.2.1667298374650; Tue, 01 Nov 2022 03:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667298374; cv=none; d=google.com; s=arc-20160816; b=gKhgFJTQHtXYCZZquz/ntq3FgDM7ETXXrcIDn4yM/hZ/9IDKMy+d49kUesdkvleJ9g 77x6J1299L9Bus9eNjJCU68hPdt8SpfVZX5bhdpnPMlyfjT91zZZJ53Fns05WS4u6kni V7pLOqrSYcSnnQKwBu3Z7Z7vm3hNfamcH17k0szwBDS7PCpjnRZAXeiTtjgwJBPYXR87 zJ7XOU7NFHxh/lrI4uv9xrf61K4S0/STn3geSkrkE6FihbVej0P4kMlUBe6O2AZXUcqO YImPzRYzRSlejXLp5qPXU7/mF/DJZlveXd9ax4H1eYrn2gJ9Y924wtx4CzYpCbiraYer wbTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=2M1jxPxC/tSkCxGRBan3HDERbz814zwHikzf+v+z83w=; b=VBMR5fTzcRB0eCsn52/hE8yaJiu8OjF10eHdRTN/4XU2u2YvKCkrv4fp1klB8BzVtR OuH8XMy2Q9Ec9/DvPxfmDvEIY0LUnS3cENZ4IZthdqWTTAXKTuQtFc+fEQTGma7PeKpE 7quZNJ0tgq6PEnJRqxvyN1UZEx++g89FCQrI/z5n3eEPpdtJqPbiG1Mg0Xu8R4Umx0bc vmSRi2NV58agjc69GWRDdKHhd7npp7bnFoU0XMi28tICJWg5kGqy7RLlgELcwDMtT8lK 7YkEnRg8vWZKDnpHef+oVtXlWEOo+srAuICFXhdJVlIehOCDSVdN+AUegitTCJK0FGwe kBhg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nh16-20020a17090b365000b0021414ac5cc2si1195475pjb.131.2022.11.01.03.26.01; Tue, 01 Nov 2022 03:26:14 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230369AbiKAKC5 (ORCPT + 97 others); Tue, 1 Nov 2022 06:02:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbiKAKCy (ORCPT ); Tue, 1 Nov 2022 06:02:54 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 315E714087 for ; Tue, 1 Nov 2022 03:02:53 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-2-IO7oJJsdPEWfrci-nPnQRA-1; Tue, 01 Nov 2022 10:02:38 +0000 X-MC-Unique: IO7oJJsdPEWfrci-nPnQRA-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 1 Nov 2022 10:02:26 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.042; Tue, 1 Nov 2022 10:02:26 +0000 From: David Laight To: 'Szabolcs Nagy' , Theodore Ts'o CC: "linux-api@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: RE: linux interprets an fcntl int arg as long Thread-Topic: linux interprets an fcntl int arg as long Thread-Index: AQHY7dH4b5GlkmHz9EyVI+/nub6Ts64p0qEQ Date: Tue, 1 Nov 2022 10:02:26 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 RnJvbTogU3phYm9sY3MgTmFneQ0KPiBTZW50OiAwMSBOb3ZlbWJlciAyMDIyIDA5OjExDQo+IA0K PiBUaGUgMTAvMzEvMjAyMiAyMTo0NiwgVGhlb2RvcmUgVHMnbyB3cm90ZToNCj4gPiBPbiBNb24s IE9jdCAzMSwgMjAyMiBhdCAxMjo0NDo1O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