Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp647553imu; Fri, 11 Jan 2019 06:45:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Z8gxzKOHd4tZGqGGcpMxCxRroAnqwd4HboLhXuvvfDY7K8pRDkvmeNs3cHYCp8tFc6cdw X-Received: by 2002:a17:902:4401:: with SMTP id k1mr15041006pld.307.1547217957401; Fri, 11 Jan 2019 06:45:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547217957; cv=none; d=google.com; s=arc-20160816; b=XnUnBDomUWDghmrgeRIH0jjUO8ts1LKumb+r1ZSKG2OBKzumlqaz7mFgZznhfF/SIb osQ6audTo2pJWR3k3t6BhYnfvaf1BlTJevebZZNzHOHa5v9mAJdn6xjN/sp0SZJMWq4f s+UmJLIx1bWo57dv1BBCvuDnmmaPcnpT6qtPzw48tv/lKyFHo3C2+MgLufDs15dUHO0k JWmv/WKsIluTxmS/RrrZrUuGxpwMgnH1pq5uKm603Tu6qrK2+dT6vLC/lHx9tQlczGYr RNTknBi2VxoDBTHyiGL/KEPyNoi+ioAJA7fZz48F6RMNI6rfYyvKFzSV4ULuonoDa/oU OkZQ== 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=WnB9XlW0M9wslEigQdO2wE0AA/etkwpqqY+FT8RDLlI=; b=dL31eMmURIB9vccc15q6FT7N3Gp8F2wGf71r43GIuIRlqO3dldUQuPLSeuYovVzmvj UjpaqGkqQlY3/5Zaf+/nUF3R91AJUQA2yvMTJ5sMNJANmLdznC5jQ6XO6CWVtkY0rIKK 8pSci8EPHe9bdgzelW03QYQKax9ozWZ5G4ZoEnRdFkAXBrHwn/UeX27ZHWR0FFnglWvA yTmOew/ygorVwx78IKanqeeAJYD31z2zb3V8dTpjUbMAkR5RzIDtqETEuv6bHbtxwJsr WARCm0vl1r6C8OlIn8yBx+Oo7BFACpXxdCICe27IxrX0YbN/qAH/fDXaASgeH62ZvFoG mweQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=srXtr1hk; 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 o16si7803082pgd.117.2019.01.11.06.45.41; Fri, 11 Jan 2019 06:45:57 -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=srXtr1hk; 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 S2404467AbfAKOns (ORCPT + 99 others); Fri, 11 Jan 2019 09:43:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:36696 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731160AbfAKOnp (ORCPT ); Fri, 11 Jan 2019 09:43:45 -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 EE6E42063F; Fri, 11 Jan 2019 14:43:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547217825; bh=JsFE5TrM4RTg0FLb4KPM2kzymK4HPkFsLHxrPJl+eB8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=srXtr1hkNdZhZszdkqO1YqvnE5sklDDmedTZb5/74K8S8Te+Fa7GY6FIZRtOxbIKP ad+WoOXEdOhcffzPmZuCoHPG1bwlPr/nSB/dJCzrzpirj+JsiSgnIGCzROiJ0DgzBW VjT1b6lgB13/a9E1v4YzSqtNdknOuSHJWcoquYfU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christian Lamparter , Christophe Leroy , Michael Ellerman Subject: [PATCH 4.20 55/65] powerpc/4xx/ocm: Fix compilation error due to PAGE_KERNEL usage Date: Fri, 11 Jan 2019 15:15:41 +0100 Message-Id: <20190111131103.597360873@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111131055.331350141@linuxfoundation.org> References: <20190111131055.331350141@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.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Christian Lamparter commit d0757237d7b18b1ce74293be7c077d86f7a732e8 upstream. This patch fixes a recent compilation regression in ocm: ocm.c: In function ‘ocm_init_node’: ocm.c:182:18: error: invalid operands to binary | (have ‘int’ and ‘pgprot_t’ {aka ‘struct ’}) _PAGE_EXEC | PAGE_KERNEL_NCG); ^ ocm.c:197:17: error: invalid operands to binary | (have ‘int’ and ‘pgprot_t’ {aka ‘struct ’}) _PAGE_EXEC | PAGE_KERNEL); ^ Fixes: 56f3c1413f5c ("powerpc/mm: properly set PAGE_KERNEL flags in ioremap()") Cc: stable@vger.kernel.org # v4.20 Signed-off-by: Christian Lamparter Reviewed-by: Christophe Leroy Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/platforms/4xx/ocm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/powerpc/platforms/4xx/ocm.c +++ b/arch/powerpc/platforms/4xx/ocm.c @@ -179,7 +179,7 @@ static void __init ocm_init_node(int cou /* ioremap the non-cached region */ if (ocm->nc.memtotal) { ocm->nc.virt = __ioremap(ocm->nc.phys, ocm->nc.memtotal, - _PAGE_EXEC | PAGE_KERNEL_NCG); + _PAGE_EXEC | pgprot_val(PAGE_KERNEL_NCG)); if (!ocm->nc.virt) { printk(KERN_ERR @@ -194,7 +194,7 @@ static void __init ocm_init_node(int cou if (ocm->c.memtotal) { ocm->c.virt = __ioremap(ocm->c.phys, ocm->c.memtotal, - _PAGE_EXEC | PAGE_KERNEL); + _PAGE_EXEC | pgprot_val(PAGE_KERNEL)); if (!ocm->c.virt) { printk(KERN_ERR