From nobody Thu Apr 9 13:32:20 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 E073533AD95 for ; Fri, 27 Feb 2026 07:50:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772178606; cv=none; b=lU9IHI9pqQ3w2mbdXyZzydsgCot1VS6dGGFI+nYeLeoVr9VK/hYazy3+hB5CUMF/N0BYgckS7BU+QG/ETBi1RjHtS3dKrI0xXiMAa27B32KwXnbWd6txvf+wJLKPSxWJ82X1drBG8FPPYLEJkaD5HNpJczrkT8TCU36dZiIcE68= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772178606; c=relaxed/simple; bh=KB+6+f44haTDHYLGeCGUteENEk5HBUea0MN1HmDVvQE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jidIsVSVlTnofHQrlTBzb+qJ7GpJnUmSy3L66sce/9zXzhkOjqKq6dUe88Mva3cBa+wJwxG3XmZofgTlbuNhciafhK6YJGopGOhyyusmsxSzUr+0koxmf6uSxWdEJdv+bBWBjh7TG8ABeyrx7RM6p+kNSNrt3cp1HNP8noZRtso= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=LUJll5Yc; arc=none smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LUJll5Yc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1772178605; x=1803714605; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KB+6+f44haTDHYLGeCGUteENEk5HBUea0MN1HmDVvQE=; b=LUJll5YcNrbeKLJzgx4AmoLLfOUxuf7DJG0pr8NA5SLv5EJfVw2fSLkD pJ4EyNt+7SasOYtfKbiQBsAXpYTh5mnzhk47QV+X9/MYp5KGZEeZ527Uy kLplg/TX+/ZL2ZNBhpjhu0WoYzqVWeNmCLi7oo7ib/HuTjddr987fRF8n wgtsZ4gNuy+VNrvHQq7AIC+5YcRzkZj0KKoGfZJ0iYJZRFORR+e7RzTQB i4rX/3zvMCY6rQKKj7U4JeLS/967EmL5k1Nja8fjz1kjCPYnRRQPbHAa8 qXvBHhm2b7MnAIg09sGp2oCBpDmy9WgzoLZdGxsVpM4idUioFF+KdRRPV Q==; X-CSE-ConnectionGUID: M7efyPAMRNaTICp4ORHQpQ== X-CSE-MsgGUID: PNJAqHP6TDWrs+0UktHz4w== X-IronPort-AV: E=McAfee;i="6800,10657,11713"; a="73128615" X-IronPort-AV: E=Sophos;i="6.21,313,1763452800"; d="scan'208";a="73128615" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2026 23:50:03 -0800 X-CSE-ConnectionGUID: IwNFPl/zS82GUqUN71xj4g== X-CSE-MsgGUID: ux//3dk6RgKC6gN23Zon3A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,313,1763452800"; d="scan'208";a="254608165" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa001.jf.intel.com with ESMTP; 26 Feb 2026 23:50:01 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 53C4899; Fri, 27 Feb 2026 08:50:00 +0100 (CET) From: Andy Shevchenko To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Randy Dunlap , Andy Shevchenko Subject: [PATCH v1 1/3] lib: polynomial: Move to math/ subfolder Date: Fri, 27 Feb 2026 08:47:58 +0100 Message-ID: <20260227074957.1144321-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260227074957.1144321-1-andriy.shevchenko@linux.intel.com> References: <20260227074957.1144321-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The algorithm behind polynomial belongs to our collection of math equations and expressions handling. Move it to math/ subfolder where others of the kind are located. Signed-off-by: Andy Shevchenko --- lib/Kconfig | 3 --- lib/Makefile | 2 -- lib/math/Kconfig | 3 +++ lib/math/Makefile | 1 + lib/{ =3D> math}/polynomial.c | 0 5 files changed, 4 insertions(+), 5 deletions(-) rename lib/{ =3D> math}/polynomial.c (100%) diff --git a/lib/Kconfig b/lib/Kconfig index 0b8241e5b548..d6a5c699a919 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -637,9 +637,6 @@ config PLDMFW config ASN1_ENCODER tristate =20 -config POLYNOMIAL - tristate - config FIRMWARE_TABLE bool =20 diff --git a/lib/Makefile b/lib/Makefile index abc32420b581..00668fda0203 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -244,8 +244,6 @@ obj-$(CONFIG_MEMREGION) +=3D memregion.o obj-$(CONFIG_STMP_DEVICE) +=3D stmp_device.o obj-$(CONFIG_IRQ_POLL) +=3D irq_poll.o =20 -obj-$(CONFIG_POLYNOMIAL) +=3D polynomial.o - # stackdepot.c should not be instrumented or call instrumented functions. # Prevent the compiler from calling builtins like memcmp() or bcmp() from = this # file. diff --git a/lib/math/Kconfig b/lib/math/Kconfig index 0634b428d0cb..0e6d9cffc5d6 100644 --- a/lib/math/Kconfig +++ b/lib/math/Kconfig @@ -5,6 +5,9 @@ config CORDIC This option provides an implementation of the CORDIC algorithm; calculations are in fixed point. Module will be called cordic. =20 +config POLYNOMIAL + tristate + config PRIME_NUMBERS tristate "Simple prime number generator for testing" help diff --git a/lib/math/Makefile b/lib/math/Makefile index d1caba23baa0..9a3850d55b79 100644 --- a/lib/math/Makefile +++ b/lib/math/Makefile @@ -2,6 +2,7 @@ obj-y +=3D div64.o gcd.o lcm.o int_log.o int_pow.o int_sqrt.o reciprocal_d= iv.o =20 obj-$(CONFIG_CORDIC) +=3D cordic.o +obj-$(CONFIG_POLYNOMIAL) +=3D polynomial.o obj-$(CONFIG_PRIME_NUMBERS) +=3D prime_numbers.o obj-$(CONFIG_RATIONAL) +=3D rational.o =20 diff --git a/lib/polynomial.c b/lib/math/polynomial.c similarity index 100% rename from lib/polynomial.c rename to lib/math/polynomial.c --=20 2.50.1