From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 91316C433F5 for ; Mon, 10 Jan 2022 16:31:29 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4JXfTq6cdkz3bYs for ; Tue, 11 Jan 2022 03:31:27 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=SL36wzar; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=bombadil.srs.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=batv+996bc53df2b455107366+6714+infradead.org+hch@bombadil.srs.infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=SL36wzar; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4JXfT13ZFpz2yMt for ; Tue, 11 Jan 2022 03:30:38 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=FcxY0AcFPqarLpf7v6qBIQEnVP2lYCe9YcoGjVtbp+8=; b=SL36wzarhDHVddRltdQMBE23mc IYPjRqt9vGY0hJ+O+Pt3NEqD67mWrggl+Kcy1i5E2WG+1iqDNtWzO3HC/XwfYRx7bn+A8vl1wAMlR jJF/C/E/+CmlYA+C8nThER7ESllKofjjGS3LhOQJ3lUtfXVXooRzugIYkVM6c8vMbLTs0Ib0wiuOq R+qMAkH4rOmFnEGrUA+gCI23C1IzFu9o1LHaapJtTqjl/mUj8SztpVPqoLTuBjDAwLZWdKHpclSEJ jd3tIyorl/yiIgBq0aTkeP40xm5NyR+Igcsmef/uUBVA1QoP7zKSzRdVQ2wnbCjie1Fv69PYUgreC QBcFRXOw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6xYm-00CMnJ-8F; Mon, 10 Jan 2022 16:30:16 +0000 Date: Mon, 10 Jan 2022 08:30:16 -0800 From: Christoph Hellwig To: Arnd Bergmann Subject: Re: [PATCH V2 03/17] asm-generic: fcntl: compat: Remove duplicate definitions Message-ID: References: <20211228143958.3409187-1-guoren@kernel.org> <20211228143958.3409187-4-guoren@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guo Ren , "open list:BROADCOM NVRAM DRIVER" , "J. Bruce Fields" , Guo Ren , sparclinux , linux-riscv , inux-parisc@vger.kernel.org, linux-s390 , the arch/x86 maintainers , linux-csky@vger.kernel.org, Christoph Hellwig , Linux ARM , Drew Fustini , liush , Wang Junqiang , Anup Patel , Jeff Layton , Linux Kernel Mailing List , Palmer Dabbelt , gregkh , Linux FS-devel Mailing List , linuxppc-dev , Wei Fu Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Mon, Jan 10, 2022 at 02:35:19PM +0100, Arnd Bergmann wrote: > > +#if !defined(CONFIG_64BIT) || defined(CONFIG_COMPAT) > > #ifndef F_GETLK64 > > #define F_GETLK64 12 /* using 'struct flock64' */ > > #define F_SETLK64 13 > > The problem here is that include/uapi/ headers cannot contain checks for > CONFIG_* symbols because those may have different meanings in user space > compared to kernel. > > This is a preexisting problem in the header, but I think the change > makes it worse. FYI, this is what I did in my old branch, which also sidesteps the duplicate value problem on parisc. The rebase is untested so far, but I can spend some cycles on finishing it: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/fcntl-asm-generic-cleanup