Re: [PATCH] drivers/firmware: const-ify DMI API and internals

From: Andi Kleen
Date: Sat Sep 01 2007 - 12:33:23 EST



> And if we're really lucky, this might enable some additional
> optimizations on the part of the compiler.

Only if the kernel was compiled C++. C compilers generally ignore constness
for optimization purposes because it can be so easily casted away.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/