Skip to contentSkip to conversation

io.h patch

Linux-mips-kernel Bradley D. LaRonde 2 participants 2 messages Mar 23, 2002 1 message not in the archive MIPS

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

----- Original Message -----
From: "Pete Popov" <[email protected]>
To: "sforge" <[email protected]>
Sent: Friday, March 22, 2002 8:11 PM
Subject: [Linux-mips-kernel]io.h patch

Quoted 3 lines

Some of the macros in io.h cause compile problems in some of the drivers because of the do while syntax. I don't see any good reason why we can't make those macros inline functions. Any objections to this patch?

I pester Ralf about this from time to time. The standing objection is that some older gccs don't do inline well.

Regards,
Brad

#2 lore raw
Quoted 8 lines · Bradley D. LaRonde

----- Original Message -----
From: "Pete Popov" <[email protected]>
To: "sforge" <[email protected]>
Sent: Friday, March 22, 2002 8:11 PM
Subject: [Linux-mips-kernel]io.h patch

Quoted 6 lines
Quoted 3 lines

Some of the macros in io.h cause compile problems in some of the drivers because of the do while syntax. I don't see any good reason why we can't make those macros inline functions. Any objections to this patch?

I pester Ralf about this from time to time. The standing objection is that some older gccs don't do inline well.

That's all true and, in fact, I had run into a compiler problem some time ago. However, even then I was able to simply rearrange my C routine a bit and then the compiler was happy.

Having pci-cardbus support on mips is kind of cool. Running wireless cards off of it is even better. Not being able to compile the drivers because of io.h isn't.

Pete