Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp55839imm; Thu, 30 Aug 2018 15:37:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZi5dEDDhnqkPZmYKh124OjvvljEJDLAE51LPmPnJQ7+8TTz0S9hlYRGj/mI9omE0+j4xNm X-Received: by 2002:a62:2c53:: with SMTP id s80-v6mr10106432pfs.154.1535668649174; Thu, 30 Aug 2018 15:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535668649; cv=none; d=google.com; s=arc-20160816; b=SZEzbhOuXs5vioVS1qoVS0xkECDA12gQe7QmiFyLpS7XdvpAcjzMVVVa4wIqTyHwW5 UeR+urrONfjWMadwWSuvLt0eHhmf7obxBwTYkIoVGpK2VhAy6oQ8FzMCCPDQRBjK8oQZ fn2izGOEGJWenCC3Fljr6dCj+ekD8e5iyufGtEelYTYcKR0XnfSPxWpWkXRK7fqANUyN vWoQb/nt3w/7YCUY4a+OK9cJ32bmbBu7CR43jipo2o3Juy5vsCW9MnMueNpJNK0N1HD8 zwsFnNUNxqksRY2r4m4e369ejfCA5ZYqJsOHJSoSNxJhhDhWgmJu3i5wnGupUFZn376n DlDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=c+y/4qDLh4Q3MH4efnGn89I4nTvNhxVoS8FHIzB7G3w=; b=JKXbfQgwSzeKjLu2BZOUCTEGdBZ77gefRvDLH9vGeIopteCcZlgpYLSVNrWMm++NYa iHQ5j/0geXYSmZJDObXCQZjhg6/rZ5BdZIanw5gkFEoiB2RJpJHBGbE0t1Ob8QPrlgUg /iCkdhQyh7TJvFcWMxVOJqq3ynGqtU3kspWbyjjmsluUs4wSTpEFPKjGNk0MmYcf4XTc Hqsowar26+wpda5faClmtMAYgjGlbpiFUxbidFf3P4CGaigJZ7h115idZy5z0YFFytYp 7YaN0lgv02TbU2SS7b/yXQdnWjMQxDZFOI1s6zBiQVVaFa1ntuY5eBN/MiEFvcvj5Rn+ Fepg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tPsH4Baf; 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 z128-v6si8231939pgb.185.2018.08.30.15.37.14; Thu, 30 Aug 2018 15:37:29 -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=tPsH4Baf; 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 S1727459AbeHaCjw (ORCPT + 99 others); Thu, 30 Aug 2018 22:39:52 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:43316 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727212AbeHaCjv (ORCPT ); Thu, 30 Aug 2018 22:39:51 -0400 Received: by mail-lf1-f65.google.com with SMTP id h64-v6so8448320lfi.10 for ; Thu, 30 Aug 2018 15:35:26 -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:in-reply-to:references; bh=c+y/4qDLh4Q3MH4efnGn89I4nTvNhxVoS8FHIzB7G3w=; b=tPsH4BafkT6QVNQAIbmbE3qCxVycHK9DLiGBqR7FGKErQ0DxGy3wEM3UgwUIwnk83d 5IXc2qD8m6G/SXcN9K70LOixp/16O6oMdyx/8Z4ayBWoSkn5D8u+XK/8lLhVaQ+1j9QY Uv3HzOmTFONsRf61/TJbx8Hr8fmi4es09kiScaGnECBe9G7Mj8CdPYZlsa+0BTCFBqEv alrInLphhErrTofh3aykDTh8tewQ0AAVMxPi7rG5edl3oqBwmZ13bsjgg4UDYqVjzb/W MgDEPtzaBNtzJaZ75PE4Mn6IpJpTYMX61yyCZQDDkPCRfF7F9OGOj+3O0bx5GgJRxkb8 H4Uw== 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:in-reply-to :references; bh=c+y/4qDLh4Q3MH4efnGn89I4nTvNhxVoS8FHIzB7G3w=; b=dmWcFsKngZUDmqox5gb0/j4yvK9+373cMXwzngrQGQrml9ubdkY9n6JaH7b9o9jrzf HELGS4+CL1vWg17T0oCrNly8Pae02SowKkCKXrljdOE+LJI6eTf18YDFeWGDtDR0YjS1 ZNO62GdmCSNQwSIxoYC015YcF1bBjZG62zHiPxWJSgVlKqUMiK+y8m0HyGI2pMpPaieG FynwFTXtJEJiFnURLUKy4jO96NQFK76F20Z59fohHf2pdJvrJ06J5PM7Wx49dDgg2FHW aE/7U0ACfhOuMgi6sqBPE5lkkukJkL1CgrOzmb6txh6ciFEk/5LmqkhcocDLDOxluuLr 5FPg== X-Gm-Message-State: APzg51CGqt2ldncdpYFHoGqVxyTC/At7mR1p6IoKHsgIgU0R7BfVhOx9 +swgQiz9+qHQu/6P3Wo7obKtn0pUcdw= X-Received: by 2002:a19:7515:: with SMTP id y21-v6mr8562758lfe.100.1535668525601; Thu, 30 Aug 2018 15:35:25 -0700 (PDT) Received: from Mort.jumbo.freeair (91-159-62-202.elisa-laajakaista.fi. [91.159.62.202]) by smtp.gmail.com with ESMTPSA id u28-v6sm1455376ljd.61.2018.08.30.15.35.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 15:35:24 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: linux-kernel@vger.kernel.org Cc: igor.stoppa@gmail.com, Igor Stoppa , Dmitry Safonov , Shuah Khan Subject: [PATCH 05/23] selftest: vm: add unlikely() to BUG_ON() Date: Fri, 31 Aug 2018 01:34:11 +0300 Message-Id: <20180830223429.30051-6-igor.stoppa@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180830223429.30051-1-igor.stoppa@huawei.com> References: <20180830223429.30051-1-igor.stoppa@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org BUG_ON() is unlikely() to BUG() Signed-off-by: Igor Stoppa Cc: Dmitry Safonov Cc: Shuah Khan --- tools/testing/selftests/vm/map_populate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/map_populate.c b/tools/testing/selftests/vm/map_populate.c index 6b8aeaa0bf7a..ca3f54765897 100644 --- a/tools/testing/selftests/vm/map_populate.c +++ b/tools/testing/selftests/vm/map_populate.c @@ -23,7 +23,7 @@ #define BUG_ON(condition, description) \ do { \ - if (condition) { \ + if (unlikely(condition)) { \ fprintf(stderr, "[FAIL]\t%s:%d\t%s:%s\n", __func__, \ __LINE__, (description), strerror(errno)); \ exit(1); \ -- 2.17.1