From patchwork Tue Apr 25 06:47:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 87258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3214403vqo; Mon, 24 Apr 2023 23:55:45 -0700 (PDT) X-Google-Smtp-Source: AKy350bFQJ/xxu/WDvPUPF5qqH4aBwGceztf1Z9Zo2Tfrf9lomz5bBEnXWw0+Rn8LIPCi2dWsRT1 X-Received: by 2002:a17:902:f7d6:b0:19e:2fb0:a5d9 with SMTP id h22-20020a170902f7d600b0019e2fb0a5d9mr17941902plw.32.1682405745385; Mon, 24 Apr 2023 23:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682405745; cv=none; d=google.com; s=arc-20160816; b=wq2+9Ew/ZNo5xc3e6Y5lh7V2gl9bC0Y8rf32KSPmp+RvE9wLhEccuZbs02ANonVPys lahfopnTW2byz69F573nv6cmB+rdgAMW/5YHlV3pRc5FjvMzp2JrsBP++K8t2jkwCYZE XPa8ms4NQDqBxk86Vw2ERk95hROaYxDb94lKOws/yXWVMYSxicgEzyX2C7ZJ53gQfqaF tM+/WS5iNvPS4/YovGLgMcFJ6H3OOzgs3hWZvFW4QMRwbHhkhKfAW8x43MAsYi6f8FPt c1eePnr75Xj9CDu4ILH7C+PRW0yygL1F4bh4qPxVOsx6LbOg/43IDAnLQGOQmu7jWvBn GNdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xSNUhNscxEqVyr5Wkr8JJ5bNbQGHTG7dlAH1ZVdGGxI=; b=J97wA8LFZl9/Zz09tE7t6bF0hokCTLAOW0XaopJnzhPzctehfRMZ77UCC1JIc22D/w SN5X6T6679DApUIPG33gSzvlAguIlkbshAvi4e06U8jk4gaWadO2Va6rb7175voUVjyg I0CoFa/Ey20yzahPsnZiFOpvC3KFmAWzKrA1IkftRvX3r2BGERkBCuF2oAoOjItoRjZQ 2mZbumrrWQjrJ2aoOLcfv7aikwY3MMZx2VFQ6RBcrmGMhsMWWIwpk2bYpmtjhEf/hcFa gQKPchg1FMJ3Ff1YHmrLUkl/t2M1Ex0VJRwtksTAWd0QkdLPJH65waTIv1y05B39WjEv hN3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Nw6mZSkY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s190-20020a632cc7000000b00524d6d0a4acsi10949661pgs.654.2023.04.24.23.55.30; Mon, 24 Apr 2023 23:55:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=Nw6mZSkY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233255AbjDYGrh (ORCPT + 99 others); Tue, 25 Apr 2023 02:47:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232617AbjDYGrf (ORCPT ); Tue, 25 Apr 2023 02:47:35 -0400 Received: from smtp.smtpout.orange.fr (smtp-28.smtpout.orange.fr [80.12.242.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46D4130CF for ; Mon, 24 Apr 2023 23:47:33 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id rCSWpcq9sDWp7rCSXpOke8; Tue, 25 Apr 2023 08:47:31 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1682405251; bh=xSNUhNscxEqVyr5Wkr8JJ5bNbQGHTG7dlAH1ZVdGGxI=; h=From:To:Cc:Subject:Date; b=Nw6mZSkYmqbR8DzTe0qATHJxdNCoJ2gaAENwPMxB70pbs2cD4zwXyPJC+RhvtWI8M jJ1yeE5sYoUUQP8rAZmfYjMpJMcHavsiDcGRNdJ1J8yGVRq6k7SqJPfFAO6+ZmAgi1 1KuRbXiH+JkmNeZpp5pzShHo5lhGnW7FqFpUlBnPX6TUALps2hNzPRYLdJtFR8FSta jOlXI3E4EL9JIU6OlPcbO9T9rk3N8WraSZeVZQniIcen58IO3fFzAvJFCR0pyZpTZI QDOWvg0AJliSCA3NB5SlKQ1G1J8onJmmePwqFgOV2RYJyDIXXe2TqefrAEMGIo+M6F gfwiaFfcU01Jg== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 25 Apr 2023 08:47:31 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , v9fs@lists.linux.dev Subject: [PATCH] fs/9p: Fix a datatype used with V9FS_DIRECT_IO Date: Tue, 25 Apr 2023 08:47:27 +0200 Message-Id: <80bae984fd5ca49b691bb35f2fd8f345f8bb67f1.1682405206.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764130286776211834?= X-GMAIL-MSGID: =?utf-8?q?1764130286776211834?= The commit in Fixes has introduced some "enum p9_session_flags" values larger than a char. Such values are stored in "v9fs_session_info->flags" which is a char only. Turn it into an int so that the "enum p9_session_flags" values can fit in it. Fixes: 6deffc8924b5 ("fs/9p: Add new mount modes") Signed-off-by: Christophe JAILLET Reviewed-by: Dominique Martinet Reviewed-by: Christian Schoenebeck --- Un-tested --- fs/9p/v9fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h index 06a2514f0d88..698c43dd5dc8 100644 --- a/fs/9p/v9fs.h +++ b/fs/9p/v9fs.h @@ -108,7 +108,7 @@ enum p9_cache_bits { struct v9fs_session_info { /* options */ - unsigned char flags; + unsigned int flags; unsigned char nodev; unsigned short debug; unsigned int afid;