linux-um archives
 help / color / mirror / Atom feed
From: Aurelien Francillon <aurelien.francillon@inrialpes.fr>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] [PATCH] insmod error with module, memcpy
Date: Wed, 11 Aug 2004 14:30:06 +0200	[thread overview]
Message-ID: <411A114E.7050303@inrialpes.fr> (raw)

hi,
i am unable to insmod a external module which uses the memcpy function
against a 2.4.26-um2 kernel patched with the last patches from
http://user-mode-linux.sourceforge.net/patches.html
while this works with a 2.4.24 uml kernel.

With the following patch this works again for me,
but i really don't know if this is the right way to do this ?

aurélien


--- linux-2.4.26-clean/arch/um/kernel/user_syms.c    Wed Aug 11 12:21:55 
2004
+++ linux-2.4.26/arch/um/kernel/user_syms.c    Wed Aug 11 14:07:08 2004
@@ -1,34 +1,28 @@
 #include "linux/types.h"
 #include "linux/module.h"
 
-/* XXX Deleted a number of symbols because they clashed strangely with 
headers
- * Add them back later.
- */
-
-#if 0
 /* Some of this are builtin function (some are not but could in the 
future),
  * so I *must* declare good prototypes for them and then EXPORT them.
  * The kernel code uses the macro defined by include/linux/string.h,
  * so I undef macros; the userspace code does not include that and I
  * add an EXPORT for the glibc one.*/
 
+
 #undef strlen
+#undef strstr
 #undef memcpy
 #undef memset
 
-EXPORT_SYMBOL_PROTO(strlen);
-EXPORT_SYMBOL_PROTO(memset);
-EXPORT_SYMBOL_PROTO(memcpy);
-#undef strstr
-
-EXPORT_SYMBOL_PROTO(strstr);
-
 extern size_t strlen(const char *);
 extern void *memcpy(void *, const void *, size_t);
 extern void *memset(void *, int, size_t);
-extern int printf(const char *, ...);
 
-#endif
+EXPORT_SYMBOL(strlen);
+EXPORT_SYMBOL(memcpy);
+EXPORT_SYMBOL(memset);
+
+EXPORT_SYMBOL(strstr);
+
 
 /* Here, instead, I can provide a fake prototype. Yes, someone cares: 
genksyms.
  * However, the modules will use the CRC defined *here*, no matter if 
it is




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

                 reply	other threads:[~2004-08-11 12:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=411A114E.7050303@inrialpes.fr \
    --to=aurelien.francillon@inrialpes.fr \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox