Subject: Re: timeout issue in scsi drivers: mstohz()
To: None <>
From: David Laight <>
List: tech-kern
Date: 04/05/2002 00:31:54
On Thu, Apr 04, 2002 at 11:01:50PM +0100, Ben Harris wrote:
> It's _entirely reasonable_ for it to use the value of a variable without
> enclosing its value in parens.  If it weren't, then _every_ use of a
> variable in the source tree (not just in macros, everywhere) would have to
> use parens, just to satisfy loonies who want to write broken macros.

Yep - macro parameters have to be enclosed in parenthesis in
case they are expressions and operator precedence will mess things up,
#defines should have their own parenthesis if they are expressions,
note that #define x -1 should be #define x (-1).

OTOH if a macro argument is used as a function argument do parenthesis
are needed.


David Laight: