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

Anthony Barbachan (barbacha@trill.cis.fordham.edu)
Tue, 8 Sep 1998 05:27:51 -0400


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.

-----Original Message-----
From: Anthony Barbachan <barbacha@mail.cis.fordham.edu>
To: linux-kernel@vger.rutgers.edu <linux-kernel@vger.rutgers.edu>
Date: Tuesday, September 08, 1998 3:07 AM
Subject: Looking for definition of inw and/or __inw on x86

>I am writing a module for 2.0.35 which requires inw. I found inw in
>asm-i386/io.h however that definition used __inw which I cannot find at
all.
>Can anybody tell me where either __inw or a "complete" definition of inw is
>located.
>
>PS
>
> I think this is a bug since asm-i386/io.h uses __inw in its definition
>of inw, it should have included the file that contained the definition of
>__inw.
>
>
>
>-
>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
>

-
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