From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756837AbZFDBsO (ORCPT ); Wed, 3 Jun 2009 21:48:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756199AbZFDBrh (ORCPT ); Wed, 3 Jun 2009 21:47:37 -0400 Received: from mx2.redhat.com ([66.187.237.31]:40358 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755657AbZFDBrg (ORCPT ); Wed, 3 Jun 2009 21:47:36 -0400 Date: Wed, 3 Jun 2009 21:46:28 -0400 From: Amerigo Wang To: linux-kernel@vger.kernel.org Cc: jdike@addtoit.com, rusty@rustcorp.com.au, hch@infradead.org, Amerigo Wang , mingo@elte.hu, akpm@linux-foundation.org Message-Id: <20090604014841.6332.72701.sendpatchset@localhost.localdomain> In-Reply-To: <20090604014813.6332.18486.sendpatchset@localhost.localdomain> References: <20090604014813.6332.18486.sendpatchset@localhost.localdomain> Subject: [Patch 3/5] uml module: fix uml build process due to this merge Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Due to the previous merge, uml needs to be fixed. Signed-off-by: WANG Cong Cc: Jeff Dike --- Index: linux-2.6/arch/um/sys-i386/Makefile =================================================================== --- linux-2.6.orig/arch/um/sys-i386/Makefile +++ linux-2.6/arch/um/sys-i386/Makefile @@ -8,7 +8,7 @@ obj-y = bug.o bugs.o checksum.o delay.o subarch-obj-y = lib/semaphore_32.o lib/string_32.o subarch-obj-$(CONFIG_HIGHMEM) += mm/highmem_32.o -subarch-obj-$(CONFIG_MODULES) += kernel/module_32.o +subarch-obj-$(CONFIG_MODULES) += kernel/module.o USER_OBJS := bugs.o ptrace_user.o fault.o Index: linux-2.6/arch/um/sys-x86_64/Makefile =================================================================== --- linux-2.6.orig/arch/um/sys-x86_64/Makefile +++ linux-2.6/arch/um/sys-x86_64/Makefile @@ -8,10 +8,8 @@ obj-y = bug.o bugs.o delay.o fault.o ldt setjmp.o signal.o stub.o stub_segv.o syscalls.o syscall_table.o \ sysrq.o ksyms.o tls.o -obj-$(CONFIG_MODULES) += um_module.o - subarch-obj-y = lib/csum-partial_64.o lib/memcpy_64.o lib/thunk_64.o -subarch-obj-$(CONFIG_MODULES) += kernel/module_64.o +subarch-obj-$(CONFIG_MODULES) += kernel/module.o ldt-y = ../sys-i386/ldt.o Index: linux-2.6/arch/um/sys-x86_64/um_module.c =================================================================== --- linux-2.6.orig/arch/um/sys-x86_64/um_module.c +++ /dev/null @@ -1,21 +0,0 @@ -#include -#include - -/* Copied from i386 arch/i386/kernel/module.c */ -void *module_alloc(unsigned long size) -{ - if (size == 0) - return NULL; - return vmalloc_exec(size); -} - -/* Free memory returned from module_alloc */ -void module_free(struct module *mod, void *module_region) -{ - vfree(module_region); - /* - * FIXME: If module_region == mod->init_region, trim exception - * table entries. - */ -} -