[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070919.161717.57157258.davem@davemloft.net>
Date: Wed, 19 Sep 2007 16:17:17 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: shemminger@...ux-foundation.org
Cc: netdev@...r.kernel.org, Ariel.Hendel@....com, greg.onufer@....com,
jeff@...zik.org
Subject: Re: [PATCH]: Preliminary release of Sun Neptune driver
From: Stephen Hemminger <shemminger@...ux-foundation.org>
Date: Wed, 19 Sep 2007 16:05:20 -0700
> GCC is not as smart as you think... Try the following test:
Indeed, thanks for pointing that out. I'll have to
macroize it like this to get the check:
static int __niu_wait_bits_clear_mac(void *np, unsigned long reg,
int limit, int delay)
{
...
#define niu_wait_bits_clear_mac(NP, REG, LIM, DELAY) \
({ BUILD_BUG_ON(LIM <= 0 || DELAY < 0); \
__niu_wait_bits_clear_mac(NP, REG, LIM, DELAY); \
})
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists