Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265161AbUF1UHK (ORCPT ); Mon, 28 Jun 2004 16:07:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265157AbUF1UHK (ORCPT ); Mon, 28 Jun 2004 16:07:10 -0400 Received: from modemcable166.48-200-24.mc.videotron.ca ([24.200.48.166]:55436 "EHLO xanadu.home") by vger.kernel.org with ESMTP id S265163AbUF1UGL (ORCPT ); Mon, 28 Jun 2004 16:06:11 -0400 Date: Mon, 28 Jun 2004 16:06:04 -0400 (EDT) From: Nicolas Pitre X-X-Sender: nico@xanadu.home To: Linus Torvalds , Andrew Morton cc: lkml Subject: [PATCH] move prototype for __get_vm_area() to a sane location Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1571 Lines: 41 There are currently two files besides mm/vmalloc.c that make use of that function: - arch/sh/kernel/cpu/sh4/sq.c which defined its own prototype locally risking not being in sync with the real function, and - arch/arm/kernel/module.c which has no prototype at all and cause build warnings. This patch fixes those issues. --- linux-2.6/include/linux/vmalloc.h 27 Jun 2004 17:54:00 -0000 1.11 +++ linux-2.6/include/linux/vmalloc.h 28 Jun 2004 19:48:16 -0000 @@ -36,6 +36,8 @@ * Lowlevel-APIs (not for driver use!) */ extern struct vm_struct *get_vm_area(unsigned long size, unsigned long flags); +extern struct vm_struct *__get_vm_area(unsigned long size, unsigned long flags, + unsigned long start, unsigned long end); extern struct vm_struct *remove_vm_area(void *addr); extern int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages); --- linux-2.6/arch/sh/kernel/cpu/sh4/sq.c 23 Mar 2004 15:25:10 -0000 1.3 +++ linux-2.6/arch/sh/kernel/cpu/sh4/sq.c 28 Jun 2004 19:43:18 -0000 @@ -34,8 +34,6 @@ static LIST_HEAD(sq_mapping_list); static spinlock_t sq_mapping_lock = SPIN_LOCK_UNLOCKED; -extern struct vm_struct *__get_vm_area(unsigned long size, unsigned long flags, unsigned long start, unsigned long end); - /** * sq_flush - Flush (prefetch) the store queue cache * - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/