Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2128510imm; Fri, 7 Sep 2018 11:12:32 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda9f70HD3sIj2CPcZ0AeE/Xsg1BEB3Vko7rN4ZMxfjF3/aOqh8mlWOViOgr896zj7RZ+rl4 X-Received: by 2002:a17:902:6115:: with SMTP id t21-v6mr9345150plj.92.1536343952915; Fri, 07 Sep 2018 11:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536343952; cv=none; d=google.com; s=arc-20160816; b=KbvHITJLyqjXrdZnYzaf6BlTonKMCXLhPmcc+3BZREuYJXQrli8vdKLMYXl9qE6gEP mHq7lc2hHO5foj+0FECQRHjrRicLH7GOWLHKpi2tCmtVKduYtlLROrIQAccpZp0FA1Hx BicZ9g6ICoLFusbUv88apD/30Q4bsuFWXOUSmfMFXWc3vwQbXcO8PBFeD1H3ylnH1iS8 2mtfGxO+V5WZ9LpcV2H5Wh2QgWYKUpg4+BFQ9Pr+oI3hrtT+y9Qbt+zk/UFBe07F6ndR TFVfsDuWSbf2IrRcWXARow39/6wOEUFt+1sybb8tyjR8Tk3QgzEtynhNEB48RDGmgDQY 2cwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=F9DaonvEapl6YnvqzHacv5ImpGQxDeye4uIerD81AMI=; b=TqW7sesLXnzHBcu31Rhrvj7zUZ6sNTDu9d7t9JgPM/2eHXZQVVP4tf6iccKs4tEwr3 5y0uZI/tZ2EBfmlh2Zuj90qcbBWnqsdjI516+DMcEDQ+xwPl++DINbLIEGpeqExL+VlL 7Be29K2Qkcp7t+EPp72HUIFFO+rp1+EIEA+xfokBcXAT5P+u4IRfDna2V56Qj4FYAlRE 4hEFCJ3/vTQGfKZ3CcIwPreK7Vz+o5f2BkP8D46FpaHslxQ+HlLua7d0++G2Jie/u+IH bQUdfFDPhmDlWWnAh7pZeZICu374tryyYef/WlRQB0Mv5+0vUACRahL15nJj3O34RhXr H/aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Fi+D+/qf"; 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 h9-v6si9732049pgr.260.2018.09.07.11.12.16; Fri, 07 Sep 2018 11:12:32 -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="Fi+D+/qf"; 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 S1727640AbeIGWwy (ORCPT + 99 others); Fri, 7 Sep 2018 18:52:54 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37656 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbeIGWwy (ORCPT ); Fri, 7 Sep 2018 18:52:54 -0400 Received: by mail-lj1-f196.google.com with SMTP id v9-v6so12996864ljk.4 for ; Fri, 07 Sep 2018 11:10:47 -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; bh=F9DaonvEapl6YnvqzHacv5ImpGQxDeye4uIerD81AMI=; b=Fi+D+/qfmMWDcgBzAYimV5Y29P0squZ3TNNPZy2QsMLNci/FRfYrCDhS25iD1rYOLa bViX/JnfA1NCa2zKOtmpsDAdRO9veEqjrygac1JVQ6ByDl4ichAIwYvG+fRY3wyx39pG 595nppdmZtLvAGI+NPefoXO6B7vwkhmzKtQ3Y+E+1IulPFa+c8yO7KX+2VAqjL94vGU3 WW9EUiNCMSnQg20ellMt5ALTtDEx2sHEKC7FX4H1vyoFrZDMlLegAW9c5rnaFAF4kCre GOi5+cs8+6d5HybPTTnrXy8aQ4IpwotVzigancqCnUQ44Ccpa/t7ULmwx8O9sFqL8q90 f/ow== 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; bh=F9DaonvEapl6YnvqzHacv5ImpGQxDeye4uIerD81AMI=; b=hjk2Mnc5nql4sLsI3HG6yGSxLeRKOBNZNP4Ai4TFs6IqlR/P8Pw5myRYfqWdDk1pYK gT98fGs/6PV1IHuK/d7YFxZ8BTavBFH1O5UFEyaeNsuk7imduWdGcZ8jY4bOgAPeAfrE qKdgzneLJVYTAPnz9qEsmwq7dqmVPTyXgYbl1vqnloHsbn2lWfCfeGgtWKVkL0VPcvDa igrRJSxWD11XSOhKlmUCkFph7gMWs+AyB4bMHVRWHNXKbip7mXb4PJBzHnOYPBjZOjUZ A1cwb3ZnDedNDcuPmDHAeXubvSh7EOhcFZ/maGrU9jvMHiTnt0ykhC0rW0atPN8Nx+g6 BEvw== X-Gm-Message-State: APzg51BeF3fHLmg1Un2yT+/WB0l/psXvcXwbqidE/SpEw7R6MAp/ilCN h/6C8bjNRn0+5bDQr98u3MLGlsf732o= X-Received: by 2002:a2e:5719:: with SMTP id l25-v6mr5551804ljb.125.1536343846335; Fri, 07 Sep 2018 11:10:46 -0700 (PDT) Received: from Mort.jumbo.freeair (91-156-179-220.elisa-laajakaista.fi. [91.156.179.220]) by smtp.gmail.com with ESMTPSA id f74-v6sm1396307lfg.61.2018.09.07.11.10.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Sep 2018 11:10:45 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: Tejun Heo , Christoph Lameter , Dennis Zhou Cc: igor.stoppa@gmail.com, Igor Stoppa , zijun_hu , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] mm: percpu: remove unnecessary unlikely() Date: Fri, 7 Sep 2018 21:10:35 +0300 Message-Id: <20180907181035.1662-1-igor.stoppa@huawei.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Acked-by: Dennis Zhou Cc: Tejun Heo Cc: zijun_hu Cc: Christoph Lameter Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/percpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/percpu.c b/mm/percpu.c index a749d4d96e3e..f5c2796fe63e 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -2588,7 +2588,7 @@ int __init pcpu_page_first_chunk(size_t reserved_size, BUG_ON(ai->nr_groups != 1); upa = ai->alloc_size/ai->unit_size; nr_g0_units = roundup(num_possible_cpus(), upa); - if (unlikely(WARN_ON(ai->groups[0].nr_units != nr_g0_units))) { + if (WARN_ON(ai->groups[0].nr_units != nr_g0_units)) { pcpu_free_alloc_info(ai); return -EINVAL; } -- 2.17.1