Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp70917rdb; Mon, 18 Dec 2023 09:09:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFir7PSHf8y+EiavPkgYCuleLTDFYIki6oM8RJuh+Ssm8k/TVHAcEGAJZoI95Ov12b7Q2Zd X-Received: by 2002:a17:906:c281:b0:a1c:7dce:d416 with SMTP id r1-20020a170906c28100b00a1c7dced416mr7907144ejz.124.1702919364778; Mon, 18 Dec 2023 09:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702919364; cv=none; d=google.com; s=arc-20160816; b=TtgPl741lWZ84zDK70z3K4bnHOX+4czexxMddMphJ+edyKfiKzjtc8G/iolxyuWoG+ xi/8WLq0uQoN0Evu3+JYYP10hAqwNbu/wyOvizbAA7/bK2l0oAZLF6vq4RD43mXNnZX7 YnKbqsbSV7x1IemCCV5hKN1P64CDPdwfC56QoSpOYXcfdYACfyPklbs1xWnveJ8s77XZ IbJMm0f9QZTq4HVi6COj+zG74SNeMJIKyOFp+M0HDuGKr2RxfmYUMWuFZBke66iGXbH0 zS9lq53iJVQQavBKqx8CHOf3R33IYBMHiYxfAV1h1s2dT6zopw68lV9F660mVMUoLAl6 j4tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=x29irrX3xXEqtqEYM+OJ0BBAXCsgyxR+RF6i+7rkCJM=; fh=e7kBcQKC3ORzuSEUtQE2jjrY7ONhvb/nCqYbSRh6B1o=; b=aq8sruY4UgR2NmWmsuq2di1Y6R9/bD4eQWQM427HrYzwLpWsiDYWKV70RSUrxhkQK6 53A50pIuHkmRVc7eQsLGgydFEzWhscv8GExyahghq9eMDYtuTgWxvUy3VO0Opc2Oc5NG Xm4C3BTYrISmVkV4YNqqtyL2pmeYbqrX4l4oGH10wm6O26BOFo5Ot/J1qh1yU5gLD5jp l6SGTQRbfvs9Rzg8S38V14ND/uIejJlnIhpWPHc0aL2b7u0b5dbPtAlMN/377hS0ebRF OMzxLSjnpL9c11XmDWtR1I8ROy/2fpfm1xEWRzlJIuZCzf68ElDXaLTr9LMAljTSAD9Q Bdlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ji60oT4V; spf=pass (google.com: domain of linux-kernel+bounces-4124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u1-20020a1709060ec100b00a2304386f4dsi4754453eji.889.2023.12.18.09.09.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 09:09:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=ji60oT4V; spf=pass (google.com: domain of linux-kernel+bounces-4124-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4124-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4BA481F2509E for ; Mon, 18 Dec 2023 17:06:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CFB55A84C; Mon, 18 Dec 2023 17:06:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ji60oT4V" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1787E4FF66 for ; Mon, 18 Dec 2023 17:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-425c1d7d72eso592891cf.1 for ; Mon, 18 Dec 2023 09:06:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702919169; x=1703523969; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=x29irrX3xXEqtqEYM+OJ0BBAXCsgyxR+RF6i+7rkCJM=; b=ji60oT4Vcsqo7jzTWIo6QJ6uerOj4XZVpVEHrcAoMWqX9g+CkG+gY3CRs2mUgvwbhq nCBmW/7KBihr0qqrB35aTAkJbbUO/+SZ+XFoqtqAH7sn2iC0eJzvhTxyzx0RzDVWxuw5 qgOneRa/P3a3YwgEoH5nX+wT1Uc75IumOLZxXtHqWB96DmTTZ2khsouYndU0L8QGE+r1 3flJGYKCOfQi/nkDTrraFZyG3Ux+dFi7Rw4FmfRDm7R0B2i473VoYnVqug4QnJJamkUM 1Dxj3lvP+3aiTIICZYTjBc/LKMcYuyN68Llj3E8SSWBysrgeCR7i4HdIVWtnXSpkQKkn +U+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702919169; x=1703523969; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x29irrX3xXEqtqEYM+OJ0BBAXCsgyxR+RF6i+7rkCJM=; b=jaCARvBmt0tpQGLCHBHP1oXdP5OCSTzWWRATZQOzLJyMcwbSoCgDF6TJ6l/LJmN6Ah wNSZotAQPbT9sgGZqPa3jWMZ6kM7SnzyHqhJm9nbSRhUJjQxhj87ZHG6JNnkjbaYBK13 aus5s+QQtwu7ahOfmzAcaK2gJlwMOTxKo1nDx9DBUVIiQmjWyOrtpxtckkF7ZPDXQqQg /Tfe0CeUYDDBoY4ngDnwrFxnpz1vwnQBEtLYkdRsMG1LgMpBNl5N10Uw4FUCARiMzI8U ZwIlP9cieWlquJsZCBtMITyXviWHt0iD9IWKaQhDlRg5sqRdi5xMaTRGOJZ7U5rZUp5r nNCA== X-Gm-Message-State: AOJu0YwMMnZTPtaquFiftIWElQttaWd3ZGlhs+e1tpx3K1P2CB1xq688 uZRJ25x2unGQye/DrK4LRnNaqTZVwlHX1tbuF4VCKhS3ipds X-Received: by 2002:ac8:570e:0:b0:423:8dd5:338 with SMTP id 14-20020ac8570e000000b004238dd50338mr451777qtw.14.1702919168821; Mon, 18 Dec 2023 09:06:08 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231214-libstringheader-v2-0-0f195dcff204@google.com> <20231214-libstringheader-v2-1-0f195dcff204@google.com> In-Reply-To: From: Tanzir Hasan Date: Mon, 18 Dec 2023 09:05:56 -0800 Message-ID: Subject: Re: [PATCH v2 1/2] sh: Added kernel.h to word-at-a-time To: Nick Desaulniers Cc: Andy Shevchenko , Andy Shevchenko , Kees Cook , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Nick DeSaulniers , Andrew Morton , llvm@lists.linux.dev, Al Viro Content-Type: text/plain; charset="UTF-8" > 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. 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. Best, Tanzir