Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1078768ybm; Wed, 22 May 2019 17:05:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgBhp+519E5bTAQpJjQRU6cRZjun1XE4uJcvJ1f6BxmidgvUqsBoeyMDOTQz6DTVqBtIA4 X-Received: by 2002:a62:2e47:: with SMTP id u68mr11295375pfu.24.1558569920664; Wed, 22 May 2019 17:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558569920; cv=none; d=google.com; s=arc-20160816; b=KFoCvkw9xp+gmA9NiQG5ToWEZuZsExLgCTIQ8qn3LV2CmGsEEeLxGP9f+1SGhRsZ8P bCDWMzjoxk3uYldr0ZVtuSVniRClpO2B9iUqaJvGgoygwHQUNADaNPuGkIdMsMsE97xi pn13xqpcnO2bRBdKmQNPkLaXE9mdmCZgCZljCIK6zmWBm9fpszxD3sJDqBs2psiz/VOX wT+x6IGeAiGqKXWJMa/cswWzvdBpadWn9ZHUrGEhJbJQ7bg6nMxSfOj8Wp28iZLQa3Ah cY0HPeoc/MjaLjcf4kgju3tYTgbIPrSCUTv2Wtd23XqTeYpuAgAjPnuVUpLGqv00Yozg Q+kg== 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=pRzRaK+5f/aINIb3gaf0RN3Y6aa/KA9BuGB0o19zM3s=; b=RBRxCt4RS8w3/+Sovgf0UjuWmz7vMnGhitXTOrZQqYLIvFLazUPvd/SrhAZE60fM3O aUoVxjheIlvI/nnBRN62a5zyoGOA0MciStMCeIu29jRae9SktaOYdJCIJymT8ncUQUcc Nc12Z2CVhOsWhZPelGuTTjwpStG5hfVlcMUk4Muy78SAK31DiOd5GFGu6jUc7+rhkxjT 8C7FZRdOfLuqHObRj4FAzP6EQcBwLRiLKxd1jcyVHuQPYne67xojlI27bTTPnQ3Kx5lX RCbc0Lf/BRKdV99dhEXeLQW4uxZ1VS3egIWb8lw24aBBrHJtzBxqTl+m3HM/IKeCl9qS sRnQ== 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 d2si27379455pgi.579.2019.05.22.17.05.04; Wed, 22 May 2019 17:05:20 -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 S1729433AbfEWADz (ORCPT + 99 others); Wed, 22 May 2019 20:03:55 -0400 Received: from ex13-edg-ou-001.vmware.com ([208.91.0.189]:13601 "EHLO EX13-EDG-OU-001.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727305AbfEWADy (ORCPT ); Wed, 22 May 2019 20:03:54 -0400 Received: from sc9-mailhost2.vmware.com (10.113.161.72) by EX13-EDG-OU-001.vmware.com (10.113.208.155) with Microsoft SMTP Server id 15.0.1156.6; Wed, 22 May 2019 17:03:38 -0700 Received: from rlwimi.localdomain (unknown [10.129.221.32]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 8D499B2044; Wed, 22 May 2019 20:03:52 -0400 (EDT) From: Matt Helsley To: LKML CC: Ingo Molnar , Josh Poimboeuf , Peter Zijlstra , Steven Rostedt , Matt Helsley Subject: [RFC][PATCH 01/13] recordmcount: Remove redundant strcmp Date: Wed, 22 May 2019 17:03:24 -0700 Message-ID: <49f7751adb19155661f81780f39d7150f35806b4.1558569448.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-001.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 a50a2aa963ad..7f835059e7c2 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