linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: hychon <hychon@genetel.co.kr>
To: linuxppc-embedded@lists.linuxppc.org
Subject: i can't use the function in kernel??
Date: Mon, 16 Jul 2001 19:26:32 +0900	[thread overview]
Message-ID: <3B52C152.F5FB58B7@genetel.co.kr> (raw)


hi!

I write a  sample network device driver based on MPC860T
but  no experience  any device driver.
I reference  '/kernel/arch/ppc/8xx_io/enet.c' file  and I wirte a
program.

when I compile (ppc_8xx-gcc -o network network.c ) , occur error with
following message

============== -error ============================================
~~/network.c : undefined reference to 'printk'
 ~~/network.c : relocation truncation to fit : R_PPC_REL24 printk

~/network.c : undefined reference to 'kmalloc'
 ~~/network.c : relocation truncation to fit : R_PPC_REL24 kmalloc
.........

collect2: ld returned 1 exit status
make: ***[all] Error 1

==============================================================

 I can't use 'printk()' , kmalloc() etc... function .

I include linux/kernel.h . linux/fs.h , linux/slab.h ...etc ( header
files of  need by function)
(reference  the book 'linux device driver ' by ALESSANDRO RUBIN )

why i don't use  those function?


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

             reply	other threads:[~2001-07-16 10:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-16 10:26 hychon [this message]
2001-07-16 12:43 ` PCMCIA Nokia Cardphone 2.0 for MPC823 Nguyen Trung Thanh
2001-07-16 17:12   ` Matthew Locke
2001-07-17  7:38     ` Nguyen Trung Thanh
2001-07-18 16:55       ` Matthew Locke
2001-07-16 13:10 ` i can't use the function in kernel?? James Petterson
2001-07-16 15:07   ` Tom Rini

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=3B52C152.F5FB58B7@genetel.co.kr \
    --to=hychon@genetel.co.kr \
    --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).