From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 879B6325495 for ; Wed, 22 Apr 2026 16:12:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776874362; cv=none; b=KNVllS0fEOwvUeweHkYeZ4bB3aQECJaU7NQBCr1ILFw97tZ0GlWYu/83/l0NkWfgxQrr1Va4w6+f2sdjt1amiu53UJs0/kwI8aihrw9LfpaKzEgjIAoSVPrgfJBt4XdvryLaA6xF6m1ZRnYkM+LHqkuu/AzYr6htg4RUBnKu8ac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776874362; c=relaxed/simple; bh=kRZ1F7Vj6jUgawxN6WpBRZmhVMNJfbAtgVaVbY0Q2Bg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VPPSc72pp+qnqrt7uIDcXT7n4h7PXvZHe2iBWpqoy9CbgIM4ds1ATDcTDOtoBKQ4nVQV8OwKfA9O0CBPczMPeEo3kvXdKVZ4yMr4BJZml6YSWTDti2VQN/OXGOFZ0nGKiBTUVDwG6X6BfVXYlRcwgoyJOlOWOwkTubhC/8KEJis= 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=OQrnAgQ8; arc=none smtp.client-ip=198.175.65.11 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="OQrnAgQ8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1776874361; x=1808410361; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kRZ1F7Vj6jUgawxN6WpBRZmhVMNJfbAtgVaVbY0Q2Bg=; b=OQrnAgQ8tXUUUZU85Q6aApY0GMpnh1yV6dQyFWVknrMI9MC3Ki8QH6lD rBsGPyMWRF7r6/XtCmvDIG6tKSWz29A6cLudMAg8rLaSDy21BGqQESKzW lAMDLJ/6u3E7RcJvKlzxiKfFgwgNl+vJGcpVdcuOoCm+miCo4YoPSccd6 orWw+X6qhO2pTLH3+yuPO3O0+7wCOb6eDKUny6OqPrJINbQWlsemVXQLJ CsucHwQlPGYzukD6shq3YhLOYSeFfwp4Aa0VIWHwik5ey+7z5A9F4bF/0 fE0E19GQgFaZX0EPPGvipy5EpI6hHg+zR0/uSXQwvLiytRGQ9jZBnil4e A==; X-CSE-ConnectionGUID: dU0NiIEBQ+KG/eHK1Xm8sQ== X-CSE-MsgGUID: 864C2yRXRFqtqWINBJCHbA== X-IronPort-AV: E=McAfee;i="6800,10657,11764"; a="88133873" X-IronPort-AV: E=Sophos;i="6.23,193,1770624000"; d="scan'208";a="88133873" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2026 09:12:41 -0700 X-CSE-ConnectionGUID: tfx5oA5qRwiTPkcFQ6vyWw== X-CSE-MsgGUID: MGwPbO4uT72ugGB56jeXTA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,193,1770624000"; d="scan'208";a="228051148" Received: from smoticic-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.245.201]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2026 09:12:39 -0700 Date: Wed, 22 Apr 2026 19:12:37 +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: 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: 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 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() - Clean up include/linux/string.h a) drop extern for functions b) put the headers it includes into an order and follow IWYU - kill memscan() in favour of memchr() / memchr_inv() -- With Best Regards, Andy Shevchenko