All of lore.kernel.org
 help / color / mirror / Atom feed
From: Seb James <seb@peak.uklinux.net>
To: linuxppc-dev@lists.linuxppc.org
Subject: Using in_8 and out_8 without module optimization
Date: 21 Oct 2003 14:25:24 +0100	[thread overview]
Message-ID: <1066742722.18957.36.camel@circle.hypercube> (raw)


Hello,

I have a kernel module that I wish to insmod into a linux kernel running
on a powerpc chip (mpc823).

It uses an inline function declared and defined in asm-ppc/io.h: out_8.

I #include io.h in my code, and call the function out_8. The code
compiles fine. The module insmods fine as long as I called gcc with -O
for some optimization when compiling.

I need to run the module without optimization as I really need a section
of the code to run exactly as I've coded it, but when I compile without
the -O, insmod fails to insert the module, complaining:

driver.o: unresolved symbol out_8

Something to do with the fact that -O inlines quite a lot of the
functions in my module, but I don't understand any further than this.
Can anyone suggest a way I can use out_8 without optimizing my module?

best regards,

Seb James.


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

             reply	other threads:[~2003-10-21 13:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-21 13:25 Seb James [this message]
2003-10-21 13:48 ` Using in_8 and out_8 without module optimization Wolfgang Grandegger
2003-10-21 14:03   ` Holger Bettag
2003-10-22 15:41 ` linas

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=1066742722.18957.36.camel@circle.hypercube \
    --to=seb@peak.uklinux.net \
    --cc=linuxppc-dev@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.