Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4228792imj; Tue, 12 Feb 2019 12:04:17 -0800 (PST) X-Google-Smtp-Source: AHgI3IZrTmLHoi4/VCFWuJlVARJWGQlZgQlkEOyv0cC6ijRUcFyDt3K66zczDZfoY/bMsfykiu55 X-Received: by 2002:a17:902:28e9:: with SMTP id f96mr5695992plb.169.1550001857130; Tue, 12 Feb 2019 12:04:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550001857; cv=none; d=google.com; s=arc-20160816; b=NLYENTCk4s2mPQBwsnAhGA4vKgaeBR1C4pjoikAZLf6pliisLJB/IIJuW/xjpo/iAs D9V7m0KK7Qps3caxAoouajKDgN0o9yz/t0qqN5lB7FpSwzAna0+5ip4n/JhB/UB3fi/T O2Jmo4rKyfUXUkQiviJL8wccLbEPDJod/JuVDriJlwCZjqkhpLpXrjloJohf0AovFkb3 HlDDqsP4ho5UfUYcMr9Alp3b5qzAqo3T2o/V/rWDPdwRKnaEXFB59oqmgtercT7TxGct u83cB1mI0N0L/aGtSWlK1hDm8O5rDxKzz4mj5kZz7OyELX3lrvD5vONSFX4KU0vlCA2G T3Xg== 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=cjCwUU73i8WJg5jTg5VIm8CkVcjSwaZc7tuN1+iFCjk=; b=uppO0WiiR+6c74lVr/vOPMMPaVqmOtpd7ZT1Rr2S3bYuY8nThULGpo9ftBxmDTQ77C 0uyfV2Fxq0HbOEz0XwqU2gC6ydKsU47oWymILVtzqJNPTMoDAhh8Q+3HRqX0Ih5XSv81 n5RWj1l0ypEoQoVR9KUZBzvmNzvueumm/zyqa9KanN7093sBGK4x5rr9zEPkvxeBV9gi GyyktNkyfwXHIb420gh008bFS/nHjTCerk4ZmY+ADx7bS7muq+CDtJMcXzESBrAnv9ig KbveSNB5rcdj1/QLZ/wB9E7JmPHY08D5rfWstieTAHcIpfJrbJMdWKjypiTvrOv4gA57 eYXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WkJ9PYlb; 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 a68si14544010pla.267.2019.02.12.12.04.01; Tue, 12 Feb 2019 12:04:17 -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=WkJ9PYlb; 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 S1731496AbfBLTJb (ORCPT + 99 others); Tue, 12 Feb 2019 14:09:31 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:43259 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfBLTJb (ORCPT ); Tue, 12 Feb 2019 14:09:31 -0500 Received: by mail-qt1-f194.google.com with SMTP id y4so4256210qtc.10 for ; Tue, 12 Feb 2019 11:09:30 -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=cjCwUU73i8WJg5jTg5VIm8CkVcjSwaZc7tuN1+iFCjk=; b=WkJ9PYlbpAxyePQd0RQ4rOOfhTshSxg97nF0BZTXL8H9sztSrTuTNKk1N3V1AcFlZo O8V9Cz+PoAnXA1fL/fltAb0hgpA561HmWxUUR2IDFlG+s6/e7BbCwg0bMXQ302i33Dk1 mzxq3XfWdSN0xO6Li+kykAsv9gvFssnTdR+57u1OkDt9VY3OtUFXO845H1M92HJ8xjC/ /s21aezDABnDA7xTu/z7D9JYdP5ajsJ9GcuX3o5f8RmkjijYVAEwYlxT9bVz5yfpk6da f7qOdojKsWbTMgtHnPqJiZIAeP2aBVYTuqmrJ/x0OVdbZXbIplEnU2coFyIar70P8d93 ViKg== 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=cjCwUU73i8WJg5jTg5VIm8CkVcjSwaZc7tuN1+iFCjk=; b=hTlECjdeSA+Rikh14tOW50X4derNOdzBZGIMs3L3dM32trKlptpbO6jJVTwpwKmLtQ Lb6SKvSFM2uulMAZiAsbHa0FLlSqC1Fn21gr+INp1mIeH1qL/mgJIvhBcIYe1BQlUBOU 0gMfOkkZZgAQMqWsYyJx+0mHk+T2EjnTXel1Qi2iNSMa1l28UIuCehIV7WdxJ0DA9S2t 0IxjdEVCsEoNyWm+Blp7h4MU4TutS3TqhO6HiE8wb7hRnXPRlwGiignKuir3Sr7NgVlj FY2bbVVo/U358Jfc4AV1zQVSr274ejadtgd72lMOkGm4o7/I2r5qzAIzzAiatWcSZPsh waOw== X-Gm-Message-State: AHQUAuaCXUK4IA3hLON0hHbzmQS8ybXvVp9G3xNBMGL0DYBITYKeTV3G U+kVR3p2/vnUt7w+OlZtMMBWznZx/Dv2kd1A5f4= X-Received: by 2002:a0c:9877:: with SMTP id e52mr3805713qvd.151.1549998570218; Tue, 12 Feb 2019 11:09:30 -0800 (PST) MIME-Version: 1.0 References: <1549994809-27479-1-git-send-email-xiaoxiang@xiaomi.com> <20190212183408.GA14892@kroah.com> In-Reply-To: <20190212183408.GA14892@kroah.com> From: xiang xiao Date: Wed, 13 Feb 2019 03:09:19 +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 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. > > thanks, > > greg k-h