Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp577401yba; Fri, 5 Apr 2019 12:29:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDIDcvxAviSYPBq4X5650avYm52wKdlXNEetvO8ThCRdtjiqdRSHEO+ilDgub36iKrSFRE X-Received: by 2002:aa7:8b4c:: with SMTP id i12mr7789922pfd.189.1554492579629; Fri, 05 Apr 2019 12:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554492579; cv=none; d=google.com; s=arc-20160816; b=ku0m2KUCDe2FdBBsrUs1zlKIrhvls8QcxrwnRt30hqzpBPPqAjoplb/cDyu6AzDTpo C73o/dDcQTqs2tgksVtAYwfTicrQPN9DFR9zo6iKF95Q3KYUHAtGw0FZcsIXITQLUNYK PBLLGkb0ZeWQZegdltljNlkdXPwIwx9feZPAJVxLmDwlkpGQ+iQ92Z4tuWh9iX6+qfT7 7w/NrL2dTvcMmmkqXf8xJWaBr+tbW8TFEFCH8OTB98Pgkh/xAyKLB63img9I27+U0OEz 6/j+BkwgAjlpTfWJiIDTsiDK7ljR+nkBKM78SKxK5QFPKKxpUOKsgNY+CR47hzQYqWEl Pfxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=A5e5OlwaDzaaHSgM89AUO2fEaN1VXl/wQkXrwISZ4zM=; b=jKlVpaL/Dez0D18RD3zYZC1tktdCM8w6uOYNQOk/1cicsjEocdiZu/pYtVeTFkmJoe laZ/d7zdttQaiOvvFZeyxhdVTM2cHnPINC4DCZSZ2DwpT+UZZrhaNaORUowFtDxB1HzB N4cgSdt0GekK+tPo69DxFNFKzdAfMrqfFHJMTnyGtk4M7a3eqSOo74ND57zInIfZr31j xkoEsnSg0oK97Z/ktTGgZC96VsxV4anHu1ohpw8WP+1ngX9COx5VWVcXoHqnnwOEFBXM y9JBOLV5kVqG9+k9ZgRXdnTFvT9n79KrPO58UzH6Z/vFhOv0z1dleL1pf5Qq7JWuJUzM 4pSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XtFnNMW9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7si18478808pgl.261.2019.04.05.12.29.23; Fri, 05 Apr 2019 12:29:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XtFnNMW9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731746AbfDET2l (ORCPT + 99 others); Fri, 5 Apr 2019 15:28:41 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:45350 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731563AbfDET2k (ORCPT ); Fri, 5 Apr 2019 15:28:40 -0400 Received: by mail-ot1-f67.google.com with SMTP id e5so6637385otk.12 for ; Fri, 05 Apr 2019 12:28:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=A5e5OlwaDzaaHSgM89AUO2fEaN1VXl/wQkXrwISZ4zM=; b=XtFnNMW95hNXKMcPRYG+qvPSy52CZzj4XD+5tQ9UrAx/AXeU6HuKt+d5tjNiZ8XSfN UbKwIpyv/xSWGuv6XayiFqpms+FZYFQzuY+Rjx5loU5Z4AwHt/f77ZMxjOrRHq/56kpN 0Kq7xNFYhV9wj0xVENd/F6CwaALVawAIGw2iv54QrDiNh3nNSVSwYYuEBtyLQ4hE9vGJ MNYMxIie7hW/kq4+6KsbLgEZDfMyqX1klA1p+TLOMq8kPAexaDcf+laTJyS2NwzdBBqn 0T4u7fSQ06aRBeGatE+6gYq47DfT+C4eP3wO+pJlX/bwqZh73mi6tx7wYqX8q1kihn/6 dv8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=A5e5OlwaDzaaHSgM89AUO2fEaN1VXl/wQkXrwISZ4zM=; b=VH73UZJSUbPVyoK5BD76W9i8agsWCnzQ/Xe0WCyLpEvIhUpJLxjbOQ0uLRWH4KWKu9 qqTaKp/7QetvoxuruYZpeIDRLHEf0p0/LyUHMSELR+qVgxWFFenInhPhezsbTrsA+LLJ GjsA864sORmhw4yTQUkp1aLrpKAfmZX3lGBp11GJ5/EOveeSKZeO7mOPEvZCh434H4Qg qDDFxSWPybE7RRsh3O1nMxzU2itGH6c559FOh3Yt2v9EeTOFyfUHKvHCjt9xxB8Nkc90 FIYeaCnLEC5D4/nT+zX8TXvUfpopvdC3D+E1yDqhT3p9Q/3eu9pyMyxwBMHW2fn+pQXh nJUA== X-Gm-Message-State: APjAAAU0YLmba1KGnrYBTihvq2kgG8o5fuu2pFEY2kBPJBeWzTPG/Te8 gS2q9jmS7a33ZlGnKVXMN6w= X-Received: by 2002:a9d:7399:: with SMTP id j25mr9966659otk.88.1554492520073; Fri, 05 Apr 2019 12:28:40 -0700 (PDT) Received: from madhuleo ([2605:6000:1023:606d:7549:4e85:9095:b601]) by smtp.gmail.com with ESMTPSA id a34sm10391913otc.46.2019.04.05.12.28.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2019 12:28:38 -0700 (PDT) From: Madhumitha Prabakaran To: jfrederich@gmail.com, dsd@laptop.org, jon.nettleton@gmail.com, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Madhumitha Prabakaran Subject: [PATCH] Staging: olpc_dcon: Use WARN_ON() instead of BUG_ON() Date: Fri, 5 Apr 2019 14:28:36 -0500 Message-Id: <20190405192836.4866-1-madhumithabiw@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use WARN_ON() instead of BUG_ON(), as the WARN_ON() produces a backtrace without crashing the kernel. Issue found by checkpatch.pl. Signed-off-by: Madhumitha Prabakaran --- drivers/staging/olpc_dcon/olpc_dcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c index 6b714f740ac3..900baab70691 100644 --- a/drivers/staging/olpc_dcon/olpc_dcon.c +++ b/drivers/staging/olpc_dcon/olpc_dcon.c @@ -138,7 +138,7 @@ static int dcon_bus_stabilize(struct dcon_priv *dcon, int is_powered_down) } if (x < 0) { pr_err("unable to stabilize dcon's smbus, reasserting power and praying.\n"); - BUG_ON(olpc_board_at_least(olpc_board(0xc2))); + WARN_ON(olpc_board_at_least(olpc_board(0xc2))); pm = 0; olpc_ec_cmd(EC_DCON_POWER_MODE, &pm, 1, NULL, 0); msleep(100); -- 2.17.1