From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87F5937B018 for ; Wed, 8 Apr 2026 09:00:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775638830; cv=none; b=Q9Gqc6KhOwZaBQaVCvIlwhGydtUSqQefCyr0TjziaZGTsgl2H/pkpc/KwEKPPajUcc+l5kycODUnluWuSFLcIiYWZQH1RZTGSR79NR1vsJNEgtGcdnOWm6FPSq+W7Xfpya9lrawdiLq1XK0Ayh1JLon2lNHayMwOaj+3gaGoxPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775638830; c=relaxed/simple; bh=waVPH/EP6iS7b8jTIbnBHZn+7NDcICGmu1/TlgYH8Zc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=G16+WCXR0JC+M00oHJr/y0iN6pRP5JVgQUbI1dH0utQQgQ6vmbfjkY//QM6Rvc4f9ShvpB7FZvvW0jeiCih/uRqqJrmMMy4CXJMF0QABAxj5JFEjv/fzr5fkAoSeD0VcbQdhVyXMYwAET1W2eTiLMbX00bLoPmE4Mm8jy9kv+bg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=qRpX+Ry5; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qRpX+Ry5" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-488af96f6b2so39469845e9.0 for ; Wed, 08 Apr 2026 02:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775638827; x=1776243627; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=l7Q0evWVLUiOzV/UleyvPWFrIfE+z2VYAYcRw5GhBi8=; b=qRpX+Ry5nD0Db4oMsJVFqR+17ntLMBLLgM1N95U+Okc1ht87SUer9MVpcRLspFUelx JDkzlY9imvMZd1cRJx124UAaTbNFnT91QFuQip0Wl56hsCvRz7akMRMuyB/7SANeXT+p pMyP5KQivBGqy1m2OWi7Yz0wcaO3++Mbt9ztgDJYbQ+CpatekyXAGUdAOCJT4U+4gkhM S24bSSiW4LlLoNysxDZ++SfcSporrOfqW8E7+AlBqysAj0y92DQPEq6LyKrDLwZsO5BR fP8GltKXBfAE8KMhjewzIbl7smF+DmxyDXW8QmufUHdLABg7UDxhtfO9k3N1ID2QLxzi tNMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775638827; x=1776243627; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=l7Q0evWVLUiOzV/UleyvPWFrIfE+z2VYAYcRw5GhBi8=; b=pZNq7NgjTVZsNPzFHf1+JadHTXDu3rrwwxZn3wtXMuKrWWL8Qrx9Vxcd02hilTTKnv aBZwWczNn/IQ4w9zfOArxDDn6ffXNv+hUMU53W5ZkgFVMR04v4EtvRaR7wMBUFZ5KVQz aMdRlH/j1Ii0V5tXmEMrJAAR3kiy7WWO4a03nozN3H6fFRNtRUeKef12bnO79d/PQN3L BRnWpGTR7S6yANe5PfDHFrMBhpL8851PwoUV95sOIfxRwZTtxUcGNr9H4s5uIuWnewXa Czb8TCAk626jp7kEEGHGmsCxTYCqVsr079lWFlq0A1JRYf6sM+xxnFnjUZgWsrD7VxFG 1hBQ== X-Forwarded-Encrypted: i=1; AJvYcCWZLM8fls+kfK3gupEk5MYgIZwp6l0DFcjEw2N4NQkRAaFsAPUoePkSvgQg++tKBlr0m3OGPHxLCXk8Jas=@vger.kernel.org X-Gm-Message-State: AOJu0YwnO9MNcDK5Kb91Bq0/T3NN6AX3UV8LDmDcEOH4G16PFaCCU/D0 zvHaEiHYl8/PjLm2yYvB+EkZQgIooe0bJ1kfyh+/S9zf1zwNdmOkJSfA3HHfvwq3DJLaZQ== X-Gm-Gg: AeBDiesUu6PZe6as32HPio70vw32n88yAZpnda206Q1NfvY8WgocFuU6r8zz3vhpAYh XIFEqYKfui9v1ZmUjAFhLK3m+PYP9N6WByX998X484r8RlL7aLst41/CTZuD3Ml+6TVMN+jIaY0 cwfFiOUcMIbTBes8yCMtQTFV0TtQfYDkwWqs3MHgldoBwQR4TAegnS8RTUgERvjPIdtBRZZSnEx cGZeUjWcd3JIBDxKNeyj/vZWcE/vxc64IO+OWKZgRKVB5FK9EYbjWmHNdaOXcLloHbWDmC4Wlia A5Uvufi0Ky2sylI1vsImPtbpc65qofEfqzanBUeNTp4ZP1G/7JKrG+yvfbvRlFVmfYabqiA2gyK XrppwrTXlQ85FkISC5CsWFD8NV0hIBTHMHzlDlITCmDDvqiakecmB9qWCR6dVUb3Ukthr5OtwgH tmDqH1cVPIMRnkfTcdi/tBhQerO0BTzBaTsLxJKHIOvVtqxDpHIj9W X-Received: by 2002:a05:600c:3f08:b0:485:40db:d40c with SMTP id 5b1f17b1804b1-488996d2323mr330911695e9.3.1775638826590; Wed, 08 Apr 2026 02:00:26 -0700 (PDT) Received: from localhost.localdomain ([2001:8a0:6c9b:a000:d997:3078:a4d3:4f51]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488a952a03asm293568415e9.0.2026.04.08.02.00.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2026 02:00:26 -0700 (PDT) From: Gabriel Rondon To: Greg Kroah-Hartman Cc: Christian Gromm , Parthiban Veerasooran , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] staging: most: video: replace BUG_ON() with WARN_ON() in comp_exit() Date: Wed, 8 Apr 2026 10:00:24 +0100 Message-Id: <20260408090024.51814-1-grondon@gmail.com> X-Mailer: git-send-email 2.33.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Replace BUG_ON(!list_empty(&video_devices)) with WARN_ON() in the module exit function. BUG_ON() is deprecated as it crashes the entire kernel on assertion failure (see Documentation/process/deprecated.rst). WARN_ON() logs the unexpected condition without bringing down the system. This is the last remaining BUG_ON() in the staging/most subsystem, following the dim2 series that replaced five BUG_ON() calls. Signed-off-by: Gabriel Rondon --- drivers/staging/most/video/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c index 04351f8ccccf..17cdbea2e55a 100644 --- a/drivers/staging/most/video/video.c +++ b/drivers/staging/most/video/video.c @@ -577,7 +577,7 @@ static void __exit comp_exit(void) most_deregister_configfs_subsys(&comp); most_deregister_component(&comp); - BUG_ON(!list_empty(&video_devices)); + WARN_ON(!list_empty(&video_devices)); } module_init(comp_init); -- 2.33.0