From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754822AbbJUOA2 (ORCPT ); Wed, 21 Oct 2015 10:00:28 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:45586 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751043AbbJUOA1 (ORCPT ); Wed, 21 Oct 2015 10:00:27 -0400 From: Guenter Roeck To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Guenter Roeck , Minchan Kim Subject: [PATCH -next] mm: Fix build on non-MMU systems Date: Wed, 21 Oct 2015 07:00:23 -0700 Message-Id: <1445436023-13028-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Non-MMU systems fail to build with In file included from init/main.c:50:0: include/linux/rmap.h:274:1: error: expected declaration specifiers or ‘...’ before ‘{’ token Fixes: c3f568752340 ("mm: support madvise(MADV_FREE)") Cc: Minchan Kim Signed-off-by: Guenter Roeck --- include/linux/rmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 978f65066fd5..853f4f3c6742 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h @@ -270,7 +270,7 @@ int rmap_walk(struct page *page, struct rmap_walk_control *rwc); static inline int page_referenced(struct page *page, int is_locked, struct mem_cgroup *memcg, - unsigned long *vm_flags, + unsigned long *vm_flags) { *vm_flags = 0; return 0; -- 2.1.4