Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp872836imm; Thu, 6 Sep 2018 11:24:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdayvgdsLECT8nspLmxsvwWYG/HBbtfGgHwIF4IvFZsojEIJFtqzBOWZE9kWWhX+gze+u3MD X-Received: by 2002:a17:902:28c1:: with SMTP id f59-v6mr4091183plb.56.1536258277110; Thu, 06 Sep 2018 11:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536258277; cv=none; d=google.com; s=arc-20160816; b=g1ftLBE1VSVIgEN4jaG2JpEfllU9oZHvFUMZD3MR7LKTG2FEB2clo+A/WL1QRiQAwm 6MJ6eRa9iNHxKoqq/xbWe+4g/WGcsISUr6d6b7Xw3H0JvBm9bwSdQpqIzfIA/AaWLlqo aXRaZzuPXlR4H3oBBAmdkf6HpKhZvLXu2nXRDIgr0lesi0gGSYhaSXBn7etjF7AHp5ba q97vzBDNmr6q4dyzg3TQlicI+I7BdmPCu4ZoN77vCBBwrMbQAXREyP9aRcmcxj1W3vAn Ie9m/zCidfX2w/Dw7RR9ZG1L/HmssWrN3dRZHYnsUVda1aUzvjc1bWT7/VqIwwN+4X0h xKDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=YhYL1yjquM7dAaK23kdqTcBY491xsysbr1BTwKuMDSQ=; b=t8kraxU11Vb8QG8UqcMCJfFn5x8dl5Lr6L3nW9cyghwFaq2L+N5BeWSa8YSnNsUFQs VL74zEueTaNps4zoMbOjeSs+1U3+zd/Uf3gJkLL6fnE2A+53Re4iFXpIYaLF3Y5HwUnC RAGjC4C1mhHpccYXafaQFjSDgUmyP2Oeuz9N1k2qU3u7niWdCgTTld7VJd3xVlsUkNxP yNz/cWkqdbKpv6j6NyTDQqe68SjLPNmj7Fwrwzg1zRgfzWb5kbmLk/rffeUXtNkulZ0N jPdF9bvzYU7h4fkE4JqVvpZRHMB3RQ5t90MyM6DOL1QvI99e1sT19H4ZwuAJGmkRuTsn M/Wg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmu.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i34-v6si6228399pgb.203.2018.09.06.11.24.21; Thu, 06 Sep 2018 11:24:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmu.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728021AbeIFQvl (ORCPT + 99 others); Thu, 6 Sep 2018 12:51:41 -0400 Received: from hurricane.elijah.cs.cmu.edu ([128.2.209.191]:37082 "EHLO hurricane.elijah.cs.cmu.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727126AbeIFQvl (ORCPT ); Thu, 6 Sep 2018 12:51:41 -0400 Received: from [127.0.0.1] (helo=cs.cmu.edu) by hurricane.elijah.cs.cmu.edu with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1fxtCz-0000yO-49; Thu, 06 Sep 2018 08:16:25 -0400 Date: Thu, 6 Sep 2018 08:16:24 -0400 From: Jan Harkes To: Yann Droneaud Cc: David Howells , linux-api@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/11] UAPI: coda: Don't use internal kernel structs in UAPI Message-ID: <20180906121623.6lrt6lajqstdymtx@cs.cmu.edu> Mail-Followup-To: Yann Droneaud , David Howells , linux-api@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <1c57005277ac723ebb670a1dc847a205f0529d53.camel@opteya.com> <153616286704.23468.584491117180383924.stgit@warthog.procyon.org.uk> <153616291029.23468.16421004714304578585.stgit@warthog.procyon.org.uk> <9916.1536218032@warthog.procyon.org.uk> <2e337313415a1ede1fb7a777902a0de7cb7c2602.camel@opteya.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2e337313415a1ede1fb7a777902a0de7cb7c2602.camel@opteya.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 01:52:29PM +0200, Yann Droneaud wrote: > Hi, > > Le jeudi 06 septembre 2018 ? 08:13 +0100, David Howells a ?crit : > > Yann Droneaud wrote: > > > > > This structure should not have been exposed to userspace in the > > > first > > > place: it's unusable by userspace as it is. It was incorrect to > > > have it > > > outside of #ifdef __KERNEL__ before commit 607ca46e97a1b ... > > > ... > > > All CODA_REQ_* defines internals to kernel side and not exchanged > > > with > > > userspace. > > > > > > Please move them back to > > > > Is there any reason coda_psdev.h needs to be in include/linux/ rather > > than fs/coda/? > > > > It's a valid concern. > > At first I thought the first lines (see below) could have been useful > for userspace: > > #define CODA_PSDEV_MAJOR 67 > #define MAX_CODADEVS 5 /* how many do we allow */ Nope, userspace just tries to open /dev/cfs0, or a manually configured alternative. We have only used linux/coda.h, and actually carry our own copy of that file which is kept in sync manually, which is why there are all those ifdefs for different systems in there. This all originates from the time of the 2.1.x kernels when Coda was built externally. > But the file was unsuable for a long long time so we can assume it's > usage by userspace is deprecated, then we could remove it from UAPI, > and moves its content back to include/linux. > > As one could see include/linux/coda_psdev.h is not used outside of > fs/coda, moving the header here as you suggests seems to be the correct > solution. Agreed. Jan