Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10011880ybi; Wed, 24 Jul 2019 14:08:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqx52NIRYJchKRptlf5GrYdUzGpCJwtXsmXB6A1AJMO+QDgf/9plKDEz7m6Kp2pf82avxDgs X-Received: by 2002:a65:514c:: with SMTP id g12mr83356517pgq.76.1564002532874; Wed, 24 Jul 2019 14:08:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564002532; cv=none; d=google.com; s=arc-20160816; b=kkJ9xqiNDOrtziFsLoiGzXL2obYCa20oKaRTaaIq9fi2Jf7JDnN4+WagPwTnJfE1c5 hd1nTBlNEhXBWFYSi6nyxrIuSNlFSlMDLFY0j3eVeVtIbJHarCpDcUiSM71oDEEfCDEC D5ktEfhpg08cxQ8uHLdXgbhFMy84Zbwd6p6OMQ9kKESnrs3MbdxOCxYjVuv4rT7BPuMT x3XbkQVwSgGfBcdTEh74G+eCRCPKgIDZWbYoFnQcEWIZq5ysTPy3IVDoQmDzICvV8SjE TipqUZ0E5Y2ZdRnzx3UyPhRcQGvdhd8J1pbyHzxfHHr9Jyr79oocQpMrTE+LrPW8I8SU ZphA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=84aHuIfZmECrMvkqonVUqszKUtzo90v3xEDbe3Pz2ZY=; b=jcJoCfojKFEXqr/LHPmrTXabV2/kwD4Fv0ulVVD/iKIOh8feTPdenPnjqs62cmzaAQ QHGeme9+nXL4L214gVdGN3Kerq8yr5xDwPJNQl5EaoGloMvd4R/5dASNo9k26+kJApYl jQAp+hR48cXyqalfIttTqYu1fA/un9rs35NwPqeRgaEWiwbL93I8aocRzkkihRgNMxW7 AcGIKYOMhYH++fQ9jfMxOmqbs1Kjcsw/QPlPz4wrVzXNgNjFL3xAxSiYP9b6C+0RF2MX 4VU7EXxm2Vn58LrF4Ks1Zfcg7qDHwJ2euXKKbXR+xiH8n3p7hp1SoZSC6IDgkMG0uVYY fncw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 188si16726756pgd.404.2019.07.24.14.08.38; Wed, 24 Jul 2019 14:08:52 -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; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387946AbfGXVF0 (ORCPT + 99 others); Wed, 24 Jul 2019 17:05:26 -0400 Received: from ex13-edg-ou-002.vmware.com ([208.91.0.190]:26263 "EHLO EX13-EDG-OU-002.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727000AbfGXVFZ (ORCPT ); Wed, 24 Jul 2019 17:05:25 -0400 Received: from sc9-mailhost3.vmware.com (10.113.161.73) by EX13-EDG-OU-002.vmware.com (10.113.208.156) with Microsoft SMTP Server id 15.0.1156.6; Wed, 24 Jul 2019 14:05:09 -0700 Received: from rlwimi.localdomain (unknown [10.166.65.164]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id E6CA940708; Wed, 24 Jul 2019 14:05:23 -0700 (PDT) From: Matt Helsley To: LKML CC: Ingo Molnar , Josh Poimboeuf , Peter Zijlstra , Steven Rostedt , Matt Helsley Subject: [PATCH v3 01/13] recordmcount: Remove redundant strcmp Date: Wed, 24 Jul 2019 14:04:55 -0700 Message-ID: <358e590b49adbe4185e161a8b364e323f3d52857.1563992889.git.mhelsley@vmware.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII Received-SPF: None (EX13-EDG-OU-002.vmware.com: mhelsley@vmware.com does not designate permitted sender hosts) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The strcmp is unnecessary since .text is already accepted as a prefix in the strncmp(). Signed-off-by: Matt Helsley --- scripts/recordmcount.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c index 8387a9bc064a..ebe98c39f3cd 100644 --- a/scripts/recordmcount.c +++ b/scripts/recordmcount.c @@ -405,8 +405,7 @@ is_mcounted_section_name(char const *const txtname) strcmp(".irqentry.text", txtname) == 0 || strcmp(".softirqentry.text", txtname) == 0 || strcmp(".kprobes.text", txtname) == 0 || - strcmp(".cpuidle.text", txtname) == 0 || - strcmp(".text.unlikely", txtname) == 0; + strcmp(".cpuidle.text", txtname) == 0; } /* 32 bit and 64 bit are very similar */ -- 2.20.1