Skip to contentSkip to conversation

compatmac is not needed

PATCH David Woodhouse 2 participants 3 messages Apr 9, 2003 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines · Linux Kernel Mailing List

ChangeSet 1.1089, 2003/04/08 09:42:06-07:00, [email protected]

[PATCH] compatmac is not needed

Er, compatmac is there to make new code work in older kernels. The only concession we have to make for compatibility in the actual code is that #include, and we put all the ugliness into compatmac.h which makes it work in older kernels.

So compatmac.h ends up _empty_ in the latest kernel, but that doesn't mean it's not needed.

Please don't break stuff just for the sake of it.

Signature · 1 line
dwmw2
#2 lore raw
Quoted 9 lines · David Woodhouse
Quoted 3 lines · Linux Kernel Mailing List

ChangeSet 1.1089, 2003/04/08 09:42:06-07:00, [email protected]

[PATCH] compatmac is not needed

So compatmac.h ends up _empty_ in the latest kernel, but that doesn't mean it's not needed.

Please don't break stuff just for the sake of it.

So this is still a valid API? Good to know.

What I don't know: Can it be product specific? So the net people ship a version for new networking APIs and filesystem people ship new filesystem methods along with their filesystem support.

Reason I ask: There are many such frameworks floating around, but none was complete. Many miss BUG_ON(), likely()/unlikely(), seq_file support and many more interesting stuff.

Regards

Ingo Oeser

Signature · 3 lines
Marketing ist die Kunst, Leuten Sachen zu verkaufen, die sie
nicht brauchen, mit Geld, was sie nicht haben, um Leute zu
beeindrucken, die sie nicht moegen.
#3 lore raw
Quoted 9 lines · Ingo Oeser

So this is still a valid API? Good to know.

What I don't know: Can it be product specific? So the net people ship a version for new networking APIs and filesystem people ship new filesystem methods along with their filesystem support.

Reason I ask: There are many such frameworks floating around, but none was complete. Many miss BUG_ON(), likely()/unlikely(), seq_file support and many more interesting stuff.

Well, my copy of include/linux/mtd/compatmac.h includes just about everything needed to get the CVS MTD code, which is meant for 2.5, to build and work on 2.4.

There's definitely some scope for merging the various hacks if you're so inclined.

Signature · 1 line
dwmw2