Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4229238imj; Tue, 12 Feb 2019 12:04:39 -0800 (PST) X-Google-Smtp-Source: AHgI3IawqDEuPdbYbNNPcxaze8XNfwDKPjjXEL8fhpvLp9coluxQoskZRSqw8uHo1f070Y3RrzXj X-Received: by 2002:a63:5ec6:: with SMTP id s189mr4984983pgb.357.1550001879282; Tue, 12 Feb 2019 12:04:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550001879; cv=none; d=google.com; s=arc-20160816; b=1G9fZDwa9x0KWdosMAIJ4GsFGW2YMxDvH9nrN7NrS8DSiQvyLqNRkbA8XzYyMcNnuP 3aw42XXot6F4yAeamN30Nhjs67cZoVZTrsJndrxr1hYJorBSqWvQHe8pSmcJ23NukIxR pcE1d1RcfN+gZKAjKocze7E9bu+ZLDF1FReoXPcD7blCc28YtBHdcDxJKU/IT1OQaCb6 Kv6mFK8H30xhygr9EHiCJfKhsvskrOe+DwNa4YDY0K+dNqSCkmJWSk8gj1wBE1J629OT Dqwm5py8N5aKMHWRPVSOxFL/JC9Fr8Ohsi3Yoei4HaWVtKg2A050euk3t6P2xSyAEgSr 9FJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=w6NbVwVV0hkwRdFYav8uoF6qnn2Ao3HzyjUBGy8N3DI=; b=clam/bxOdcbkO6S+nxM4Nh/dTZGiYJDYW/vT1WGjNE7FEi6Y1NVTMvblT4e7vF8/ys O5yUtPSJTY8nq5RR8pkejqch8DDwILMk1oxWFSkFJJ6VUQzHTze9KtndPsfaF93TGmV1 c8hx2YpcZO1nis0bng1Wkqi5g5TZq/3PGFGUwmXNmhu9+p192TwafpcXx63x6mY28QDv lHHN0gq8CIjcJKmiA45h4OP1Xj7oFx+eTCJptErHy+Uc9vA6H5xPjuuJMuXyAh05hapR PSkdcXcbQ/BA6ZkpTIiaPlb7Trmo/0KjK3Lcmx6TNrgIVRCqtApu1Hr+nN4MCvezzwAf tw2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gydpjnZI; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b36si190696pla.354.2019.02.12.12.04.23; Tue, 12 Feb 2019 12:04:39 -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=@gmail.com header.s=20161025 header.b=gydpjnZI; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732298AbfBLTWn (ORCPT + 99 others); Tue, 12 Feb 2019 14:22:43 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:42544 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729466AbfBLTWn (ORCPT ); Tue, 12 Feb 2019 14:22:43 -0500 Received: by mail-qk1-f194.google.com with SMTP id y140so9411360qkb.9 for ; Tue, 12 Feb 2019 11:22:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w6NbVwVV0hkwRdFYav8uoF6qnn2Ao3HzyjUBGy8N3DI=; b=gydpjnZI5XJ2eZxLejlvYNHnLrZ3ztVp13CdRmWC/TQtEOTVi5kHRc+7LZ3qTmCarL WwglT9FJr0LsHW7z3kWfvc+e/6wKkcoytuBZhB5k4jBvt7aOw8y1H9aFDPHnA+G1w9KT R6dFboVg3EF60aROtZ/tkw9HwKe9P5vimusoJZyVvIMwk+28W7x9/phH+nSnF2IubOfB /txkfRYoHvvDxXsFIoto48//XmNFSR0deoxGYjt9LQiGQ0IeixBSrCRcVFPk33mPLsHv aKyWsCvJaVnsQ3pUMNuSY9+LDYIUvKBWgjS07T8bENY/VW7OQQ7XyNuc2rWZk0rrSKFi mMRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w6NbVwVV0hkwRdFYav8uoF6qnn2Ao3HzyjUBGy8N3DI=; b=MeyO/RamQ2Mo3HFoMujgCovqVJddjyc2nhOhItJ3LHPqCG9h4kNXlqd1/OZX1UOW0x 5x4CvXMm2mdSez6UNsTB++38dSs9+XUtiEPoCseIpNi7SM2WMKD79wciAO55zrgHePsI PydjlD3j7dGB5To/YWMT5PBtIT1T/ohQ021pF0HWKOpmuvU7GT9a8jY4Co4fin7RPdIr A9Uc9W9BcnGJmbnew3muuzpGuO0PQzrSOX+mhDQ1OW0E8XRu4Jwwz8VuOQ8gnaT2dw7B Kr268nm7iFTiufAQPjItlAj1tfa4m5MJBJvluCnXipYRbQQHfCnPQC9ZhJzYTBcQpoN4 RMqw== X-Gm-Message-State: AHQUAuYUXjtTCnk5iNDEshR0NvZXey8S14odq0ykc0Q4XkXdLdqn0wjx uJwChH6nCWk4J3gNFd4/jovWNQ7iTavq5+z0r1y5+RolvAg= X-Received: by 2002:ae9:c106:: with SMTP id z6mr3808367qki.197.1549999361819; Tue, 12 Feb 2019 11:22:41 -0800 (PST) MIME-Version: 1.0 References: <1549994809-27479-1-git-send-email-xiaoxiang@xiaomi.com> <20190212183408.GA14892@kroah.com> <20190212191535.GA22741@kroah.com> In-Reply-To: <20190212191535.GA22741@kroah.com> From: xiang xiao Date: Wed, 13 Feb 2019 03:22:30 +0800 Message-ID: Subject: Re: [PATCH] lib/string: add memrchr function To: Greg KH Cc: alexander.shishkin@linux.intel.com, andriy.shevchenko@linux.intel.com, linux-kernel@vger.kernel.org, Xiang Xiao Content-Type: text/plain; charset="UTF-8" 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 3:15 AM Greg KH wrote: > > 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. > Ok, I will merge the depend patch into one series. > thanks, > > greg k-h