Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1114124ybi; Sat, 8 Jun 2019 02:50:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUae1q05IXmbnNqCXw7VONuN2ntos1cKW1VWZos5ICjTSENp43eBxIXIarKTTbxEmp7Kxq X-Received: by 2002:a17:90a:7107:: with SMTP id h7mr10261255pjk.38.1559987452122; Sat, 08 Jun 2019 02:50:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559987452; cv=none; d=google.com; s=arc-20160816; b=aktthInFb49sj+bkpXxwhY0D8DKe9mFkUGcLnL8FMVQ1eKJxybERgH/s6lX+asT6Fq cJm9ritWtzE1l9nrz2Wy2AuTpS/6OzX/7abpDkI6MYIz9Bw4kx0vvH8AbmW/i91YTC0+ 7LwI7JwvsWOmxz4sEuFLfGn49Wa67CH+Qr5O0bryh9K+zjSGDtnRFkb5ysmkzEAVC4T1 m0xAzw62m5/s8V8I8T4vo46rvOKhRghf4hioEVni6HOH5j2pW5t0D+lGD0FMw4Uhea/7 wvS88uE8gdVp1ezVok14YDcCWVYAjgG9Nu3XBhDTw7RUCUZN+0ZKGnwjRxvjFVvJM9HE ZTiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=ceB58BsT2jhuXKLvpsF6nc1EbvAVeMuXaSf+CtPNzlg=; b=nWFa9wEzdy/FnnWVC9jsolJMV9MeFGiesUNT6OL4npTQLOgqWTV35HU6GypSQySSzi QnNfmtRGJANEcVMx+q3bzEoDSokrr212poaa46OVAPxCNoqrcxf208LbQIicLiIbg0Oa O9MGXuBGkyuQVAXI7jE/r9TBhUxxal7ojvawnmjtZ0QuGdQaX8/4aFge7LFn36E7+f6E UkMofbZlZ128/gAjZeXMEvq8h2zo+KZk/sEmNe8nMhHXZernD3f0/eMcpzBaimRXRhE/ Wi9cmk47d2tOOV7ymb6HFeqaJRuWMsh3NEJ1W99Knu14ig6XrP2y+jkzOa3bVaXBKrkw Hd1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ZOHbvL/S"; 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 p18si4129837plo.349.2019.06.08.02.50.34; Sat, 08 Jun 2019 02:50:52 -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="ZOHbvL/S"; 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 S1726729AbfFHJtY (ORCPT + 99 others); Sat, 8 Jun 2019 05:49:24 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:33357 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726638AbfFHJtY (ORCPT ); Sat, 8 Jun 2019 05:49:24 -0400 Received: by mail-pg1-f196.google.com with SMTP id k187so1949705pga.0 for ; Sat, 08 Jun 2019 02:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=ceB58BsT2jhuXKLvpsF6nc1EbvAVeMuXaSf+CtPNzlg=; b=ZOHbvL/SIifcsBkKsIMBtCrqGGFpB9o8aoUYAqXaYK5rea2+tx1pKid0Xi8Vynev58 f4lILw2GUYXpeCcgNH6FgWHFCQaUtzuGBRUWW48lR3mLLdEZv9dsA1qa9AUccDBNi22I FgsktcRehMLN1neRxc76Eny2dhNClfBg9lqgOzMnQoQykFEJW79rJ6r5sHMy70/8OX7y 2sLhGA1S2c1im9T5w19fWhB6zgCHOChLxh+z3iWJNKNclF2wDv5mkWF/sxsNjI6OO3je NO3scrCxGmlU6VWSp9bmE2IM6I/n0jD+PCx/zfE5FgHtmru881NJywKLdNRLfXXsSYdj onpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=ceB58BsT2jhuXKLvpsF6nc1EbvAVeMuXaSf+CtPNzlg=; b=cCswFXr85m22UANnC2XHqdz2nf1W05rfinSMttCkprLDOXWXuJKSMG/i5XMSCleSvV /l5bd++vzNwkTEuHUD+W+vae00P5NVB47g2Zx3GU9IE4sFXdVIVn4+wLfDO15Gxo43kn TSRKNLMa6ho4l9vrYIwqipPYUtVkcfozmZDSsMVd6N+phDdBxT65P/fCfy3YaHfG3KOH IqRhjDBWrKfwLIePg96jh+sepjnGwQFaG0ClPyy94iUgtTo8wtRU+7qKc38157ucFcSy 01pbfkZhyZnQnDawWZsU5rX6rk0WnvgJztHtH4tGViARSEUN2eIR5D1KUKJRQ+6ZJsfx gUsg== X-Gm-Message-State: APjAAAW0YG/9m8tPLS2kLAHs397WnzSExUzvRWtGoF794xQvIy+f5YC+ s7S5fb5BUrsostZutnaSrQe5oah4 X-Received: by 2002:a62:65c7:: with SMTP id z190mr63825619pfb.73.1559987363342; Sat, 08 Jun 2019 02:49:23 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id z11sm4017605pjq.13.2019.06.08.02.49.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Jun 2019 02:49:22 -0700 (PDT) Date: Sat, 8 Jun 2019 15:19:18 +0530 From: Hariprasad Kelam To: Gao Xiang , Chao Yu , Greg Kroah-Hartman , linux-erofs@lists.ozlabs.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: erofs: make use of DBG_BUGON Message-ID: <20190608094918.GA11605@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DBG_BUGON is introduced and it could only crash when EROFS_FS_DEBUG (EROFS developping feature) is on. replace BUG_ON with DBG_BUGON. Signed-off-by: Hariprasad Kelam --- drivers/staging/erofs/unzip_vle.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/erofs/unzip_vle.h b/drivers/staging/erofs/unzip_vle.h index 517e5ce..902e67d 100644 --- a/drivers/staging/erofs/unzip_vle.h +++ b/drivers/staging/erofs/unzip_vle.h @@ -147,7 +147,7 @@ static inline unsigned z_erofs_onlinepage_index(struct page *page) { union z_erofs_onlinepage_converter u; - BUG_ON(!PagePrivate(page)); + DBG_BUGON(!PagePrivate(page)); u.v = &page_private(page); return atomic_read(u.o) >> Z_EROFS_ONLINEPAGE_INDEX_SHIFT; @@ -179,7 +179,7 @@ static inline void z_erofs_onlinepage_fixup(struct page *page, if (!index) return; - BUG_ON(id != index); + DBG_BUGON(id != index); } v = (index << Z_EROFS_ONLINEPAGE_INDEX_SHIFT) | @@ -193,7 +193,7 @@ static inline void z_erofs_onlinepage_endio(struct page *page) union z_erofs_onlinepage_converter u; unsigned v; - BUG_ON(!PagePrivate(page)); + DBG_BUGON(!PagePrivate(page)); u.v = &page_private(page); v = atomic_dec_return(u.o); -- 2.7.4