• Adrian Bunk's avatar
    asm-m32r/uaccess.h must #include <asm/setup.h> · ec0ced15
    Adrian Bunk authored
    This patch fixes the following compile error caused by
    commit 4016a139
    (mm/nommu.c: return 0 from kobjsize with invalid objects):
    
    /home/bunk/linux/kernel-2.6/git/linux-2.6/mm/nommu.c: In function 'kobjsize':
    /home/bunk/linux/kernel-2.6/git/linux-2.6/mm/nommu.c:112: error: 'memory_end' undeclared (first use in this function)
    /home/bunk/linux/kernel-2.6/git/linux-2.6/mm/nommu.c:112: error: (Each undeclared identifier is reported only once
    /home/bunk/linux/kernel-2.6/git/linux-2.6/mm/nommu.c:112: error: for each function it appears in.)
    
    The patch also removes now no longer required memory_{start,end}
    declarations inside access_ok().
    Reported-by: default avatarAdrian Bunk <adrian.bunk@movial.fi>
    Signed-off-by: default avatarAdrian Bunk <adrian.bunk@movial.fi>
    Cc: Hirokazu Takata <takata@linux-m32r.org>
    Cc: Michael Hennerich <Michael.Hennerich@analog.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    ec0ced15
uaccess.h 20.5 KB