謎's キッチン

謎のひとりごと。Amazon欲しい物リストはこちら: https://www.amazon.co.jp/hz/wishlist/ls/CCPOV7C6JTD2

なんかワロタので転載


Or, we could just do the ugliest patch ever, namely

-#define pcibus_to_node(node)   (-1)
+#define pcibus_to_node(node)   ((int)(long)(node),-1)

Wow. It's so ugly it's almost wraps around and comes out the other sides
and looks pretty.

Linus

とそれに対する返信。

(void)arg, ... is better. Trick originally from Jan Beulich I think
(his code is always a good source for useful new C tricks)

-Andi