Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp84557rdb; Mon, 18 Dec 2023 09:31:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEn+RdnqAwiCWnoQyVnRDOdGc73oVna8BVZuL6AOrlsFdphsctm2tCltYfqTN7vk4bRSgmn X-Received: by 2002:a17:902:f689:b0:1d3:b35e:7b0e with SMTP id l9-20020a170902f68900b001d3b35e7b0emr3200015plg.57.1702920666210; Mon, 18 Dec 2023 09:31:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702920666; cv=none; d=google.com; s=arc-20160816; b=CjVGEjicUiNsTeKV+2EDzSznKOVUV3mMI1rOtJs9cvB4D3lYXNF/SMLkXepemxZ7Af s1XPpVjfdy6Wl83JxqKv2O4ZO1j3WESmzx1pvPzQ+epux3XrbytGyD9WLIDjIGN/sI86 SmUr/eBHKIfTmKDHUIudknfv1AMoBEKetEzlFICZZ3B2HLV03Zi5yIcbxXqBUxjDtCHQ npaobcyCHOLE+o/diWws0TS0kMog5+45tDKQ1/daAjv8w95BNmdI7IemaZ3YFca2TCHc QSNtnbraEdC9JiBFCSmF44ZIMe8J4VbWc1/NnigdHhpy740hNTEJAy+dnmDRZiHJfwmj fKSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=kNnqbK2ermYjrCYwDv/g+jFVB+UCcpKIN31nVS+6h5U=; fh=JZ7dk6lnn9lycfVNLv7/Urwu35qqwFUdMxFIuRhyyDM=; b=TF/zd8FhKfnDSkHKMM//jsxbSnTvditxi4rduqzwbysDLvBDzX8yl/MJDa9XPyZ3/W sOIgVZCqxq2AWC9Dc+HGdnA38I1314Kmy9HNjWQePyO4r0XiUQbh0bvnCoO4KIFTeX9F E4e0Ixb9Xdytw4dXiIgNe6DWJ+YAzucYZVLFqCIHQySg6c8OcJ5PEQPxuo3F3bwHmEI6 fSD2HkozElj0oW2WhRwjMWeXT65OFQw+LEaWUA+oLqtldnuGkkMFPWoGiR+OIT3FEsFw A0sNUgUxZ/Wvrxf1sh5o8JPzhp+XppIX39E1qtvgWC3XgtftD2gTaBEj7h5eQtXfB7fo 5kiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h12-20020a170902748c00b001d350276683si2090230pll.251.2023.12.18.09.31.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 09:31:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4161-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3CE23B238E5 for ; Mon, 18 Dec 2023 17:26:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0A415A875; Mon, 18 Dec 2023 17:25:51 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 28C02125C8; Mon, 18 Dec 2023 17:25:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="8908159" X-IronPort-AV: E=Sophos;i="6.04,286,1695711600"; d="scan'208";a="8908159" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 09:25:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="725405139" X-IronPort-AV: E=Sophos;i="6.04,286,1695711600"; d="scan'208";a="725405139" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 09:25:46 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rFHN9-0000000727j-0xQq; Mon, 18 Dec 2023 19:25:43 +0200 Date: Mon, 18 Dec 2023 19:25:42 +0200 From: Andy Shevchenko To: Tanzir Hasan Cc: Nick Desaulniers , Kees Cook , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Nick DeSaulniers , Andrew Morton , llvm@lists.linux.dev, Al Viro Subject: Re: [PATCH v2 1/2] sh: Added kernel.h to word-at-a-time Message-ID: References: <20231214-libstringheader-v2-0-0f195dcff204@google.com> <20231214-libstringheader-v2-1-0f195dcff204@google.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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Mon, Dec 18, 2023 at 09:05:56AM -0800, Tanzir Hasan wrote: > > While REPEAT_BYTE has a manageable number of users, upper_* and > > lower_* have significantly more; I worry about moving those causing > > regressions. We can move them, but such changes would need > > significantly more soak time than this series IMO. Tanzir is also > > working on statistical analysis; I suspect if he analyzes > > include/linux/kernel.h, he can comment on whether the usage of > > REPEAT_BYTE is correlated with the usage of upper_* and lower_* in > > order to inform whether they should be grouped together or not. > > Removing REPEAT_BYTE is manageable and I have already moved it. Removing? You mean switching to something else in all those headers? > I will > be pushing a patch that moves just that into another file called wordpart.h. > There are too many instances of the other functions for it to make sense to > remove them all in this patch. Okay, let's see the proposal (patch) code then! -- With Best Regards, Andy Shevchenko