Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1989718imu; Fri, 14 Dec 2018 04:09:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/WKzyw4Bz3wH6WR8MwgYvadakkxwxpRaZxx/4x0PEWut0suYEYEYVwgLg5t6L87XxDmUoBK X-Received: by 2002:a17:902:346:: with SMTP id 64mr2667794pld.337.1544789365076; Fri, 14 Dec 2018 04:09:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544789365; cv=none; d=google.com; s=arc-20160816; b=YgDfUpqBX9xSVOvrUOiexFgH6MwCSaOuz/Gx3MvkIH3ad6wmwLLr3qSQVwM0KMGju6 fWvDj1Bc+sqcEZ7a/ShsjUusn4kReu0jrXpUrk/AofOtxUaQBrImcT041alD22wF6Bx3 YPL9HAhUVl2mTpm/s+ful0PJVzgYcTySaFSxNfGJeorRvmSzWEp4zU7OySsXyzcN3KVk 84G8gX8RuHaBHVffymow0mbTDjCmZLX5Oofcmx9n6D90qv0d0zVFtcLPu6VMUcElMR56 UuEMCEIG3PouMrEMgT32GeY5j46m3MZTxX3dMj21eWsSWkZGoo//TRI4+jbWPhPPONWZ +PGw== 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=T8PouMl4MR8f8cyAF6NU799s5/l+DBwlW55xuNCbHeU=; b=DZLTAfsergRtx9QytSPNFjNGRPd5Y28VyEpJdCVEcnrcKv3wk6qMx1+w5pP96bOqVe BSmjmMNSMQJtqhXFDvcXVINQZKvkmIvmaLivPcme6qBr9WmgiaQhqIPgBJ7abAU0uPuA QXw3XWI2hVTOYS0/8i0hOd6EE85NbX7rbEPUpwF4liIhxBtZPA9ZoPHgFw6hUhans3yJ o981SZVFC/DOCLJ/0BlVejsxFSzvyvp6dhiMbwhBBS5mUyqXAcvoWzDT+JBZrt1HJIWe hAJZ04YeXxqSoc4Ic4JZ6qryNUV+nlxrVXE2bU1D2auSu5htrov07BDi+qFKjNztspFL OTGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dzBX+rk2; 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 2si3859036pgz.395.2018.12.14.04.09.05; Fri, 14 Dec 2018 04:09:25 -0800 (PST) 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=dzBX+rk2; 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 S1730131AbeLNMGZ (ORCPT + 99 others); Fri, 14 Dec 2018 07:06:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:51372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730904AbeLNMGW (ORCPT ); Fri, 14 Dec 2018 07:06:22 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 72EF621479; Fri, 14 Dec 2018 12:06:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789182; bh=fk+lnqcIjjAdFYK0y5jSgakE/KifD22Jhz/p9YbNFNw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dzBX+rk2wwKTCQIImxtbSEB2TMPfUMlklTOBXpebsgGW/WVx2Lp6fQgCy++UQhFep st183VkqjaK9OccyxU74VsaOvHOTUJ5h73UikvQqkN7L7Nrqc9j/Kz0TCgkR63oJnj 60j7TRgYhVz3ySxr24/QZRia3PBhUAAW4TscArTQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , David Howells , Sasha Levin Subject: [PATCH 4.19 118/142] cachefiles: Explicitly cast enumerated type in put_object Date: Fri, 14 Dec 2018 13:00:03 +0100 Message-Id: <20181214115751.754526103@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit b7e768b7e3522695ed36dcb48ecdcd344bd30a9b ] Clang warns when one enumerated type is implicitly converted to another. fs/cachefiles/namei.c:247:50: warning: implicit conversion from enumeration type 'enum cachefiles_obj_ref_trace' to different enumeration type 'enum fscache_obj_ref_trace' [-Wenum-conversion] cache->cache.ops->put_object(&xobject->fscache, cachefiles_obj_put_wait_retry); Silence this warning by explicitly casting to fscache_obj_ref_trace, which is also done in put_object. Reported-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Signed-off-by: David Howells Signed-off-by: Sasha Levin --- fs/cachefiles/namei.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c index 95983c744164..5ab411d4bc59 100644 --- a/fs/cachefiles/namei.c +++ b/fs/cachefiles/namei.c @@ -244,11 +244,13 @@ static int cachefiles_mark_object_active(struct cachefiles_cache *cache, ASSERT(!test_bit(CACHEFILES_OBJECT_ACTIVE, &xobject->flags)); - cache->cache.ops->put_object(&xobject->fscache, cachefiles_obj_put_wait_retry); + cache->cache.ops->put_object(&xobject->fscache, + (enum fscache_obj_ref_trace)cachefiles_obj_put_wait_retry); goto try_again; requeue: - cache->cache.ops->put_object(&xobject->fscache, cachefiles_obj_put_wait_timeo); + cache->cache.ops->put_object(&xobject->fscache, + (enum fscache_obj_ref_trace)cachefiles_obj_put_wait_timeo); _leave(" = -ETIMEDOUT"); return -ETIMEDOUT; } -- 2.19.1