Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5212509ybi; Tue, 11 Jun 2019 21:54:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxh2HlR1VWujfcY5NSWUe+5J6bTM5/6vI7agO/rRKkJc8GlgYjILxFkn/l+S6LmKbo6Ldsq X-Received: by 2002:a17:90a:fa07:: with SMTP id cm7mr9743362pjb.138.1560315254335; Tue, 11 Jun 2019 21:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560315254; cv=none; d=google.com; s=arc-20160816; b=d+CBp/wpFE/fidbS+NxK/p7t5v3qdL/Vp5nOThrwqcli74SXeJrurxljBZOvXw88uD wa+gsrDHenyN1IoHYzR6g0QvlViUMK5ABZGChcdjfC+ifcOowM8EoWtFUK4p2XHJleLo IoF2aEjePVE3Dh5y3M5Z+4K7KePAu46t9HfvnZbT+hxz1AUtj49vPHdRncnyGJa9LjGl WKkD4fwT9sCHBedNCeMZ7KZQEzrwsX/SsyjL7DTzqPQX6f6xyK6EdrKWwcTTTW7IEHx6 G7vziQnior1TL/dZ0WxOorUhct510Ld9R0h0oIx28+rWzRUWiFD3yrd2TNNluIEC2JuE hhqw== 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=wq0NZabtMm3iDjYk2rJc3a1jmD4AGnoFyenKLlBf1oHjU8jl23RWPlRWeS9OHo5R6V /HPC1ZHQGQAIEqvggRU5aYeK6VwF9UnHr493PPrzE/+6+5tE4IffGUk6X9KHsoXSqxAA 8/Vikgz38da7M89hm8HL5Fs8gLJBo3GoRd4nfkLd7OZ7J7AXYeDY0axbYKb01MHX066w f5/ylhUaOKu5xUdWzNp9ww15BMQDlRPNuLGeLGy9q0uY65qqEEbT8AQRBxR2Tws8oeG0 8dV3HO5XttNQTzxsK5TUNOHld9paI3ybVO3jEEohsqQkyV8YDPSfeWhYYYHuFb5yETe0 yQGw== 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 c12si5585222pll.138.2019.06.11.21.53.59; Tue, 11 Jun 2019 21:54:14 -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 S2436805AbfFKWWO (ORCPT + 99 others); Tue, 11 Jun 2019 18:22:14 -0400 Received: from ex13-edg-ou-001.vmware.com ([208.91.0.189]:3281 "EHLO EX13-EDG-OU-001.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436796AbfFKWWN (ORCPT ); Tue, 11 Jun 2019 18:22:13 -0400 Received: from sc9-mailhost3.vmware.com (10.113.161.73) by EX13-EDG-OU-001.vmware.com (10.113.208.155) with Microsoft SMTP Server id 15.0.1156.6; Tue, 11 Jun 2019 15:22:05 -0700 Received: from rlwimi.localdomain (unknown [10.129.220.121]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 1751141BAC; Tue, 11 Jun 2019 15:22:12 -0700 (PDT) From: Matt Helsley To: LKML CC: Ingo Molnar , Josh Poimboeuf , Peter Zijlstra , Steven Rostedt , Matt Helsley Subject: [PATCH v2 01/13] recordmcount: Remove redundant strcmp Date: Tue, 11 Jun 2019 15:21:43 -0700 Message-ID: <79ccf2fec939ca66446857d9203a893c96c2f5f8.1560285597.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 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