]> git.hungrycats.org Git - linux/commitdiff
[PATCH] misc alpha bits
authorAlexander Viro <viro@www.linux.org.uk>
Fri, 27 Aug 2004 13:59:05 +0000 (06:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 27 Aug 2004 13:59:05 +0000 (06:59 -0700)
* long constant in a.out.h
* missing cast to pointer in pgtable.h
* removed useless __chk_user_ptr() in get_user() and put_user() - with fixed
  typeof handling in sparse we are getting the check from
  __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
  anyway, so __chk_user_ptr() is redundant there.

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-alpha/a.out.h
include/asm-alpha/pgtable.h
include/asm-alpha/uaccess.h

index 709ea3e381c35236a3bb2885e26a4036280b996a..d97daf42753d72092744207dbb69ecd61542f8fd 100644 (file)
@@ -95,7 +95,7 @@ struct exec
    Worse, we have to notice the start address before swapping to use
    /sbin/loader, which of course is _not_ a TASO application.  */
 #define SET_AOUT_PERSONALITY(BFPM, EX) \
-       set_personality (((BFPM->sh_bang || EX.ah.entry < 0x100000000 \
+       set_personality (((BFPM->sh_bang || EX.ah.entry < 0x100000000L \
                           ? ADDR_LIMIT_32BIT : 0) | PER_OSF4))
 
 #define STACK_TOP \
index 8707a399b3a05006dc3cc1cc2e597aea523dc1ae..3f1ed39d25e407954e20a683fe3a9c25de8ca20f 100644 (file)
@@ -328,7 +328,7 @@ extern inline pte_t mk_swap_pte(unsigned long type, unsigned long offset)
 #endif
 
 #define io_remap_page_range(vma, start, busaddr, size, prot) \
-    remap_page_range(vma, start, virt_to_phys(__ioremap(busaddr, size)), size, prot)
+    remap_page_range(vma, start, virt_to_phys((void *)__ioremap(busaddr, size)), size, prot)
 
 #define pte_ERROR(e) \
        printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e))
index cc5394e2c7db1588f00c13a8930e172554807262..474d06689a1eb362d23f1fd6f7bc160ac984c86c 100644 (file)
@@ -108,7 +108,6 @@ extern void __get_user_unknown(void);
 ({                                                                     \
        long __gu_err = -EFAULT, __gu_val = 0;                          \
        const __typeof__(*(ptr)) __user *__gu_addr = (ptr);             \
-       __chk_user_ptr(ptr);                                            \
        if (__access_ok((unsigned long)__gu_addr,size,segment)) {       \
                __gu_err = 0;                                           \
                switch (size) {                                         \
@@ -223,7 +222,6 @@ extern void __put_user_unknown(void);
 ({                                                                     \
        long __pu_err = -EFAULT;                                        \
        __typeof__(*(ptr)) __user *__pu_addr = (ptr);                   \
-       __chk_user_ptr(ptr);                                            \
        if (__access_ok((unsigned long)__pu_addr,size,segment)) {       \
                __pu_err = 0;                                           \
                switch (size) {                                         \