From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 842A0155C82 for ; Wed, 22 Apr 2026 16:51:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776876707; cv=none; b=lfvXQFMJ9Niq6IgCgy7baZdO8Fix3J8tbWpJh+4W0fgcp9lhNtyyd/EiZhVWEZfjPF+BArkwuqVTXHuaLBS2hh1d1l8bLa01lzwjz9+elaigY5zgEHxvjHFGF4bFPfdXcH7G9rRFRQ3uBUK0K4DCt/rQ9dL7zIzYnGjm9f6RcTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776876707; c=relaxed/simple; bh=wUuLkjnffA3H3WFcnrOOwdi+HZeowPhwPaSyxvZV/HI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BXwVwJTG3jimH3UlEMPUftsmSsR7R6iydJY4rvGQ9x4RBSxDAvAk1V+7F8S1gOWb+JHlQkVgOuOf7ssJGBWMqN8EdKu+Oqiy7n4LrksslcAveaDCV6br0dFIcm0X9g2GfcFOczLj4vpFFA4TX0xekCpOpA05gd2kUN0fumIMx/I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=J684IAtu; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="J684IAtu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1776876706; x=1808412706; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=wUuLkjnffA3H3WFcnrOOwdi+HZeowPhwPaSyxvZV/HI=; b=J684IAtuHqZswrytEy3LcndN6jKtKMSCL3L5YPMkcghSRdAwBZzpEe4E Co5lpqjFQ82WT76PY9XqCg7PY1wRQjhP7RXQR5kxNN4BcMapAI4FJO1Sp Tuu8uLmwxO0GMsBt29LIcJqVLlBIbivKpF8ahuJ82L+PdV50SJ+q0yjVD KZR+pRqsIFKj8lDwU9ZN1eVvpEMLAP+KFStd+SoYclzpFc0YHo/qtZnMB HRCDU6g3/7M029/32ue1cXffM90I98nP0t58tOE/mszHPq6rQ+BuweyOi 4IIVYfUELUuy59GR7r0cSqGMSd7N0DlqJkJZkewHGKEis3BelzykIzmB9 w==; X-CSE-ConnectionGUID: xE7QADmVS6aUyb7Slr+2bQ== X-CSE-MsgGUID: jUj0RGpfTOqsxr7mJvPnyQ== X-IronPort-AV: E=McAfee;i="6800,10657,11764"; a="81699235" X-IronPort-AV: E=Sophos;i="6.23,193,1770624000"; d="scan'208";a="81699235" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2026 09:51:45 -0700 X-CSE-ConnectionGUID: xJvYcwHoS6aoiF0fb14s2w== X-CSE-MsgGUID: lbQ1XH3HQSW/zDHnlzOEJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,193,1770624000"; d="scan'208";a="227824960" Received: from smoticic-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.245.201]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2026 09:51:42 -0700 Date: Wed, 22 Apr 2026 19:51:40 +0300 From: Andy Shevchenko To: Josh Law Cc: akpm@linux-foundation.org, kees@kernel.org, James.Bottomley@hansenpartnership.com, linux-kernel@vger.kernel.org, andy.shevchenko@gmail.com Subject: Re: [RFC] [QUESTION] Stuff to do for string Message-ID: References: <313CDBE8-2AE7-4104-9DE0-C119A843A0F4@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <313CDBE8-2AE7-4104-9DE0-C119A843A0F4@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Wed, Apr 22, 2026 at 05:28:39PM +0100, Josh Law wrote: > On 22 April 2026 17:12:37 BST, Andy Shevchenko > wrote: > >On Wed, Apr 22, 2026 at 03:57:16PM +0100, Josh Law wrote: > >> Hello, (this is my first RFC, so maybe cc is bad, but yeah) > >> > >> What do you guys have planned/would like me to have a look at doing in > >> lib/string.c > >> > >> I am home from school so I am virtually free > > > >Arbitrary things that came to my mind (no particular order) > > > >- Get rid of strlcat() > > Yeah, I'm working on that actually :D, privately, I sorta stopped cuz i > thought kees was gonna do that, if not, not issue! > > >- Clean up include/linux/string.h > > a) drop extern for functions > > b) put the headers it includes into an order and follow IWYU > > Hmm, yeah, I see it's kind of a mess (in a polite way) > > >- kill memscan() in favour of memchr() / memchr_inv() > > Hmm, maybe, is there a crazy amount of files that call memscan()? You can find an answer yourself. The daily-basis kill feature tool is `git grep ...`. > I'll also (try ;), yk, school :( ) to review patches for your file. Ig > it's the best I do for you lot right now, (I am starting to review most > if not all patches in lib), e.g: > https://lore.kernel.org/all/AA9B2A7E-A88D-457C-8244-50087631B347@gmail.com > :) -- With Best Regards, Andy Shevchenko