Re: [PATCH] kfifo: fix warn_unused_result

From: Alan Cox
Date: Sun Dec 13 2009 - 19:50:50 EST


> The rest of the patch seems to be adding BUG()s if kfifo_in() fails.
> All over the place.
>
> If that's the appropriate way to handle failure for these callsites
> then it would be neater to do this in the callee. ie, add a new

BUG_ON is a bit extreme for most of those if they fail. WARN_ONCE perhaps
given the usual consequences are minor (eg pointer jumping)

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