Received: by 10.213.65.68 with SMTP id h4csp1743440imn; Sun, 1 Apr 2018 13:47:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+XwLL1FiEc94F7rGPG13hG4R/kkBAPWfuMGDfvOX4IuQpP/0elsJdjjlRQwQST/LGWgGVJ X-Received: by 10.99.53.6 with SMTP id c6mr4688630pga.413.1522615659309; Sun, 01 Apr 2018 13:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522615659; cv=none; d=google.com; s=arc-20160816; b=iQqqRGOps8LxKFYNKesNcsldAX00M3VXmISXNjVsVdUpDwncLJe5yqI6oc3OCE/vbb wYwZ8s5osb5goYWlmU33eddxOuDWKXPKEJJIRyMuHI0p2wrTQlkWdTdPczARLjrF/17o 60TodCW2DkrGm5JXTfPVAV2w/7y5lXX/vdDgl01Q6mMJrqLZqAkDKmyfSvw9r6J5/qR/ P3bh/RbA0mD4GfR6taNY5lZuY1WeMq53CCuObFwIN+/sNBFEw7OJsRubGOd0awlf8RzO wYBqp4LDRsqq8UhYrPtapIuEKVwQbF5JVm49ybEKceY+UrkrFE7DGR1DpZf65B6nGQ/a 1Azg== 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:to:from:subject :organization:arc-authentication-results; bh=TaFu0bFKSdkC/97LL6c9vsjZvdwo3GErrKe5GhdFJNw=; b=tibvMm5ViptLLhDgtV0lwVUylfGU9Fe57eBG0SeD0IE+8zVdXAnKuaY2gjUAtXBDdJ +JRTQ6MVj9sETZZdQt4Y6Le0eFlaA579AUNieW8Gj9aas2M+BY+otZORykcRt9A+HN0z YpFgnl7KIx4Eyi7oFBo/Gm6Ttlh92vZuYVbppd8fQWUddvFn+qWsxOwwthN3aGl1teeh qriK4j8cG996Wm9eoTobV22zYZghhNQ/e7mJld6AABc8JhzoKfU868BivH5seIornvfS 9ov1ZgCiy8fpbfXRnEqXUw0XcWlOu3qpTmGcoUPqiEUnkluATZmeNTB5k4fmLLtc7cZs u0Tw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y87si2008373pfi.141.2018.04.01.13.47.25; Sun, 01 Apr 2018 13:47:39 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754611AbeDAUn6 (ORCPT + 99 others); Sun, 1 Apr 2018 16:43:58 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:53018 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754042AbeDAUnx (ORCPT ); Sun, 1 Apr 2018 16:43:53 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8DCB0A27C4 for ; Sun, 1 Apr 2018 20:43:52 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-59.rdu2.redhat.com [10.10.120.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3F099D7E08; Sun, 1 Apr 2018 20:43:52 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 36/45] C++: Fix kernfs_type() int->enum From: David Howells To: linux-kernel@vger.kernel.org Date: Sun, 01 Apr 2018 21:43:51 +0100 Message-ID: <152261543174.30503.14502150262018803568.stgit@warthog.procyon.org.uk> In-Reply-To: <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> References: <152261521484.30503.16131389653845029164.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Sun, 01 Apr 2018 20:43:52 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Sun, 01 Apr 2018 20:43:52 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix kernfs_type() to cast the integer derived from kn->flags to the return type enum. Signed-off-by: David Howells --- include/linux/kernfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h index ab25c8b6d9e3..1f06e9ddc930 100644 --- a/include/linux/kernfs.h +++ b/include/linux/kernfs.h @@ -271,7 +271,7 @@ struct kernfs_ops { static inline enum kernfs_node_type kernfs_type(struct kernfs_node *kn) { - return kn->flags & KERNFS_TYPE_MASK; + return (enum kernfs_node_type)(kn->flags & KERNFS_TYPE_MASK); } /**