From patchwork Tue Jul 18 20:50:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Van Hensbergen X-Patchwork-Id: 13317683 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F07FE101ED for ; Tue, 18 Jul 2023 20:50:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C48B2C433C8; Tue, 18 Jul 2023 20:50:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689713424; bh=jsjxHYDmiK3p+nOT5h02WYi1N3MzrRVdd2+TaPsAMcY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Ov7F4c874drS+8VG1uVw0WB825cVnx7bjr0+UgPYnPVq0LZ+TAxjfn54bGtVweBYM u2YrIDq119CAI1Wx5fuuNT7DcN6DRo2wFYKJLgP0Qvuc6fsr2Sxq3z3ZhIgbtshbBe MIMnHC32Q+Bn48Fs5GAjCFKTMUo+Sj2akZKBnH3dtv+k4lvuh80vDd1PzqosEmCxn2 TA3ScaWNq+Z9yLzicwUVqShZog2zbOWfAtqXvqURDHijmEieucXjc8bw54xRjE3vTU ZG47TGAi5JUTwSANwj1XH//mExHZD9dbguZ1Ex/6NoAm4aIk5RF+ax8T7V53iqP17C Ct8qkkGMZJhlQ== From: Eric Van Hensbergen Date: Tue, 18 Jul 2023 20:50:17 +0000 Subject: [PATCH v2 3/4] fs/9p: fix type mismatch in file cache mode helper Precedence: bulk X-Mailing-List: v9fs@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20230716-fixes-overly-restrictive-mmap-v2-3-147d6b93f699@kernel.org> References: <20230716-fixes-overly-restrictive-mmap-v2-0-147d6b93f699@kernel.org> In-Reply-To: <20230716-fixes-overly-restrictive-mmap-v2-0-147d6b93f699@kernel.org> To: Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck Cc: v9fs@lists.linux.dev, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Robert Schwebel , Eric Van Hensbergen X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=955; i=ericvh@kernel.org; h=from:subject:message-id; bh=jsjxHYDmiK3p+nOT5h02WYi1N3MzrRVdd2+TaPsAMcY=; b=owEBbQKS/ZANAwAKAYj/1ftKX/+YAcsmYgBktvsMuhuT2Ny13fKIEogkB4iNxaw3dU7ivO5zu pvtCeoh8q6JAjMEAAEKAB0WIQSWlvDRlqWQmKTK0VGI/9X7Sl//mAUCZLb7DAAKCRCI/9X7Sl// mGwgD/oCnQ6KwfSKR/K/Jq68YlKph1hzVl4u1NQzSg9tvezTVWnVsYjTxyJU60aVg1GWJGzrl70 tmG4LIN6ec9XRxP4dEDBP4FavHOiKnGnzZ2aXwOT2wtNMgkhuMfM8W2FGANt2jHg5b/JMYeYLkw Eh7Xyt3xK8VJxyICuPDCgpt9h6L5DTgJBkIFAiajmGKzbPHV0RhsFUuULMoc67qz0S3pjNL4EEu oSkg8VCadfi2FUJBGlOl3TUZ/4w5qqo3F+SqaOjWYsKu0wMeAkTNmRND0VQIirOQNWcCj3cDPET RltSMBJxX3Vw+IKE7YfMXJrY8CLG52YemdY//LKQ2x6KHAMXkuonOa9kRM8PFEshsXikCEqR0Y0 yypSLlwINnEfrEiCkWUE4grAkovh4iwjoAvTdgijuQ5MrQP/JbIvX9bPzHIpbFTiKp4unhUcIzS Llbh2a1gOv21VKk5P9qNJKfgXn9mt9sPOjubgkYtnS4HEqf4INgyAKq9Oeu4hckapKrEIvnHWWh lxPYPqvzyegZycncMyIEGhsEJ0LOSX/1a2AtLo/47B2JNkR69UUMFbNr/9iJT10iK9Wt78Ami4C S32DO1ef3Xa0VN9cDT1jTosBoBHZIu2DULwUoz4r55S+7ylGHjAa21Qec3w72qetDf5AUf1896x FXwVyE4dpalAD1A== X-Developer-Key: i=ericvh@kernel.org; a=openpgp; fpr=9696F0D196A59098A4CAD15188FFD5FB4A5FFF98 There were two flags (s_flags and s_cache) which had incorrect signed type in the parameters of the file cache mode helper function. Reviewed-by: Dominique Martinet Signed-off-by: Eric Van Hensbergen --- fs/9p/fid.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/9p/fid.h b/fs/9p/fid.h index 297c2c377e3dd..29281b7c38870 100644 --- a/fs/9p/fid.h +++ b/fs/9p/fid.h @@ -46,8 +46,8 @@ static inline struct p9_fid *v9fs_fid_clone(struct dentry *dentry) * NOTE: these are set after open so only reflect 9p client not * underlying file system on server. */ -static inline void v9fs_fid_add_modes(struct p9_fid *fid, int s_flags, - int s_cache, unsigned int f_flags) +static inline void v9fs_fid_add_modes(struct p9_fid *fid, unsigned int s_flags, + unsigned int s_cache, unsigned int f_flags) { if (fid->qid.type != P9_QTFILE) return;