Re: [PATCH] iio: core: WARN in case sample bits do not fit storage bits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/22/22 11:10, Nuno Sá wrote:

Hi,

[...]

Arghh, completely forgot about this... Andy is right, maybe there
are
other cases (in which case, it would be nice to share :D), but
this one
is definitely one of them:

https://elixir.bootlin.com/linux/latest/source/kernel/panic.c#L579

You can have a cmdline parameter to panic on _WARN() and some
systems
may have it.

Yes, I meant panic on warning.

And I can't imagine that this driver can be system critical to the
extent
that we have to crash the system.

Is there something which does trigger a backtrace, but without
panic()ing the system ?

Nothing I'm aware... Other than directly call 'dump_stack()'

All right, dev_err() it is then. I sent V2.



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux