[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080504.005433.98511912.davem@davemloft.net>
Date: Sun, 04 May 2008 00:54:33 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: hidave.darkstar@...il.com
Cc: akpm@...ux-foundation.org, paulmck@...ibm.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -mm] __ratelimit rewrite
From: Dave Young <hidave.darkstar@...il.com>
Date: Sun, 4 May 2008 15:07:38 +0800
Hi Dave,
> @@ -76,8 +76,8 @@ extern void warn_on_slowpath(const char
> unlikely(__ret_warn_once); \
> })
>
> -#define WARN_ON_SECS(condition, state, secs) \
> - WARN_ON((condition) && __ratelimit(state))
> +#define WARN_ON_RATELIMIT(condition, state) \
> + WARN_ON((condition) && __ratelimit(state));
>
> #ifdef CONFIG_SMP
> # define WARN_ON_SMP(x) WARN_ON(x)
Are you sure you want that new semicolon there?
if (foo)
WARN_ON_RATELIMIT(...);
else
will result in a compile error.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists