Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4228371imj; Tue, 12 Feb 2019 12:03:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IaicEZiZJyU46MSXivACQfUke5nuok5MpivaH5Njy5Oaas596KMZ8G/ojCmNk1+njVS5jQX X-Received: by 2002:a63:e553:: with SMTP id z19mr5126067pgj.331.1550001833732; Tue, 12 Feb 2019 12:03:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550001833; cv=none; d=google.com; s=arc-20160816; b=uBbnh+WQOIkQQG1akif16OCNvKUPL0JRItKqk8QuPKuAEXQndeI5zhEwr0s1paMmG5 tij0PJKqCUaro3pU/aRZgQQCPhBQP/XY25cSI95xF6u30wnn7sf5sHuGrUTcxVv+eqpu N9E352B4C5Mp7nvAZgBuOYMC2q6tWv3jY+uaw+/70iBYmkJdg6LAr0/7QSWhPfdeK0OJ OswqgFW1T1GtJNMcVPFVvyDxt2UWiYiLg0PzlncYmPtk+h+yGYoeqFrMQftHwWb3sBSt 0Z6egL3wug++TolpevGZw++M/wkzESFdaguQySpZ8SFKqdQe8zgs6oN03qGLYz/TPOXH Mxrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IWY4LV26MHAewa7MccRyWG7PDqoB06aDd7/JicporX4=; b=A+bZzcDCuEShVGsVJNTyT5/5zTSKA4VUVgwZrzWsawbg6swgOZ155ATDJnEeQhWemW wlqnqaVCjcEsoK3cjl5VaA9hmaQjhVjmEOFCqPxki8JObNkMIOehXWhAxSoglvAz/v1Q edpXLf7tkzbLOByARyXImmxDO0/FmnoAW/49XfKZRbJWTvFnDbcVderlT1SwzTVPZkfn p1+ngQcBxnEAKwSgKYJTjeSEVm5lp2ezovEd8RyBswJazHKFjjEuhfwesxfrgEVgB+Hd Ww55zauIG2XJ82DOA+W2Bl1JNBIX1rCQCD/qqzQndE/LCzSAtxwoFUbwPVm0DqVcW1yE +fyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WUidc779; 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 z7si12910476pgv.205.2019.02.12.12.03.37; Tue, 12 Feb 2019 12:03:53 -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; dkim=pass header.i=@kernel.org header.s=default header.b=WUidc779; 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 S1731030AbfBLTPj (ORCPT + 99 others); Tue, 12 Feb 2019 14:15:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:58346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfBLTPj (ORCPT ); Tue, 12 Feb 2019 14:15:39 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 B774521905; Tue, 12 Feb 2019 19:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549998938; bh=+T6iMZR98yStttVuBCMQSJVXWob/p7EZfFCQLAMFzOU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WUidc779KOV+niIQmVn8vTqFPm8uc4qDwDEV5Psae4hKZgOl436U4eflGX1mW0731 u3d/6PDVV9x7Vv31VhSpvEK4GCSI9VbmBOBOCbAjIftKWmDmYPliBOaF51v6WtMQ/c wRLn23/lP7nOvkR7q0qe5ayF8Ap137Ch9zbbJypY= Date: Tue, 12 Feb 2019 20:15:35 +0100 From: Greg KH To: xiang xiao Cc: alexander.shishkin@linux.intel.com, andriy.shevchenko@linux.intel.com, linux-kernel@vger.kernel.org, Xiang Xiao Subject: Re: [PATCH] lib/string: add memrchr function Message-ID: <20190212191535.GA22741@kroah.com> References: <1549994809-27479-1-git-send-email-xiaoxiang@xiaomi.com> <20190212183408.GA14892@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 03:09:19AM +0800, xiang xiao wrote: > On Wed, Feb 13, 2019 at 2:34 AM Greg KH wrote: > > > > On Wed, Feb 13, 2019 at 02:06:49AM +0800, Xiang Xiao wrote: > > > Here is the detailed description for memrchr: > > > https://linux.die.net/man/3/memrchr > > > > Please put it in the changelog, as web pages move and go away :( > > Sure. > > > > > > > > > Signed-off-by: Xiang Xiao > > > --- > > > include/linux/string.h | 1 + > > > lib/string.c | 21 +++++++++++++++++++++ > > > 2 files changed, 22 insertions(+) > > > > > > diff --git a/include/linux/string.h b/include/linux/string.h > > > index 7927b87..f380f4b 100644 > > > --- a/include/linux/string.h > > > +++ b/include/linux/string.h > > > @@ -167,6 +167,7 @@ static inline void memcpy_flushcache(void *dst, const void *src, size_t cnt) > > > memcpy(dst, src, cnt); > > > } > > > #endif > > > +void *memrchr(const void *s, int c, size_t n); > > > > Who is going to use this? > > This patch will use memrchr: > https://github.com/thesofproject/linux/pull/177/commits/a0b7009fede5552dc98733f2996a8140bff62455 > I am preparing to upstream it. Great, make it part of the patch series for your driver, no need to submit it separately. thanks, greg k-h