summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorRishab Madhugiri <rishab.madhugiri@gmail.com>2026-08-26 21:31:40 +0000
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-08-31 02:58:31 +0100
commit03389bea2ec76e0ffe4865b4d6cec575ac9f98b8 (patch)
tree600068a6b3c7d4e64e5fe2cda8a12bee0fc052a2 /scripts/Makefile.thinlto
parent878bedc83342980834a69357a592720c3d6a6859 (diff)
downloadlinux-next-03389bea2ec76e0ffe4865b4d6cec575ac9f98b8.tar.gz
linux-next-03389bea2ec76e0ffe4865b4d6cec575ac9f98b8.zip
iio: core: Replace BUG() with WARN_ON_ONCE() and error return
As documented in Documentation/process/deprecated.rst, the use of BUG() and BUG_ON() should be avoided as they could cause a complete system crash, preventing further debugging. In iio_get_time_ns() and current_timestamp_clock_show(), the clock type is already validated against supported clock types prior to these calls, making the default switch branches expected to be unreachable. Replace these with WARN_ON_ONCE(1) followed by an error return to avoid a crash and to log the highly unexpected condition. Signed-off-by: Rishab Madhugiri <rishab.madhugiri@gmail.com> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions