Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4624869pxf; Tue, 16 Mar 2021 19:55:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznr5Kt6WwM2D+nboajiyHOhIo7Vco6vGmGQfx8Ge2mQcqRavxKgbNyG6UUVgy09M/CQ8NR X-Received: by 2002:a05:6402:2695:: with SMTP id w21mr39525750edd.99.1615949744206; Tue, 16 Mar 2021 19:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615949744; cv=none; d=google.com; s=arc-20160816; b=ZFugOEB781llp4V0oUseixRi/FI1fQWbN/WEjtnahcRsgE+8MTR7IhXICwV+mdMOMo OIQzAQnDvcDMUPAIRo6fA0eEarr0fXNb6TA7OowyLj9AGDt3E2zy81ExAsodNW2sKKNR q0i6GVGl9IVNjralXu/3bBIMRECB/JbIAAWAvBOuZ9fs022/MBvZlk6yiBQqwFlQwfo8 XidQ2x8lWvBpgtC0UoEeQPzWbcDpkiiLhUSd2xJYE98PipzgbcbBCddQ3YE8aplA/sW4 MZw/8JN+tMNblPTKovmrOpCMWRtfYNROBFQRKS/Yh1M8GPK6OoQYbcVyLeJa20eptDXl 7O6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=SDNwVoDp66z8KG+bIH0VpX27SlhkPdpSlQ1jQqxqTf0=; b=twjNA5+lRs2rGUbkhkBTu+F+l3cDi8eslGA9R8kIuYpLrQRnHyFSPbWBuUTBfjbJhc TQGjbGc3Z1ppb5uC/KhyjW2XptXTaJlNjAk2sKJS4S4LzddpzxSC2pkvM0dAseghTsYl Z69HkeO0qlU0FU9H40n1H6XJ6oncsUOiten8GzJ9OhurmOfPziZifuvTSahjmhBDOQ2f F7s/IkL/2ZEBajSh17IxsJA2OaScXSx7lhndYeXAURA8WY6O2KTwePjPemdMJXxszOCW 7vS7y7Mizdv7jzVelk5wHPkCIeHWt4UBbL70G278KmtB/1WhO+EjLlZKVSS/et38Lexj ckMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si15602659edv.488.2021.03.16.19.55.21; Tue, 16 Mar 2021 19:55:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229854AbhCQCxI (ORCPT + 99 others); Tue, 16 Mar 2021 22:53:08 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:41649 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbhCQCwn (ORCPT ); Tue, 16 Mar 2021 22:52:43 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0USCjvVa_1615949556; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0USCjvVa_1615949556) by smtp.aliyun-inc.com(127.0.0.1); Wed, 17 Mar 2021 10:52:41 +0800 From: Jiapeng Chong To: davem@davemloft.net Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] sparc64: replace if (cond) BUG() with BUG_ON() Date: Wed, 17 Mar 2021 10:52:35 +0800 Message-Id: <1615949555-79881-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warnings: ./arch/sparc/kernel/traps_64.c:419:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/sparc/kernel/traps_64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/sparc/kernel/traps_64.c b/arch/sparc/kernel/traps_64.c index a850dcc..fbd9097 100644 --- a/arch/sparc/kernel/traps_64.c +++ b/arch/sparc/kernel/traps_64.c @@ -415,8 +415,7 @@ static void spitfire_clean_and_reenable_l1_caches(void) { unsigned long va; - if (tlb_type != spitfire) - BUG(); + BUG(tlb_type != spitfire); /* Clean 'em. */ for (va = 0; va < (PAGE_SIZE << 1); va += 32) { -- 1.8.3.1