403-no-create_module-on-avr32.patch 1.1 KB

123456789101112131415161718192021222324252627
  1. Subject: [PATCH] Don't include create_module() for AVR32
  2. The create_module() system call is obsolete in Linux 2.6, so the
  3. AVR32 kernel doesn't even have it.
  4. Come to think about it, this should be completely unnecessary as the
  5. create_module function is only a stub when __NR_create_module is
  6. undefined.
  7. ---
  8. libc/sysdeps/linux/common/create_module.c | 3 ++-
  9. 1 file changed, 2 insertions(+), 1 deletion(-)
  10. Index: uClibc-0.9.28/libc/sysdeps/linux/common/create_module.c
  11. ===================================================================
  12. --- uClibc-0.9.28.orig/libc/sysdeps/linux/common/create_module.c 2006-02-07 16:48:38.000000000 +0100
  13. +++ uClibc-0.9.28/libc/sysdeps/linux/common/create_module.c 2006-02-07 17:17:14.000000000 +0100
  14. @@ -61,7 +61,8 @@ unsigned long create_module(const char *
  15. {
  16. return __create_module(name, size, 0, 0);
  17. }
  18. -#else
  19. +/* create_module is obsolete in Linux 2.6, so AVR32 doesn't have it */
  20. +#elif !defined(__avr32__)
  21. /* Sparc, MIPS, etc don't mistake return values for errors. */
  22. _syscall2(unsigned long, create_module, const char *, name, size_t, size);
  23. #endif