Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2526331imu; Sun, 23 Dec 2018 01:38:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN7WSZWa1NU+lwMvEupoHFe7MTEHoS1jwxVUPUOb3M/F7VOVj8aX2i+a2seY3mP6EhVuM015 X-Received: by 2002:a63:334a:: with SMTP id z71mr8724872pgz.400.1545557892021; Sun, 23 Dec 2018 01:38:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545557891; cv=none; d=google.com; s=arc-20160816; b=Kaf2ue5PFwk/Ip49iFtDHGBIFPMi25M3ZCP3faFRZbHy7KlnG2eHOaa6zyvl/ui0N6 LjB5LkdAqiS9Wab667jSOLh5ZTRhNJ7Jdi5ul+cGVvtVHiOKM+5VI9ao5y+cL6SF5CM1 unWLx1V8at2AuXnQfDNVmvGIog8PlGO8xam5iEgjEWQzNXiA0UeVAy29weQb0nWhuiOq Bb+ROEcxx0PR6Urn3pp2obFTbBqRSNr8kpnSkA3yHWYNJft3HIu30MzhNN8Nzccoc3B3 97Qom7mB1zVQzucuqbXGC99xrUIOA3qn7n2PzQYBXyypRXwtLU1m/p1S9OBNbwcaKXq2 bUWw== 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:subject:cc:to:from:date; bh=udSYi9BQM3+XtkV9Yc6aY0UVYqKLwK2qoaIhA+9XMHA=; b=huNEYGzygL1Ks0hozgFZqBDjdYIcJgFVVNN0CvsxgFlm1h+l4HzRhzxpBRITJAVN1N dSAY1Jfo4lb0bQiziViNCz0Q4qXcovbmyh0kcZvdolIIrZSdu3f4ThbA+Nkyz0cEdV4z gn09+dMQ4s3s7931srTFuE5oXpQPCG7ogxiXydnlQ17i4q2T8x83Vs+pHBA/Z8GnjSwF lw9lsBCHVvwyvu4YH4H0eUubY0lBriv8ydfkh0NbjenTa/jmXR/+20Y7oHTpPYxuh6Ls ldPg30C7tIm/mb/SVdQZU8U5ffogS6crH62ZHk5tHsq1vmcQWBIc5a3Lcg+7zG+8GuEG fM7Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a34si5468244pgm.427.2018.12.23.01.37.56; Sun, 23 Dec 2018 01:38:11 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403837AbeLUW6R (ORCPT + 99 others); Fri, 21 Dec 2018 17:58:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:49266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390880AbeLUW6Q (ORCPT ); Fri, 21 Dec 2018 17:58:16 -0500 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7769021920; Fri, 21 Dec 2018 22:58:15 +0000 (UTC) Date: Fri, 21 Dec 2018 17:58:13 -0500 From: Steven Rostedt To: Linus Torvalds Cc: Joe Perches , Andreas Schwab , Linux List Kernel Mailing , Ingo Molnar , Andrew Morton , Namhyung Kim , Masami Hiramatsu , Tom Zanussi , Greg Kroah-Hartman Subject: Re: [for-next][PATCH 23/24] string.h: Add strncmp_prefix() helper macro Message-ID: <20181221175813.0e98743f@gandalf.local.home> In-Reply-To: References: <20181221175618.968519903@goodmis.org> <20181221175659.208858193@goodmis.org> <20181221144054.20bdeb33@gandalf.local.home> <20181221153526.5e6055ca@gandalf.local.home> <077eeb8b09baebe78822819b5f15d671b738a2b2.camel@perches.com> <20181221155435.38a9a221@gandalf.local.home> <871s6ad2br.fsf@igel.home> <20181221160826.34c544e6@gandalf.local.home> <84199633fd49db573c9ba71f1992936422e907d4.camel@perches.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Dec 2018 14:29:30 -0800 Linus Torvalds wrote: > On Fri, Dec 21, 2018 at 2:20 PM Joe Perches wrote: > > > > Using > > > > static inline bool str_has_prefix(const char *str, const char prefix[]) > > { > > return !strncmp(str, prefix, strlen(prefix)); > > } > > > > eliminates the strlen with gcc 4.8 (oldest I still have) > > Ok, that looks like the right thing to do. > Agreed, and I posted a new version. I can start running it through my test suit (I'll update all the instances in the tracing directory to use it), and then it will be ready for a pull request by next week. I'll revert the top two patches from my for-next tree now. -- Steve