From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by kanga.kvack.org (Postfix) with ESMTP id 7BB7D6B0037 for ; Fri, 7 Feb 2014 07:04:25 -0500 (EST) Received: by mail-pb0-f43.google.com with SMTP id md12so3157173pbc.16 for ; Fri, 07 Feb 2014 04:04:25 -0800 (PST) Received: from mail-pa0-x234.google.com (mail-pa0-x234.google.com [2607:f8b0:400e:c03::234]) by mx.google.com with ESMTPS id gx4si4793312pbc.291.2014.02.07.04.04.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 04:04:23 -0800 (PST) Received: by mail-pa0-f52.google.com with SMTP id bj1so3101325pad.11 for ; Fri, 07 Feb 2014 04:04:23 -0800 (PST) Date: Fri, 7 Feb 2014 17:34:18 +0530 From: Rashika Kheria Subject: [PATCH 3/9] mm: Mark function as static in mmap.c Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Rik van Riel , Michel Lespinasse , Hugh Dickins , Oleg Nesterov , linux-mm@kvack.org, josh@joshtriplett.org Mark function as static in mmap.c because they are not used outside this file. This eliminates the following warning in mm/mmap.c: mm/mmap.c:407:6: warning: no previous prototype for a??validate_mma?? [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett --- mm/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mmap.c b/mm/mmap.c index 834b2d7..4a03790 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -404,7 +404,7 @@ static void validate_mm_rb(struct rb_root *root, struct vm_area_struct *ignore) } } -void validate_mm(struct mm_struct *mm) +static void validate_mm(struct mm_struct *mm) { int bug = 0; int i = 0; -- 1.7.9.5 -- 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