The mdelay() macro does the wrong thing if you try to use it with an
argument expression that contains the (perfectly natural) variable name
'msec'.
Fix it to use an internal variable that doesn't clash with normal
naming.
#ifdef notdef
#define mdelay(n) (\
- {unsigned long msec=(n); while (msec--) udelay(1000);})
+ {unsigned long __ms=(n); while (__ms--) udelay(1000);})
#else
#define mdelay(n) (\
(__builtin_constant_p(n) && (n)<=MAX_UDELAY_MS) ? udelay((n)*1000) : \
- ({unsigned long msec=(n); while (msec--) udelay(1000);}))
+ ({unsigned long __ms=(n); while (__ms--) udelay(1000);}))
#endif
#ifndef ndelay