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 1EDE0C433FE for ; Wed, 12 Jan 2022 12:09:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353065AbiALMJE (ORCPT ); Wed, 12 Jan 2022 07:09:04 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:56117 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240542AbiALMIo (ORCPT ); Wed, 12 Jan 2022 07:08:44 -0500 Received: from mail-wr1-f45.google.com ([209.85.221.45]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MkIAB-1mfCZU14Ez-00kk8u; Wed, 12 Jan 2022 13:08:41 +0100 Received: by mail-wr1-f45.google.com with SMTP id a5so3831115wrh.5; Wed, 12 Jan 2022 04:08:40 -0800 (PST) X-Gm-Message-State: AOAM533ZGm3cRekLXjcMkTt3kd79hTYQqO/O+VRMRfE1xWRbCfRjQg4P RUg1ZFX1oAJWrabX/rccC9bU6GEQxiIMMBRMisA= X-Google-Smtp-Source: ABdhPJyNUKzidEWwkYa+wfOUEohIKCR5feZK5S3WXkq+SYeCBRFZTq1mqc61Ubm+2cYuonDIFIyFwZ5WRZ3fGi7ACRI= X-Received: by 2002:adf:fd46:: with SMTP id h6mr7767440wrs.192.1641989320742; Wed, 12 Jan 2022 04:08:40 -0800 (PST) MIME-Version: 1.0 References: <20220111083515.502308-1-hch@lst.de> <20220111083515.502308-5-hch@lst.de> <20220112075609.GA4854@lst.de> In-Reply-To: From: Arnd Bergmann Date: Wed, 12 Jan 2022 13:08:24 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/5] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h To: Jeff Layton Cc: Arnd Bergmann , Christoph Hellwig , Guo Ren , "the arch/x86 maintainers" , Linux ARM , Linux Kernel Mailing List , "open list:BROADCOM NVRAM DRIVER" , Parisc List , linuxppc-dev , linux-s390 , sparclinux , linux-arch , "J. Bruce Fields" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:FxPxwUrWV4XP7ogjVSXFtyLQ/37PlsmMmUro1QU4xiHMbn0HF84 G8In2DCCe6NgV9Dn1VApj2AHduGRQcXwBnEEmCXxvbdDdUtTN55Im7sax+K9wu38i/0THSt qwS61rSk6GqdhzFFLBwpooyB0yjUSYE4pe42qAX6VnGYLAIhan1CNvWQ1cG0QiBaOzsQWfz o2XQo87qWwB2sSNPGQvwA== X-UI-Out-Filterresults: notjunk:1;V03:K0:BtxbLJaYFLs=:XysORES34srxkFt4ots9C8 qAYJ006SFkwIPnIkshHXoJ1BgxSd/2XSnwtBKCqhTNr+O2WRJdSnXJCjl19Sd0pPrt3E5KxR/ Jey7f+WpuXB7yq3xok4V0KMQPPgepNx8BYfhogiX7IURcJYF3S5UIs74ppyqOrdevXk6UGF+Q zK9qS+Lkd5tk1zKvNRKvKam2kXkDXg9/ZpYRMrc246SEp2aWNuylQyt64t+pnk3AFOhHG2Gu4 /ZPhWIaifVS5QE5MC5G+odlnYblVp+Yc1W3gX/gGZFuf0hPUULb7/xZayvu9ReVwzNr0SyWQW bRVNskdvJBBobymu2iB+DkIhw+daP34dHhR6NbcGoR6A4fTGmaoQj5GbxnSPE0ImU5e1+NK8T pdFk2ZxibwNiehBhu2umOFlsjlXmgrVcwufZnQRgjDeXjZLBtlfxJr9Bv2sYQBxFx7F/9r3jP oWypQf1zICYTc8xsqd8xz5z3CYT2tSZaKyHH4a/agXWUxRwCJhycoTjk7VpQJlmvWnTkCQmc2 sBLSiEJ0yHn2a4e4kabwKDUzO1VWgpB3nYrF/Vdy5KutC4m2TXlsNpN7FdJMqMAsuTc3mqSTB MIipeeA9qUOqFHjTJChWhs1hd5f9dXAXab5LKgBWUg1fRw+geqTaRztHSh+M6SsktD1vB9RD/ 5k+UdCH3MLk3Oqblmlc1njfSCnMgQygiM6+Gh8sWXQUIy540MEZcRUtbrNy4THYzBMdk= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 12, 2022 at 12:15 PM Jeff Layton wrote: > On Wed, 2022-01-12 at 09:28 +0100, Arnd Bergmann wrote: > > On Wed, Jan 12, 2022 at 8:56 AM Christoph Hellwig wrote: > > > > Exactly, that is the tradeoff, which is why I'd like the flock maintainers > > to say which way they prefer. We can either do it more correctly (hiding > > the constants from user space when they are not usable), or with less > > change (removing the incorrect #ifdef). Either way sounds reasonable > > to me, I mainly care that this is explained in the changelog and that the > > maintainers are aware of the two options. > > > > I don't have a strong opinion here. If we were taking symbols away that > were previously visible to userland it would be one thing, but since > we're just adding symbols that may not have been there before, this > seems less likely to break anything. Changing #ifndef CONFIG_64BIT to #if __BITS_PER_LONG==32 || defined(__KERNEL__), would take symbols away, since the CONFIG_64BIT macro is never set in user space. > I probably lean toward Christoph's original solution instead of keeping > the conditional definitions. It's hard to imagine there are many > programs that care whether these other symbols are defined or not. > > You can add this to the original patch: > > Acked-by: Jeff Layton Sounds good, thanks Arnd