Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2370112iof; Wed, 8 Jun 2022 03:36:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM0G5xjcTzTWwEkoSYFVxV9qlh4+bQflhm4U/4xXVlI7UdHf5rBRHKPf3SCFxEfCb9243F X-Received: by 2002:a17:902:9349:b0:158:a6f7:e280 with SMTP id g9-20020a170902934900b00158a6f7e280mr32926301plp.155.1654684578094; Wed, 08 Jun 2022 03:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654684578; cv=none; d=google.com; s=arc-20160816; b=oritVZvh8b1xbrnWjRgsCiHicID/tQ+tKIGR14vAybuEfLH6irYxIWhtZgUSLnInJh ekRV5HqdXVTMoAu52qNUIIs9xobzXtzcghAvP1jkWlzK27FcOaaQH5kaZrEI8Znoxbn1 DgoqRbGlMl78xJaqaGxFdLIYNb4+zdIdf169lYVIv4MpOF+Xc/cJ/keUS1Oxiq4wRveh Caa9NDw9Uxoc3Q2BrZBrwgQbfxk+JFY7ecvgaCy5v/MmE3tKVDm23by2tFKbgFNLIzYF zcFHjvnF3vtsXiSv2vbO5DlP8lDNdNyaPoGExMlNHoEcx0eFYwyGbfxTBCGKEsysrM4f 7j+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3+IKQAxPaDV1lsEnEpDWXsKDpaqq+QeuuTyOBnuSML8=; b=FOoC/vZhUz1IydjBH0FCNG8Qsa1iOJH9gZHLlzkJnZ5cqzwSthqgGjNDr+5+1G4kvR JS1s6c3BrS366GmZIGe/FclpeOVNs5PX6zS3H8yjFWO2O+wvEHyvHvDDTLyA9de3nDNt q8Mdi51QmIzO4XmBzvrmQAx1graug4IL62dhKyDCCDFFUmNg8GjY9SX391E+Q6t6xWrU UQvaAGwi+bXN3vT8KX3qSetkh7mw3sU+lKRfOhkXIaUAfYCmm6TOVpFyF9OUxFemaAzk ljq96QKwTeU4XdzMFf+DEzLO4776TysiL3DV7HuQqjN+BwtDfAafDnr3xsASZrvz5hRY 8vTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NMte0v9D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v64-20020a638943000000b003fb9e704893si26930344pgd.796.2022.06.08.03.36.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 03:36:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NMte0v9D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 977F526E2BA; Wed, 8 Jun 2022 03:03:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235827AbiFHKDB (ORCPT + 99 others); Wed, 8 Jun 2022 06:03:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235750AbiFHKCk (ORCPT ); Wed, 8 Jun 2022 06:02:40 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D975A13C1EE for ; Wed, 8 Jun 2022 02:41:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654681280; h=from:from:reply-to:subject:subject: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=3+IKQAxPaDV1lsEnEpDWXsKDpaqq+QeuuTyOBnuSML8=; b=NMte0v9D9tm2pKj9octgcbFYxm2mbvupEt+i3r5CwjBQTB82eXd92M3sCF4eyzRHvOkPdG AT7+XwuoK9TP6cQ+k00Sajd6/3ID+HgvZU9jJ3wp9rkbP9Vzit4/y87tA6nqITAX2Uz47g lERu06DopFsrmtXc7U0D9uMV5SVhi6w= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-615-w3WQnUBOPViMCdoJoJfKsA-1; Wed, 08 Jun 2022 05:41:16 -0400 X-MC-Unique: w3WQnUBOPViMCdoJoJfKsA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CA5C61C01B2C; Wed, 8 Jun 2022 09:41:15 +0000 (UTC) Received: from asgard.redhat.com (unknown [10.40.208.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0009D9D7F; Wed, 8 Jun 2022 09:41:10 +0000 (UTC) Date: Wed, 8 Jun 2022 11:41:08 +0200 From: Eugene Syromiatnikov To: guoren@kernel.org, Christoph Hellwig Cc: palmer@dabbelt.com, arnd@arndb.de, gregkh@linuxfoundation.org, hch@lst.de, nathan@kernel.org, naresh.kamboju@linaro.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, heiko@sntech.de, ldv@strace.io Subject: Re: [PATCH V12 02/20] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h Message-ID: <20220608094108.GA18122@asgard.redhat.com> References: <20220405071314.3225832-1-guoren@kernel.org> <20220405071314.3225832-3-guoren@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220405071314.3225832-3-guoren@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Tue, Apr 05, 2022 at 03:12:56PM +0800, guoren@kernel.org wrote: > From: Christoph Hellwig > > Note that before this change they were never visible to userspace due > to the fact that CONFIG_64BIT is only set for kernel builds. > -#ifndef CONFIG_64BIT > +#if __BITS_PER_LONG == 32 || defined(__KERNEL__) Actually, it's quite the opposite: "ifndef" usage made it vailable at all times to the userspace, and this change has actually broken building strace with the latest kernel headers[1][2]. There could be some debate whether having these F_*64 definitions exposed to the user space 64-bit applications, but it seems that were no harm (as they were exposed already for quite some time), and they are useful at least for strace for compat application tracing purposes. [1] https://github.com/strace/strace/runs/6779763146?check_suite_focus=true#step:4:3222 [2] https://pipelines.actions.githubusercontent.com/serviceHosts/e5309ebd-8a2f-43f4-a212-b52080275b5d/_apis/pipelines/1/runs/1473/signedlogcontent/12?urlExpires=2022-06-08T09%3A37%3A13.9248496Z&urlSigningMethod=HMACV1&urlSignature=fIT7vd0O4NNRwzwKWLXY4UVZBIIF3XiVI9skAsGvV0I%3D