From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755833AbbGUQZD (ORCPT ); Tue, 21 Jul 2015 12:25:03 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:40307 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753084AbbGUQZB (ORCPT ); Tue, 21 Jul 2015 12:25:01 -0400 From: Guenter Roeck To: Chris Metcalf Cc: linux-kernel@vger.kernel.org, Guenter Roeck , Eric B Munson , Andrew Morton Subject: [PATCH -next] tile: Add missing definition of MAP_LOCKONFAULT Date: Tue, 21 Jul 2015 09:24:55 -0700 Message-Id: <1437495895-31944-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.1.0 X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit c5827483ad6b ("mm: mmap: add mmap flag to request VM_LOCKONFAULT") defines and uses MAP_LOCKONFAULT, but does not to add the definition for the tile architecture. This results in the following build error. include/linux/mman.h: In function 'calc_vm_flag_bits': include/linux/mman.h:90:9: error: 'MAP_LOCKONFAULT' undeclared Fixes: c5827483ad6b ("mm: mmap: add mmap flag to request VM_LOCKONFAULT") Cc: Eric B Munson Cc: Andrew Morton Signed-off-by: Guenter Roeck --- arch/tile/include/uapi/asm/mman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/tile/include/uapi/asm/mman.h b/arch/tile/include/uapi/asm/mman.h index acdd013a8ad6..b4f806f46553 100644 --- a/arch/tile/include/uapi/asm/mman.h +++ b/arch/tile/include/uapi/asm/mman.h @@ -29,7 +29,7 @@ #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ #define MAP_HUGETLB 0x4000 /* create a huge page mapping */ - +#define MAP_LOCKONFAULT 0x100000 /* Lock pages after they are faulted in, do not prefault */ /* * Flags for mlockall -- 2.1.0