Message ID | 20250201-topic-ignore_unused_warn-v1-1-f29db78cea3a@oss.qualcomm.com (mailing list archive) |
---|---|
State | Under Review |
Headers | show |
Series | clk: Warn (and therefore taint the kernel) on clk_ignore_unused | expand |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index cf7720b9172ff223d86227aad144e15375ddfd86..9e2e240efc31f02e4880542370ba773037b733a0 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -1527,7 +1527,8 @@ static int __init clk_disable_unused(void) struct clk_core *core; int ret; - if (clk_ignore_unused) { + /* If you need ignore_unused, your platform description is broken / incomplete */ + if (WARN_ON(clk_ignore_unused)) { pr_warn("clk: Not disabling unused clocks\n"); return 0; }