Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5628605pxb; Mon, 28 Mar 2022 15:11:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKiRylzbQM2TGSPdeySzqI6rIolPZZkh+bTH1B8R74gwak5sRz1gKLX61lIeo/WP+MzutE X-Received: by 2002:a05:6870:4617:b0:de:44ca:5e52 with SMTP id z23-20020a056870461700b000de44ca5e52mr644663oao.170.1648505470096; Mon, 28 Mar 2022 15:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648505470; cv=none; d=google.com; s=arc-20160816; b=eXn31XS0x8RdPJikAMQrr1WDLY3BDS8jDAixKWxcOq7KF+XgWH0Wc0HynwRGP7l0/h tAbsqhWoc0s5OOnDXCOmywaM43wdjw2oL9vWXMDeh50Hfgx+mm0rp97/Hz/mG8IKxs1j LdE0TGGQ3rgWF/TEkAYDTo7L5eFxUP/MM6oy1VIFXu/OqhGbs7udDo1T4G9m2EMu1BtM HEystjbKr9n2gpo24UxHX1t4QSMVrtvl45Tl4eeKpu40WWtzsIQndZzhIt8jFXsq0IDR F6Vw+yVosrwQZpoLyXZxaCaAEEB5WZkrVWy9278Du8gDTbppOmpnCVskMOvz1HKmkGwx zQZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rt0/qN1YxsWFHVUitpFOua0nMbasolGRP+D9CWGbLoY=; b=C1cdYjRbc/AsEVEaU62HHPbuvTwXBIrcoC9a58UQn5c+Rb2IX+zj+cLXcnBZF2p/rM mBrSjyE/1uMmk188+SKjyDT7Tfe8vKsQxF5xL9YbtrN46zXlKMntiddC4Ybpy1xoUnAX otC6whfc91pFc2HZZ+4KfVJKZ73ro28qkDenrGbgk5sYN1jboeY+lc5Ox7WR4snuLb+C TAHGbp1Iz32R15PV9gnbFOLM9EmaVB3xCBvAL1+ggUAJp6am7LEANlnhuFAmeQvYUuBV bCKLQAwo3Pt3utnZTel4S5n46T7RU0a6h2S3ZUZb+2VnhtxTUaWaQ17u6wV61sC4J/AX gIKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LTq1BNj7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u41-20020a056870d5a900b000de035aea25si10491909oao.8.2022.03.28.15.11.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:11:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LTq1BNj7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8290A152816; Mon, 28 Mar 2022 14:30:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241156AbiC1QIz (ORCPT + 99 others); Mon, 28 Mar 2022 12:08:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238285AbiC1QIy (ORCPT ); Mon, 28 Mar 2022 12:08:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AB512C133; Mon, 28 Mar 2022 09:07:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 372436143D; Mon, 28 Mar 2022 16:07:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E3C8C004DD; Mon, 28 Mar 2022 16:07:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648483632; bh=qZVkUhdYVaRCKeRsrsBh1vhZfOiBsQqWGLWkaspWtwI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LTq1BNj7zsS+xlAqljn7dFEkiKHxQ/XlkkYtq9n85qHygOWFP8AGfnFQDi72wOv7A XK6XvHBSgKn8eBdBZC8MJ9F5EeUlDrOD3alotytztzw1+V2DJ6rM+pl1h1shpmUbJ0 ShvKtLShfmTR/+e0g0eJ09i1IIGUdTbHrtrl0p/rtgiXaWD2uMDxdFodatVSPz4Y6H Kau7CTFHNJLA9ssUK9vMAp02adYqYiQ3CkkM2mwnI9xUfNmBr8JQYttyQaQ1KmuaW8 6laQ5sTmkDpHBvtK70ngzBXyyZ+9ngiK0U2mbH/vjMSgYWNih1H2BBMJb8UOQeluN9 2t0pkMBTlv+wQ== Date: Mon, 28 Mar 2022 09:07:05 -0700 From: Nathan Chancellor To: trix@redhat.com Cc: sfrench@samba.org, ndesaulniers@google.com, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] cifs: fix enum usage Message-ID: References: <20220328130300.3090213-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220328130300.3090213-1-trix@redhat.com> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Mon, Mar 28, 2022 at 06:03:00AM -0700, trix@redhat.com wrote: > From: Tom Rix > > Clang build fails with > cifsfs.c:709:18: error: implicit conversion from enumeration > type 'enum statusEnum' to different enumeration > type 'enum tid_status_enum' > tcon->status = CifsExiting; > ~ ^~~~~~~~~~~ > > The type of the element status changed, so enum needed to change. > Replace CifsExiting with TID_EXITING. Right, this was clearly missed by the below commit, as every other instance of tidStatus was changed to status plus the value from enum tid_status_enum, except this one. > Fixes: 7e5c8c02911b ("smb3: cleanup and clarify status of tree connections") > Signed-off-by: Tom Rix Thanks for sending the patch! Reviewed-by: Nathan Chancellor > --- > fs/cifs/cifsfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c > index 0789bf1496c74..a47fa44b6d52b 100644 > --- a/fs/cifs/cifsfs.c > +++ b/fs/cifs/cifsfs.c > @@ -706,7 +706,7 @@ static void cifs_umount_begin(struct super_block *sb) > spin_unlock(&cifs_tcp_ses_lock); > return; > } else if (tcon->tc_count == 1) > - tcon->status = CifsExiting; > + tcon->status = TID_EXITING; > spin_unlock(&cifs_tcp_ses_lock); > > /* cancel_brl_requests(tcon); */ /* BB mark all brl mids as exiting */ > -- > 2.26.3 > >