Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3711521yba; Mon, 29 Apr 2019 07:19:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUx1S2VvVdQJkJO7SNcEayu+2UAZix9/kKwYcbrW8dd2mubZ7zv7yedX+O+xW7YQndl4vS X-Received: by 2002:a62:2f82:: with SMTP id v124mr12757522pfv.233.1556547564580; Mon, 29 Apr 2019 07:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556547564; cv=none; d=google.com; s=arc-20160816; b=ZW4GNrlJQS1dcThx214DdyOMZoIfzMCtOCB5DQqDPmZjtH+TRP7U21+GzLqwmEPuxZ 3ma5chK1ojHTnMuHtTpRWcJo0rJ2MbVszhZhBI41EbdgMBGK8ngp+zFzADxRiGloNqgW 1/cthCwUjLN7Jo2xGRk0GwkLWFOgbmVkoVgNch6/qeS3l2916eZ7Idb7m2sOLNz2qd08 HmWSYQUQwjsrKcG1p1o+uWlDTAd6XQCmfOhCa428dRlw4J6BGdXRJYBz7BVYZkQa5NPP QPgSpOv1VGHu3XUTQ1YJtwRmp3nuTLr4naBcS6o6RayuY4gTMiyRuq2Afl5BP4nGP39E Ow8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=0Ui+o1kSVZ4jE9Css0P+yjJEJFZjFSDhDGouXzoUYAc=; b=ese9jvPNJpiem5hTNyLPrrjJxL4DPN4I6W4FR0mCnqvoKoagR3+KBvqawDo/I0dEQa 8TdTSiQRPJDXvHVzXzlunn+sv8rF8qTuq2CwgEUQO36YWba5qjrXpdstKJLSmJzHwwH0 +G+D00MkNy2yfuIu2hqVA/e9K9Z3yCj1QVRl8ZTHVpZxX+XnvVhILvF6CIKeVNYcf+pk NJaob4WZVgj94U3GJRv37Z7OgT6Jl96NaXy1SWuy4bf8E8UZXlYMpuVBAcnRf5Lv/WoB emUSEnaTFODokgbkx8jtMhrqIbhFHT0Iv+XFQ1GTkP1miQ+NbT/5gy3h9kZ5Ph0qFhoJ IBRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019041745 header.b=sSlMatAt; 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=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a36si31944630pgb.165.2019.04.29.07.19.08; Mon, 29 Apr 2019 07:19:24 -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=@zytor.com header.s=2019041745 header.b=sSlMatAt; 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=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728376AbfD2OQd (ORCPT + 99 others); Mon, 29 Apr 2019 10:16:33 -0400 Received: from terminus.zytor.com ([198.137.202.136]:57989 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbfD2OQd (ORCPT ); Mon, 29 Apr 2019 10:16:33 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x3TEG23J941667 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 29 Apr 2019 07:16:03 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x3TEG23J941667 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019041745; t=1556547363; bh=0Ui+o1kSVZ4jE9Css0P+yjJEJFZjFSDhDGouXzoUYAc=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=sSlMatAt06ixwRkpmS9e//TKvLfsHcJwGungkA/Z+Tf12PCuCVbDHc04LtSCr1YuG zHWLXuLD00FmOtkVMZeZ5R/A3ZPHNkNMMte9O1/bcAik//7skbJa99VVilQy9JeIas oCy/5tzUHUfhA21O8NkbgHgkbUJ9JoDLUyI3iuHDoE3bftAvLU1WFjWcWAwkadAI/G k9ZWr+Nz/viaN3p15E0F/X8JY+CsxtwtC7YJ0hZrkr9qzwM7CofWrbNSFtOk0lzf0q ipcujtEDFDQCV7ynrnq6So0/xuaSIx3cPpE2ObU2JDVVoN1nyDXj2vne6UFBg7k6y9 lL0G9KsSE1qlg== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x3TEG2Io941664; Mon, 29 Apr 2019 07:16:02 -0700 Date: Mon, 29 Apr 2019 07:16:02 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for zhengbin Message-ID: Cc: peterz@infradead.org, torvalds@linux-foundation.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, paulmck@linux.vnet.ibm.com, akpm@linux-foundation.org, mingo@kernel.org, will.deacon@arm.com, hpa@zytor.com, zhengbin13@huawei.com Reply-To: akpm@linux-foundation.org, paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, peterz@infradead.org, torvalds@linux-foundation.org, zhengbin13@huawei.com, hpa@zytor.com, will.deacon@arm.com, mingo@kernel.org In-Reply-To: <1556540791-23110-1-git-send-email-zhengbin13@huawei.com> References: <1556540791-23110-1-git-send-email-zhengbin13@huawei.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/lockdep: Remove unnecessary unlikely() Git-Commit-ID: d671002be6bdd7f77a771e23bf3e95d1f16775e6 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d671002be6bdd7f77a771e23bf3e95d1f16775e6 Gitweb: https://git.kernel.org/tip/d671002be6bdd7f77a771e23bf3e95d1f16775e6 Author: zhengbin AuthorDate: Mon, 29 Apr 2019 20:26:31 +0800 Committer: Ingo Molnar CommitDate: Mon, 29 Apr 2019 16:11:01 +0200 locking/lockdep: Remove unnecessary unlikely() DEBUG_LOCKS_WARN_ON() already contains an unlikely(), there is no need for another one. Signed-off-by: zhengbin Cc: Andrew Morton Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Cc: houtao1@huawei.com Link: http://lkml.kernel.org/r/1556540791-23110-1-git-send-email-zhengbin13@huawei.com Signed-off-by: Ingo Molnar --- kernel/locking/lockdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 25ecc6d3058b..6426d071a324 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -3256,7 +3256,7 @@ void lockdep_hardirqs_on(unsigned long ip) /* * See the fine text that goes along with this variable definition. */ - if (DEBUG_LOCKS_WARN_ON(unlikely(early_boot_irqs_disabled))) + if (DEBUG_LOCKS_WARN_ON(early_boot_irqs_disabled)) return; /*