Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2944097pxb; Tue, 13 Apr 2021 14:20:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjPM8ubBhaB6Rj+7WeZe9daJE7rYsgIc5bQ4e8PZjF+gMPa7bMqDFkVfICm+puRylqrsbh X-Received: by 2002:a17:906:3949:: with SMTP id g9mr34496374eje.7.1618348839199; Tue, 13 Apr 2021 14:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618348839; cv=none; d=google.com; s=arc-20160816; b=QMSCO87WFBLE+ekV4sLYw99BafU+PXl9m2J9a7rXrP6GN0VOAwyazzM5hec2nnz10B nezcbZ8nHeDLncym8cNTVDPkPw4BazuRSVibamYpTPLOrGK+HtJNys/l5AYK7a6aNgXY rRfWm39K1TKxHWX3p0OTOW/J+HY2eGFKV8d1fCXJfdn4VncExS5ENUmz1v2mHFxb/vHb 4Ux3E7OMNOILKR3K/AJ7zItLmIkiZhcTMVueqbk1nBcfbat62WDe3cdBxlkX5U0n+GA/ VL8IBxOgqUjMiTCXkHIN2KXVP9PS23XJIFCR2GIBpFxd8WVMFgvrjk+bkPAKWuJbeTmi RSWw== 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; bh=KmZI+b+47d7aO3xTg3FQYK+Xg1VlKUvBdsjtswaK9uA=; b=ZMDLsYkgLKgMWJK77ilTpgqBVYJ2o6wpLUszjFxFTYNlr4PymDgo1TRPEXErWazcAS rB1s0DbSAzGW/PbKEAai7qBJ2+cCmrkhncHdxGNcjwRHuRN1fr9Ggyqo/OVx1KDnJhzB ehlo+hZhmnLXq67SjkBiN1MNrqoFAk9j78wjkCb5Z6ZMal3U3fReb0aGH3TZcQEJfFT9 86pHog1xgu/Eyre9SgUvthOHsHi3UXiVcunh6LHELlX5TLeH5uROmQ9H1Jw2a/OMIvbT aYqxcIp/akFMGaS67vzx9MAGahKSqnar2NXC/Mi7VguZ5tmNNG9kp1YfGwu0eqj3QcAI Ynng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si10641929edr.83.2021.04.13.14.20.15; Tue, 13 Apr 2021 14:20:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243063AbhDMPrL (ORCPT + 99 others); Tue, 13 Apr 2021 11:47:11 -0400 Received: from verein.lst.de ([213.95.11.211]:55281 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237575AbhDMPrJ (ORCPT ); Tue, 13 Apr 2021 11:47:09 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id C892567373; Tue, 13 Apr 2021 17:46:46 +0200 (CEST) Date: Tue, 13 Apr 2021 17:46:46 +0200 From: Christoph Hellwig To: Helge Deller Cc: Christoph Hellwig , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , "James E.J. Bottomley" , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , "David S. Miller" , Arnd Bergmann , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH 4/5] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h Message-ID: <20210413154646.GC27287@lst.de> References: <20210412085545.2595431-1-hch@lst.de> <20210412085545.2595431-5-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 13, 2021 at 05:43:18PM +0200, Helge Deller wrote: > On 4/12/21 10:55 AM, Christoph Hellwig wrote: >> The F_GETLK64/F_SETLK64/F_SETLKW64 commands are only implemented for >> 32-bit syscall APIs, but we also need them for compat handling on 64-bit >> kernels. > > Ok. > >> Given that redefining them is rather error prone, as shown by parisc >> getting the opcodes wrong currently, just use the existing definitions >> for the compat handling. > > Can you please show me where parisc gets it currently wrong? > I'm somehow blind to see it and of course I'd like to fix it in > stable kernel series if that's true... Looking again I think my comment was wrong, I thought parisc would fall back to the asm-generic version with different code points for the compat case, but parisc actually already defines the constants unconditionally like this patch does for everyone else. So I'll retract that part of the comment.