Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3985107imm; Wed, 5 Sep 2018 08:56:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZetu42MXB8c/1jr6rMPIW/XtAYAPdB+179tzdsgR47JvfE/IOIWemqedghS7REP3kyzCvT X-Received: by 2002:a62:5a01:: with SMTP id o1-v6mr41760417pfb.0.1536163017825; Wed, 05 Sep 2018 08:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536163017; cv=none; d=google.com; s=arc-20160816; b=jvWAb8JXZiFkbpYBdwmy/TjKW3FXWItijWKymgOJ6YTMSc44mxK16PJMRY4mVTRMIn BvdF7ZP4GmDQtRsyW4CCXJjcN4vlRBDAnsFIUC65IUxAi116HqOx6AqLgFmc3TzMtjpB fl79xkNuN354dFyJNkJfEU0rGEdHvYyH1ho8xrpagSLJPUDLMQYBekHxc2GMDtFMuBed 6tqav+bH4iQWELqFvzvQau1OTVEAXnukLLfFYrw1hYTliy3yMtPJSmzwU0cINOEhfjt3 zCsfQlXGvR1iH33Q/jQ4dSTDjIkFufk0GBA/Gl6GAwdtU2ah6w/dOXkj2qrk0yGmb5dH /xBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:organization; bh=Tm3VmyzmFXG8kTVAWDhveMc2ixwjM7CbICYPmKPIqQs=; b=YDJAPpxhPVTMqnRlI4i9aFQapNQQ05i9c2TawLNnSD7qNCdjCQqgCWaBquKyNIHHSj 7Nsupo5MThF+UP06nprOqKecUexR622Cg/ku5XWm0odPfcyCJ+dYfmolMWYzSi+RxCdR sAlMRuoYihYwddqAdeVW7enV8YLhmHh+rhSpGKAK6EFdmb2XJmBdZnfq1hQkyF2FeJgs XEGFmKyoM7/VCXifRnmYnhxugncP1k1aW05zLHLNowWKXlkI5XsXKSoaU1WqjAxmYSOZ yZmuXzlW4Xp2n+FGhBc0Iy1Mc/ld9CAV+5I4lm7b96v3wXxk7+eelf/lVMI4klf//5Gi zY5A== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w133-v6si2478494pfd.313.2018.09.05.08.56.42; Wed, 05 Sep 2018 08:56:57 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727773AbeIEU0A (ORCPT + 99 others); Wed, 5 Sep 2018 16:26:00 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:45326 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726189AbeIEUZ7 (ORCPT ); Wed, 5 Sep 2018 16:25:59 -0400 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 mx1.redhat.com (Postfix) with ESMTPS id C3940804B4B9; Wed, 5 Sep 2018 15:55:11 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-123-84.rdu2.redhat.com [10.10.123.84]) by smtp.corp.redhat.com (Postfix) with ESMTP id CAE9294643; Wed, 5 Sep 2018 15:55:10 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 05/11] UAPI: coda: Don't use internal kernel structs in UAPI From: David Howells To: linux-api@vger.kernel.org, linux-kbuild@vger.kernel.org Cc: Jan Harkes , coda@cs.cmu.edu, codalist@coda.cs.cmu.edu, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, dhowells@redhat.com Date: Wed, 05 Sep 2018 16:55:10 +0100 Message-ID: <153616291029.23468.16421004714304578585.stgit@warthog.procyon.org.uk> In-Reply-To: <153616286704.23468.584491117180383924.stgit@warthog.procyon.org.uk> References: <153616286704.23468.584491117180383924.stgit@warthog.procyon.org.uk> User-Agent: StGit/unknown-version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 05 Sep 2018 15:55:11 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 05 Sep 2018 15:55:11 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The size and layout of internal kernel structures may not be relied upon outside of the kernel and may even change in a containerised environment if a container image is frozen and shifted to another machine. Excise these from Coda's upc_req struct. Signed-off-by: David Howells cc: Jan Harkes cc: coda@cs.cmu.edu cc: codalist@coda.cs.cmu.edu cc: linux-fsdevel@vger.kernel.org --- include/uapi/linux/coda_psdev.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/coda_psdev.h b/include/uapi/linux/coda_psdev.h index aa6623efd2dd..9c3acde393cd 100644 --- a/include/uapi/linux/coda_psdev.h +++ b/include/uapi/linux/coda_psdev.h @@ -10,14 +10,18 @@ /* messages between coda filesystem in kernel and Venus */ struct upc_req { +#ifdef __KERNEL__ struct list_head uc_chain; +#endif caddr_t uc_data; u_short uc_flags; u_short uc_inSize; /* Size is at most 5000 bytes */ u_short uc_outSize; u_short uc_opcode; /* copied from data to save lookup */ int uc_unique; +#ifdef __KERNEL__ wait_queue_head_t uc_sleep; /* process' wait queue */ +#endif }; #define CODA_REQ_ASYNC 0x1