From: Marcus Sundberg <marcus@cendio.se>
To: MAC21C@chollian.net
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: QM_MODULES
Date: 26 Oct 2000 21:35:14 +0200 [thread overview]
Message-ID: <ver953jszx.fsf@lipta.cendio.se> (raw)
In-Reply-To: MAC21C@chollian.net's message of "Thu, 26 Oct 2000 09:56:23 +0900"
MAC21C@chollian.net writes:
> hello all!!
>
> I have a problum.
>
> I made the test.c file for device driver test.
>
> ========== test.c ===================
> #define MODULE
> #include <linux/kernel.h>
> #include <linux/module.h>
>
> #if CONFIG_MODVERSIONS==1
> #define MODVERSION
> #include <linux/modversions.h>
> #endif
That should read:
========== test.c ===================
#define MODULE
#include <linux/config.h>
#ifdef CONFIG_MODVERSIONS
# define MODVERSIONS
# include <linux/modversions.h>
#endif
#include <linux/kernel.h>
#include <linux/module.h>
> int init_module(void) { printk("Hello, kim\n"); return 0; }
> void cleanup_module(void) { printk("Goodbye Kim\n"); }
> ======================================
> And, compile options
> powerpc-linux-gcc -D__KERNEL__ -O -c test.c
> /tmp/cc8k7ews.s: Assembler messages:
> /tmp/cc8k7ews.s:6: Warning: Ignoring changed section attributes for .modinfo
Haven't seen that message before. If the above doesn't help, try
changing the -O flag to -O2.
Also, what version of binutils are you using?
//Marcus
--
-------------------------------+-----------------------------------
Marcus Sundberg | Phone: +46 707 452062
Embedded Systems Consultant | Email: marcus@cendio.se
Cendio Systems AB | http://www.cendio.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2000-10-26 19:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-26 0:56 QM_MODULES MAC21C
2000-10-26 16:08 ` QM_MODULES Cal Erickson
2000-10-26 19:35 ` Marcus Sundberg [this message]
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=ver953jszx.fsf@lipta.cendio.se \
--to=marcus@cendio.se \
--cc=MAC21C@chollian.net \
--cc=linuxppc-embedded@lists.linuxppc.org \
/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;
as well as URLs for NNTP newsgroup(s).