Re: PATCH: PCI changes for pre-2.3.16-1

Linus Torvalds (torvalds@transmeta.com)
Tue, 31 Aug 1999 12:09:29 -0700 (PDT)


On Tue, 31 Aug 1999, Martin Mares wrote:
>
> Writing functions returning pointers to static data is just a subscription
> for the magic bug of the week contest. I don't want to have to take care
> of "you cannot print two slot names in one printk" type things.

Hey, I kind of agree, which is why I solved essentially the same problem
wrt IP addresses with this "interesting" macro - check for the uses of
NIPQUAD() in the IPv4 networking code. Makes people avoid typing their
fingers to the bone, and in the case of networking it allowed us to have
different unpacking functions on different architectures..

Linus

-
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/