Re: [PATCH] iio: core: Avoid BUG() on invalid clock types

Joshua Crofts <[email protected]>
Newsgroups org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Mon, 24 Aug 2026 12:55:47 +0300
Andy Shevchenko <[email protected]> wrote:

> On Sun, Aug 23, 2026 at 10:25:02PM +0000, Rishab Madhugiri wrote:
> > Replace deprecated use of BUG() in default switch cases of
> > iio_get_time_ns() and current_timestamp_clock_show() with
> > WARN_ONCE() and return correct fallback or error codes.  
> 
> Why?!
> 

Because BUG() and BUG_ON() shouldn't be used anymore, no? Linus himself
said that he hates the macros.

-- 
Kind regards,
Joshua Crofts
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.