]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
uml: remove __u64 usage from physical memory subsystem
authorJeff Dike <jdike@addtoit.com>
Tue, 16 Oct 2007 08:27:05 +0000 (01:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:05 +0000 (09:43 -0700)
Eliminate some uses of __u64 in the physical memory support.  It's hard to get
a definition of __u64 in both kernel and userspace code on x86_64, so this
changes them to unsigned long long.

There are also a copyright update and formatting comment removal from the
affected header.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/include/mem.h
arch/um/kernel/physmem.c
arch/um/os-Linux/skas/process.c

index e8ff0d8fa61037360dd3cd3488b4cab1588f0b52..5cd40e99e8d5c925ba0f7a983972f5153462a571 100644 (file)
@@ -1,18 +1,12 @@
 /* 
- * Copyright (C) 2002, 2003 Jeff Dike (jdike@addtoit.com)
+ * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  * Licensed under the GPL
  */
 
 #ifndef __MEM_H__
 #define __MEM_H__
 
-#include "linux/types.h"
-
-extern int phys_mapping(unsigned long phys, __u64 *offset_out);
-extern int physmem_subst_mapping(void *virt, int fd, __u64 offset, int w);
-extern int is_remapped(void *virt);
-extern int physmem_remove_mapping(void *virt);
-extern void physmem_forget_descriptor(int fd);
+extern int phys_mapping(unsigned long phys, unsigned long long *offset_out);
 
 extern unsigned long uml_physmem;
 static inline unsigned long to_phys(void *virt)
@@ -26,14 +20,3 @@ static inline void *to_virt(unsigned long phys)
 }
 
 #endif
-
-/*
- * Overrides for Emacs so that we follow Linus's tabbing style.
- * Emacs will notice this stuff at the end of the file and automatically
- * adjust the settings for this buffer only.  This must remain at the end
- * of the file.
- * ---------------------------------------------------------------------------
- * Local variables:
- * c-file-style: "linux"
- * End:
- */
index a55d221d8a4c337c9311d16ad46e9d7e7e8678a4..1fe86d8cf092309e5428bd25f20e5556cf4a2c2c 100644 (file)
@@ -115,7 +115,7 @@ void __init setup_physmem(unsigned long start, unsigned long reserve_end,
                     len - bootmap_size - reserve);
 }
 
-int phys_mapping(unsigned long phys, __u64 *offset_out)
+int phys_mapping(unsigned long phys, unsigned long long *offset_out)
 {
        int fd = -1;
 
index e12d18cc77da44912379bb216dc02e759cbc7c55..a20d313c823efee9f01673cd26ce9852eb0b492c 100644 (file)
@@ -382,7 +382,7 @@ int copy_context_skas0(unsigned long new_stack, int pid)
        unsigned long current_stack = current_stub_stack();
        struct stub_data *data = (struct stub_data *) current_stack;
        struct stub_data *child_data = (struct stub_data *) new_stack;
-       __u64 new_offset;
+       unsigned long long new_offset;
        int new_fd = phys_mapping(to_phys((void *)new_stack), &new_offset);
 
        /*
@@ -444,7 +444,7 @@ void map_stub_pages(int fd, unsigned long code,
 {
        struct proc_mm_op mmop;
        int n;
-       __u64 code_offset;
+       unsigned long long code_offset;
        int code_fd = phys_mapping(to_phys((void *) &__syscall_stub_start),
                                   &code_offset);
 
@@ -469,7 +469,7 @@ void map_stub_pages(int fd, unsigned long code,
        }
 
        if (stack) {
-               __u64 map_offset;
+               unsigned long long map_offset;
                int map_fd = phys_mapping(to_phys((void *)stack), &map_offset);
                mmop = ((struct proc_mm_op)
                                { .op        = MM_MMAP,