All of lore.kernel.org
 help / color / mirror / Atom feed
From: naushit@softhome.net
To: linuxppc-embedded@lists.linuxppc.org
Subject: Off topic ...about writing module
Date: Wed, 13 Dec 2000 22:07:02 GMT	[thread overview]
Message-ID: <20001213220702.8846.qmail@softhome.net> (raw)


Hi

I apologize in advance for writing off topic mail.

I am trying to write some module on my pc. but I dont get output at all.
Here is the sample code that I am trying out


hello.c
-------------------------------------------------
#define MODULE
#define __KERNEL__
#define LINUX

#if CONFIG_VERSIONS==1
#define MOD_VERSIONS
#include <linux/modversions.h>
#endif

#include <linux/module.h>

int init_module(void)
{
	printk("<1> Hello world\n";
	return 0
}

void cleanup_module(void)
{
	printk("<1> bye bye world \n");
}
-----------------------------------------

while I compile , I get following warnings... I dont understand those
warning and I dong know how to get rid of it...any suggestions?
---------------------------------------------
gcc -c hello.c
/tmp/ccMwbBAv.s:Assembler messges:
/tmp/ccMwbBAv.s:8:Warning:Ignoring changed section attributes for .modinfo.

---------------------------------------
now when I load module

#insmod hello.o
#
#lsmod hello
Module		Size 	Usedby
hello		336	o(unused)

Why dont I see hello world on my screen.??? I tried to see console which I
started with xterm -C also.

Please...........Please reply if you know my problem....

Thanking you very much for your time

Regards,
Naushit


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

                 reply	other threads:[~2000-12-13 22:07 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=20001213220702.8846.qmail@softhome.net \
    --to=naushit@softhome.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.