Received: by 10.213.65.68 with SMTP id h4csp1742399imn; Sun, 1 Apr 2018 13:45:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/fwtQ33Y9tFwndNbPgUi1u6tXO2vw9ReRbB83LxSUrwBCr3h0EqkqX3h59Ho6T9BAIWNsY X-Received: by 2002:a17:902:4d45:: with SMTP id o5-v6mr7567293plh.84.1522615520547; Sun, 01 Apr 2018 13:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522615520; cv=none; d=google.com; s=arc-20160816; b=h4pLvBBhdCZF/YwfyFd8kpqNMR1VPzfQhbzsCPLJC1u9TCC5JbZGlnuE/hDUi/btmw g1jTXTo4hBQ4rI9DUJlBOSB6fFiFUeZSQvhteYwXt/6OodJTo76HsTs8HSpxigadpcsM e5u04xIU+VVhf3+t6fiPRjHCtZA2LggvI/pqKHya0nbMapa0Dzob5ntN04bFkb5svWll lMciZferKNLFOG8yzjCxCQqJqOMSOVVX7laBJGjgYSvm3VlMt4kg2pAFbulVXhHKmQ9C c+zz1hAXKm5d1dMwKGOCxDmjAJvPuDjPuNrFXNtLatG/p97pg889J0OY6De7xHE6oscn P2qg== 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=1XBwgn+wPbVg5FTcZ0MHsmYda/v0gR9lvQbK2Nmcoe4=; b=pfurhQEGFezNAsfyNY6F7aP4EGz1kANW7kUd7EtdXlr091KZORWy2l4YgLbBJyokUU GpSu6cb16Qpc/6uIw8ad9C/Zz/tLcJHO5GtLjqueqLpoy42PinL88TGtdspQp96dFHen 6Tjum4fL7c4pXimojOjqg1asdpqH/1njcQFHdpSEKKw8JRc+WC02uIA3ft2B7QVRoRgp J1ottaTqNLU0k+/l2VjiDkXc7cLGLx4GswuFhZV08wFkdwcqkKrZ2THvo4kxFofybztD XVQ6my8u6TYh+h9gjPoW/fCDr7yjAsPiZ4WWfmlF72jW5RWxIScY+QYaZFK1KRHS54IA KTsA== 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 a3si4709987pgt.644.2018.04.01.13.45.07; Sun, 01 Apr 2018 13:45:20 -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 S1754625AbeDAUoD (ORCPT + 99 others); Sun, 1 Apr 2018 16:44:03 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38270 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754042AbeDAUn6 (ORCPT ); Sun, 1 Apr 2018 16:43:58 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 82A0E4070214 for ; Sun, 1 Apr 2018 20:43:58 +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 326792024CA1; Sun, 1 Apr 2018 20:43:58 +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 37/45] C++: Fix page_zonenum() int->enum From: David Howells To: linux-kernel@vger.kernel.org Date: Sun, 01 Apr 2018 21:43:57 +0100 Message-ID: <152261543771.30503.8464564611508417569.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.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sun, 01 Apr 2018 20:43:58 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Sun, 01 Apr 2018 20:43:58 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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 Make page_zonenum() cast the int it derives to the enum return type. Signed-off-by: David Howells --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index ad06d42adb1a..f91087e1ece6 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -797,7 +797,7 @@ int finish_mkwrite_fault(struct vm_fault *vmf); static inline enum zone_type page_zonenum(const struct page *page) { - return (page->flags >> ZONES_PGSHIFT) & ZONES_MASK; + return (enum zone_type)((page->flags >> ZONES_PGSHIFT) & ZONES_MASK); } #ifdef CONFIG_ZONE_DEVICE