linux-mips
[Top] [All Lists]

mem_in? and mem_out? functions

To: linux-mips@linux-mips.org
Subject: mem_in? and mem_out? functions
From: Shuveb Hussain <shuveb@gmail.com>
Date: Sat, 15 Oct 2005 14:03:13 +0530
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=d6VxmD0MkbmSFQo+G829DRJvwM2T1wPJfAuZtbE3Bh26ngXZPLVbaItfQ1iHd/REGGu9oUxuMfOhELM95MeSJNSk527Ja35m7YRCm91mXqNIKPyHA47gV+8nPuYZmgEYrVIbZh2Ej9Ar5u0g/N8Dcv4WlqSqjrYGzebcR3KPbZU=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi,
I am compiling the source from git. There are definitions of macros in
include/asm/io.h for the following:

mem_inb
mem_outb
mem_inl
mem_outl
...
...

The issue is that the driver :
drivers/char/ipmi/  - have redeclared these macros as functions
statically, in the file - ipmi_si_intf.c

I do not know if this driver is used on MIPS at all, but it does get
into the way of proper compilation. If compilation of the IPMI driver
in any form is disabled (by default it gets compiled as a module),
then the compilation goes on smoothly.

I changed the names of these functions slightly and made other
modifications as to compile properly and now everything is OK, but I
do not know if this is the best way to do it, though it works for me
now.

What is the best solution for this issue?

--shuveb

<Prev in Thread] Current Thread [Next in Thread>
  • mem_in? and mem_out? functions, Shuveb Hussain <=