Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2764560ybh; Mon, 5 Aug 2019 06:29:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCbt66oxLfOfI3yu3aO550S8ceMl0flBVZ0voOJteiFCp4YiMllb+wpetBXk0uPrn8n/YY X-Received: by 2002:a17:902:b70c:: with SMTP id d12mr138465021pls.314.1565011774417; Mon, 05 Aug 2019 06:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565011774; cv=none; d=google.com; s=arc-20160816; b=zsUOVSxRT0R7QJ6Y1+3WN75sNdM0hWMZ2/BphszMNKKAXsl48mJcH1Zy8ZKn7oGX3t C30ja8Abo3YHel6kFm7vME8hBEDoLKuO9rWwt3ODZbF2nr5chsRHA/mnTcct04G/sHe4 5sEUI8zbZJEHkx3V0in6/CkTTY6rsUDjyqimC2KKBnBf0B75ZQzcwpxvH7oc7xnpdjJz c7l7EJT6+CS1cIgj/HptRtsxHcibtsImsLxrp/xSdMA/+ln7XYAq3IDXU/SRRo9J9qdy NMulazNqfbxYZouxGT0lkGw3x3mwscATwYhLWdmrW/g/fZoqzJgkIiV+Kc6+WL3ZyvJr yxlQ== 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:subject:cc:to :from:dkim-signature; bh=kPgv1y3s8ZdDTUG5nTJ9FC3VPcm4gDF4JC2AG3pZe+Y=; b=v7aC8ZzVvgA3JybY9p1xXAmXAJyLteppGEz5P8x1L5i/Htp8uOmWGYzaKooTUdzxcS 2z1JpIiEt8aghT/z/CwAxtS15ktzcrL036mKtcsr8dDa8dWZLIS6ppoKTcG6B44zUkJN /IAwgeLP3tC+ZViRJ+DsoMxrmGYtjqk6rMyhiByiUiMvgdOxjut3wIdcvLFKFzuIEnS+ Bq5eBla7+66B8ysXFYEvMpFnNvMzUPOeZGeqUIhnTgm4OOtCY4tLHacBjfgaHUHGsZC2 TQYQXIkcSDRX/sORHsvhdYM9kuckIl/JIAH4UqjCbTRVgWJGrU0L9d7/JjxSWk7XSHLg XH3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jkaVTgOZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 99si39876505plc.31.2019.08.05.06.29.19; Mon, 05 Aug 2019 06:29:34 -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; dkim=pass header.i=@kernel.org header.s=default header.b=jkaVTgOZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730706AbfHEN2u (ORCPT + 99 others); Mon, 5 Aug 2019 09:28:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:58886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729674AbfHENW1 (ORCPT ); Mon, 5 Aug 2019 09:22:27 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7E7822075B; Mon, 5 Aug 2019 13:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565011347; bh=S0RbmLSWiMKeiitaQzaZjME42noNLFqk89Z7obvKyX8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jkaVTgOZFnkot6dUKaiRk43xGSKrrqx5bZuapoOwX+AX6Azj5P9yyYSDUJHlcslv+ zcHQ8zcTCrjMLuNve/+s5CLBWmL1gMszyElTzTMFhCJTL/jzL2EspzMCeitss29wI1 vykQ3rukXK7+ORPfkzBn0nH3vKaIa6QzdPXMe8f0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mikko Rapeli , Jan Harkes , Arnd Bergmann , Colin Ian King , Dan Carpenter , David Howells , Fabian Frederick , Sam Protsenko , Yann Droneaud , Zhouyang Jia , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 5.2 059/131] uapi linux/coda_psdev.h: move upc_req definition from uapi to kernel side headers Date: Mon, 5 Aug 2019 15:02:26 +0200 Message-Id: <20190805124955.381967795@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124951.453337465@linuxfoundation.org> References: <20190805124951.453337465@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit f90fb3c7e2c13ae829db2274b88b845a75038b8a ] Only users of upc_req in kernel side fs/coda/psdev.c and fs/coda/upcall.c already include linux/coda_psdev.h. Suggested by Jan Harkes in https://lore.kernel.org/lkml/20150531111913.GA23377@cs.cmu.edu/ Fixes these include/uapi/linux/coda_psdev.h compilation errors in userspace: linux/coda_psdev.h:12:19: error: field `uc_chain' has incomplete type struct list_head uc_chain; ^ linux/coda_psdev.h:13:2: error: unknown type name `caddr_t' caddr_t uc_data; ^ linux/coda_psdev.h:14:2: error: unknown type name `u_short' u_short uc_flags; ^ linux/coda_psdev.h:15:2: error: unknown type name `u_short' u_short uc_inSize; /* Size is at most 5000 bytes */ ^ linux/coda_psdev.h:16:2: error: unknown type name `u_short' u_short uc_outSize; ^ linux/coda_psdev.h:17:2: error: unknown type name `u_short' u_short uc_opcode; /* copied from data to save lookup */ ^ linux/coda_psdev.h:19:2: error: unknown type name `wait_queue_head_t' wait_queue_head_t uc_sleep; /* process' wait queue */ ^ Link: http://lkml.kernel.org/r/9f99f5ce6a0563d5266e6cf7aa9585aac2cae971.1558117389.git.jaharkes@cs.cmu.edu Signed-off-by: Mikko Rapeli Signed-off-by: Jan Harkes Cc: Arnd Bergmann Cc: Colin Ian King Cc: Dan Carpenter Cc: David Howells Cc: Fabian Frederick Cc: Sam Protsenko Cc: Yann Droneaud Cc: Zhouyang Jia Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- include/linux/coda_psdev.h | 11 +++++++++++ include/uapi/linux/coda_psdev.h | 13 ------------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/include/linux/coda_psdev.h b/include/linux/coda_psdev.h index 15170954aa2b3..57d2b2faf6a3e 100644 --- a/include/linux/coda_psdev.h +++ b/include/linux/coda_psdev.h @@ -19,6 +19,17 @@ struct venus_comm { struct mutex vc_mutex; }; +/* messages between coda filesystem in kernel and Venus */ +struct upc_req { + struct list_head uc_chain; + 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; + wait_queue_head_t uc_sleep; /* process' wait queue */ +}; static inline struct venus_comm *coda_vcp(struct super_block *sb) { diff --git a/include/uapi/linux/coda_psdev.h b/include/uapi/linux/coda_psdev.h index aa6623efd2dd0..d50d51a57fe4e 100644 --- a/include/uapi/linux/coda_psdev.h +++ b/include/uapi/linux/coda_psdev.h @@ -7,19 +7,6 @@ #define CODA_PSDEV_MAJOR 67 #define MAX_CODADEVS 5 /* how many do we allow */ - -/* messages between coda filesystem in kernel and Venus */ -struct upc_req { - struct list_head uc_chain; - 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; - wait_queue_head_t uc_sleep; /* process' wait queue */ -}; - #define CODA_REQ_ASYNC 0x1 #define CODA_REQ_READ 0x2 #define CODA_REQ_WRITE 0x4 -- 2.20.1