Re: Looking for definition of inw and/or __inw on x86

H. Peter Anvin (hpa@transmeta.com)
8 Sep 1998 18:14:22 GMT


Followup to: <00ad01bddb0a$f525e820$04c809c0@Fake.Domain.com>
By author: "Anthony Barbachan" <barbacha@trill.cis.fordham.edu>
In newsgroup: linux.dev.kernel
>
> I finally got the function definition. The problem was that I was compiling
> my modules with just a gcc -c modname.c. Since the inlined functions in
> asm/io.h are extern the compiler kept expecting a definition for __inw and
> __inwc. This leads to another question, why in the world are the INLINED
> functions in asm-i386/io.h declared as extern?
>
> BTW, thanks to all those who helped.
>

To keep gcc from generating a copy of the function body for every
single module just in case some luser compiles without -O. It makes
the error manifest. Read the gcc manual for more info.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/faq.html