[uClinux-dev] __clear_user link error

Greg Ungerer gerg at snapgear.com
Wed Aug 22 01:51:42 EDT 2007


Hi Matt,

Matt Waddel wrote:
> The linux-2.6.x/fs/signalfd.c fails to link.  It
> complains about __clear_user() being undefined.
> The attach patch fixes the problem.  Can you
> apply it if you think it's the correct way to
> fix this?

I swapped around and made clear_user the macro and
__clear_user the real function. But otherwise applied.

Thanks
Greg




> ------------------------------------------------------------------------
> 
> diff -ruN linux-2.6.22-uc1.20070808.orig/include/asm-m68knommu/uaccess.h linux-2.6.22-uc1.20070808/include/asm-m68knommu/uaccess.h
> --- linux-2.6.22-uc1.20070808.orig/include/asm-m68knommu/uaccess.h	2007-08-08 14:19:05.000000000 -0600
> +++ linux-2.6.22-uc1.20070808/include/asm-m68knommu/uaccess.h	2007-08-16 12:30:51.000000000 -0600
> @@ -176,4 +176,6 @@
>  	return 0;
>  }
>  
> +#define __clear_user(to, s) clear_user(to, s)
> +
>  #endif /* _M68KNOMMU_UACCESS_H */
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev

-- 
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com


More information about the uClinux-dev mailing list