Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3653585ybi; Tue, 18 Jun 2019 04:30:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzTF1q+Til9iHL8tOMCVKT+7EUO/akXhqMPmUjtn2ZM6CfjJP9tUIcOPr5E4CkQiEJxgcp X-Received: by 2002:a63:5152:: with SMTP id r18mr2253896pgl.324.1560857436398; Tue, 18 Jun 2019 04:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560857436; cv=none; d=google.com; s=arc-20160816; b=k6skiiQQYR5YsOSgDb0X6OMT8mcKfhMOZdwGQIZ0IuOGLyF7x15GsG6yu00YpIqhur pARb6Llxk3nD1XH4wLZvaGJTfD98qnQVkPW0++3PLseIzer/WGQmGjR25GkDieOSC/9l 3KKsEW5QXp/6eNneQ8eho3E/hFQXLSMSWT/UR4DcxupxHCONYeN4iiARDgr/R/pcd8Bj b599rtTpDHTdVN5gd6nTEmS6Qwu+JwMUoDA8Q1ZNsoLsRMCdUpPMFX8SfZZQfsoHBgfU NkApylHswKgEOY9XY8xL2UY2Xx6WHzHWSv2EcVyM+jul2aEsg43j+BOC0wEoMIDP+MvK YhqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=wrEGOsVq0QU1LIKayJop8DhsfwbTjGNywhZ8KPlb/iQ=; b=Z57mJQKnWWsINRcLIhPWszhe1P7VdCQQjG9VEertj+dZ/LYUxUfp5ea1jyrunZbG1Z d+ifi9W9Jom/ASU1wH9QeEzrnl2wZ23/ka7uClKPIHNknR6lJoFs+JDZfZjExrRM5xYP lvrmSgQoKD5Jkzj2QzG2naNc8Qw47fjKGgLhb24Adu54JglvJHTPFJWBZCtp+j+2PQwR wlXmk9tigpxLAOoUQs9P8XVo8xXHIv+J9pLZ+SALqgxBHdPjvvq39gHigPUxwxXiwPq8 I2+QwKxkY1GXc/OYKwFAazjCg501s/XGh/zKoZ892qu/xuibqpOFsQDcSooWnlQvFZQ1 w5Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="kPpSj4/V"; 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 n1si2117297pjc.42.2019.06.18.04.30.20; Tue, 18 Jun 2019 04:30:36 -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="kPpSj4/V"; 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 S1729701AbfFRL3k (ORCPT + 99 others); Tue, 18 Jun 2019 07:29:40 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:46863 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729605AbfFRL3j (ORCPT ); Tue, 18 Jun 2019 07:29:39 -0400 Received: by mail-lf1-f68.google.com with SMTP id z15so8947353lfh.13; Tue, 18 Jun 2019 04:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wrEGOsVq0QU1LIKayJop8DhsfwbTjGNywhZ8KPlb/iQ=; b=kPpSj4/VIRjoH0OsJpiTf8y2vvjy4WqTB/QT4f67I4xJKVF+/9WJKwiyHxdukyFRLb J7uPtZb2XvbeLJH2U//p6ahDbPmCq7JjB5CuD+W8z+iL1Rp5C2KQd9b6Qjfrx52Ae1g7 gL+UBdmLaz2cKMwqfbbS7ekw18aZHdHGGZ8io5QmCeC4kzbNkD4GDAYA6qK/jG1xwUM6 vvnBuGTR25yhtZ7tPJPmP/6yRLoUTimC6+M4nARHJbsAT293kUIUmscOvUPJZm0H/q5I ciY+1/zNeyNsRXsya3RYlP9fxkOsVj5rof+i0bIMZ6mQUtJPBC4prgiPrDLj9S9kmYnC yk5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wrEGOsVq0QU1LIKayJop8DhsfwbTjGNywhZ8KPlb/iQ=; b=mcjPolW2/7vYApJjjATzl+nt53xBdDC0sPZmA5vxbgBxFX1JTe45WLLt4QZgF6Twir uxZPygfDQ0wCIRLrSnUxPMNn2qyHmmrwBrhkSh4bFFRWSCAs1zX+i2byNLjCTvLG7V2V f9RnL10ne1z3NHzy7EFYg4+2Re3yGY1TOB76WGkOCn+Uv/1RzjbqK2ClBl5CVLnddUii FSDtXrfBryYwxCCr+kBwZ9lNV6ffnYfiOLOPveJ5AnxPk/cXPBeRvCZtECRRdHKnjTR+ IWAtg14P3cZfhU9fgqC11FtTMoLEkIybAxXW06Z/Zw5h/uFxId1UO+LdjL4UHC0L5TBr nOIA== X-Gm-Message-State: APjAAAU8+n63FIwz2iI6aGNwkaXHofpZDj0HfRkaXbgqKkgK5ZsODiGW zoNFtc9tQd0a5tV5tvcQpRY= X-Received: by 2002:ac2:50cd:: with SMTP id h13mr21844167lfm.36.1560857377619; Tue, 18 Jun 2019 04:29:37 -0700 (PDT) Received: from [192.168.2.145] (ppp91-79-162-197.pppoe.mtu-net.ru. [91.79.162.197]) by smtp.googlemail.com with ESMTPSA id l15sm2848490ljh.0.2019.06.18.04.29.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 04:29:36 -0700 (PDT) Subject: Re: [PATCH V9] i2c: tegra: remove BUG() macro To: Bitan Biswas , Laxman Dewangan , Thierry Reding , Jonathan Hunter , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Rosin , Wolfram Sang Cc: Shardar Mohammed , Sowjanya Komatineni , Mantravadi Karthik References: <1560856182-26072-1-git-send-email-bbiswas@nvidia.com> From: Dmitry Osipenko Message-ID: Date: Tue, 18 Jun 2019 14:29:35 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <1560856182-26072-1-git-send-email-bbiswas@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 18.06.2019 14:09, Bitan Biswas пишет: > The usage of BUG() macro is generally discouraged in kernel, unless > it's a problem that results in a physical damage or loss of data. > This patch removes unnecessary BUG() macros and replaces the rest > with warning. > > Signed-off-by: Bitan Biswas > --- > drivers/i2c/busses/i2c-tegra.c | 47 +++++++++++++++++++++++++++++++++++------- > 1 file changed, 39 insertions(+), 8 deletions(-) Thank you very much! Please keep applying all the advises that were given to you during the reviews in the future patches. I made a quick test and no problems spotted, all warning spots are silent. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko