]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/proc/kcore.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-2.6.18
[linux-2.6-omap-h63xx.git] / fs / proc / kcore.c
index 17f6e8fa13978801e939a2a9cf749fcae8d7bf4f..6a984f64edd7179893887528f07a63f90bf7b15c 100644 (file)
@@ -9,7 +9,6 @@
  *     Safe accesses to vmalloc/direct-mapped discontiguous areas, Kanoj Sarcar <kanoj@sgi.com>
  */
 
-#include <linux/config.h>
 #include <linux/mm.h>
 #include <linux/proc_fs.h>
 #include <linux/user.h>
@@ -43,8 +42,6 @@ const struct file_operations proc_kcore_operations = {
 #define        kc_offset_to_vaddr(o) ((o) + PAGE_OFFSET)
 #endif
 
-#define roundup(x, y)  ((((x)+((y)-1))/(y))*(y))
-
 /* An ELF note in memory */
 struct memelfnote
 {
@@ -385,7 +382,7 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
                                 */
                                if (n) { 
                                        if (clear_user(buffer + tsz - n,
-                                                               tsz - n))
+                                                               n))
                                                return -EFAULT;
                                }
                        } else {