From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by kanga.kvack.org (Postfix) with ESMTP id F369D6B0035 for ; Sun, 31 Aug 2014 21:36:16 -0400 (EDT) Received: by mail-pd0-f171.google.com with SMTP id y13so4886339pdi.30 for ; Sun, 31 Aug 2014 18:36:16 -0700 (PDT) Received: from aserp1040.oracle.com (aserp1040.oracle.com. [141.146.126.69]) by mx.google.com with ESMTPS id pk3si11383546pdb.182.2014.08.31.18.36.15 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 31 Aug 2014 18:36:15 -0700 (PDT) From: Sasha Levin Subject: [PATCH] mm: use pgprot_val to access vm_page_prot Date: Sun, 31 Aug 2014 21:35:56 -0400 Message-Id: <1409535356-30323-1-git-send-email-sasha.levin@oracle.com> Sender: owner-linux-mm@kvack.org List-ID: To: akpm@linux-foundation.org Cc: kirill.shutemov@linux.intel.com, khlebnikov@openvz.org, riel@redhat.com, mgorman@suse.de, n-horiguchi@ah.jp.nec.com, mhocko@suse.cz, hughd@google.com, vbabka@suse.cz, walken@google.com, minchan@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Sasha Levin pgprot is defined differently in every arch, use the per-arch pgprot_val to access it. This fixes a build failure on various arches such as tile and powerpc caused by "mm: introduce dump_vma". Signed-off-by: Sasha Levin --- mm/page_alloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index add97b8..1e1bd9a 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6734,7 +6734,8 @@ void dump_vma(const struct vm_area_struct *vma) "prot %lx anon_vma %p vm_ops %p\n" "pgoff %lx file %p private_data %p\n", vma, (void *)vma->vm_start, (void *)vma->vm_end, vma->vm_next, - vma->vm_prev, vma->vm_mm, vma->vm_page_prot.pgprot, + vma->vm_prev, vma->vm_mm, + (unsigned long)pgprot_val(vma->vm_page_prot), vma->anon_vma, vma->vm_ops, vma->vm_pgoff, vma->vm_file, vma->vm_private_data); dump_flags(vma->vm_flags, vmaflags_names, ARRAY_SIZE(vmaflags_names)); -- 1.7.10.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org