Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp575014rdb; Thu, 21 Dec 2023 20:24:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8Rl/V4gx8yRK5/03BIZBiQXg35/0u4fHNyFi2b7VzDoI2oYo8WHDUcpVR2X4H5Z49Lez2 X-Received: by 2002:a05:620a:40c8:b0:781:1c54:1149 with SMTP id g8-20020a05620a40c800b007811c541149mr972703qko.31.1703219060371; Thu, 21 Dec 2023 20:24:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703219060; cv=none; d=google.com; s=arc-20160816; b=RNFd++OIPjehK6DlqRmgDIntEySmfVyIfs+RXXejgEJOjkNJ9uJoLENkUCiTekpuZ2 wph+HfFdhBfhlw1jEqC55HsrBs0sREAYlOqg0hQ8pcgiqPhbC8vPlJVN/Ll4+CDznqau VN9pi4gbenPj1WFgHMmTSlxBmXgFEgmIdb9DfkhvIrTG3HefBzkH3NY9ZWohgORH6T+S 8DO3YtCTVBp09wmBRJ1keqvN3A+9I3vmFJZ1eLqAmc8HpMyzNBWFmxgAoFgAHsjfp2Bc 84WBrbZT6TQRGpfS/R7sUx2eBp+D+Z6dyclZtp/MJafEeVl9TPoOmNB4xBo4c0ArPkQ7 xciA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=JNiKDtLjDNJu6JzuLmiV2fXuK4iej+AM998kmKtazxU=; fh=RNRmGKNFjRGaNVWRgohWNoFXDcs/TRRaLaNk+6doV0A=; b=nddhjYfKINgKvMGyI+hVkp6bzcwoS/S7oFd0JJBgJjRGYuqC77K8XAD/SS4K8zGWtx 1DoG6cyk3jtpHNfuA/22f9lowKtI9fXAv6gmuj48XV/3eRP3u2ZSNkmu5O6XvzYHcFvn 5zN/2HMf4lwaqwH79BxyJ/K5J4yWaRASAqbqMbiz9QKHZVETnjh5vTHCkWDPRnYtdYj8 13B2CczPEPoM/IqhgSb+JO016DuP5UK+w3xJJyH7Vldfulhtr/HXqsgNuTdietlwfVmd krZUFbqcLdjtI0TqVR1FFZOG807ExFgW98QbT2J5UXVrNeICY2CevzblSfWu90xFJade ZWFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9311-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h8-20020a05620a244800b0078116d4a4easi3929961qkn.28.2023.12.21.20.24.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 20:24:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-9311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9311-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D7C0B1C22E6A for ; Fri, 22 Dec 2023 04:24:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3B338F6A; Fri, 22 Dec 2023 04:24:11 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) (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 EBDC67476; Fri, 22 Dec 2023 04:24:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1rGX4r-00DhGk-B3; Fri, 22 Dec 2023 12:24:02 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 22 Dec 2023 12:24:12 +0800 Date: Fri, 22 Dec 2023 12:24:12 +0800 From: Herbert Xu To: Lucas Segarra Fernandez Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, qat-linux@intel.com, Giovanni Cabiddu , Damian Muszynski Subject: Re: [PATCH 1/5] math.h: Add avg_array() Message-ID: References: <20231215152440.34537-1-lucas.segarra.fernandez@intel.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: <20231215152440.34537-1-lucas.segarra.fernandez@intel.com> On Fri, Dec 15, 2023 at 04:24:40PM +0100, Lucas Segarra Fernandez wrote: > Add macro to compute average of values within an array. > > This patch is based on earlier work done by Wojciech Ziemba. > > Signed-off-by: Lucas Segarra Fernandez > Reviewed-by: Giovanni Cabiddu > Reviewed-by: Damian Muszynski > --- > include/linux/math.h | 33 +++++++++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) I think adding this to a common header when there are no other users is a bit premature. Please keep it in a local header file until a new user appears. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt