Re: Random panics seen in 2.6.18-rc1

From: Ingo Molnar
Date: Thu Jul 13 2006 - 04:53:06 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

> but ... i think gcc ought to be able to figure out that the parameter
> is totally unused on !LOCKDEP - all functions involved are static, and
> we are using -funit-at-a-time already. That should make the parameter
> passing totally zero-cost.

hm, gcc (as of 4.1.1) doesnt seem to be able to figure that out,
probably due to the 'nesting + 1' changing the variable.

Anyway, Arjan's nesting-type idea should solve the problem - in that
case 'nesting + 1' becomes an identity mapping of a zero-sized variable,
which will generate zero code.

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