From nobody Thu Apr 9 13:31:27 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 45EBE38947E for ; Mon, 2 Mar 2026 09:28:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772443718; cv=none; b=LJ3k8wlIjgik6T2XRJQd0qBpsu96xUvTK8wB4BZPjx2+SU5jMc8XgjCpTxV3ayfteu7jng5BEgdtqXHxMPFBvZMseNcwJWf5r90hvpK0v7Bou+UUvb+MWHdBp4mmP2mSbffvvpb8onht4OYGVjDGGA7OITycyuu9kBuquU09Ii8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772443718; c=relaxed/simple; bh=l8g0HJB+zfoz013VSJXB9KTrrvyoI/0vm2ePCkgZOg0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LFm/e30dGssM63SlcUedyFOOZfoyqlVNshduyPsIiuaEI/UI1iaHZ0pZkeCDhQGbGFjN4r1oAfrYZDOGoQPXMgz6NhtOtFZg6E84wtOJHAsD+uk5ZHCmk9/Iygx5b4vUTOTHP1KeN93AHkNo7yyHgOI1yL/WCCnaSRNGhh8QI1Y= 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=HAJk2DFU; arc=none smtp.client-ip=192.198.163.15 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="HAJk2DFU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1772443717; x=1803979717; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=l8g0HJB+zfoz013VSJXB9KTrrvyoI/0vm2ePCkgZOg0=; b=HAJk2DFUllZ4tnFfAF2XXs30y74LacFhAIHDyvsnHOnst+glcqckHm0W 9rByBzJqC1P1u9MDQ1JO+FyVQSf5EFi6FyzvNmUS8BIt9YnJgKM0V+zNw 2ufwEZrMcA5eqDca+yi9YMR4j2lZB0UtE0JUzh0IvhmeFU2gsy3M5L3eE c2OpKilx15sFkRMJXAmV8OXQI0Z80ipVYjc4Vqc0iRrRoteKOOdlFDrpQ 3WyIQAJpRmJq5TNQgeig0QTDDM2SATe4uiGTyp9MpmYFqrv59f48qxZIz GqTaRj06LLq1EKHFfidQryEI4vSHpHSREYuTiutFlbrZUVsyHFMCWftkl w==; X-CSE-ConnectionGUID: 6+q7hFuJSMilftRkCFjreQ== X-CSE-MsgGUID: u+f2rbNyQCekLZJzON7j5w== X-IronPort-AV: E=McAfee;i="6800,10657,11716"; a="73557666" X-IronPort-AV: E=Sophos;i="6.21,319,1763452800"; d="scan'208";a="73557666" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2026 01:28:35 -0800 X-CSE-ConnectionGUID: ODy/UByFSP6oGhnr0RptLw== X-CSE-MsgGUID: sOTNBQHbRXKaz0DNa+aG5w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,319,1763452800"; d="scan'208";a="248099562" Received: from black.igk.intel.com ([10.91.253.5]) by orviesa002.jf.intel.com with ESMTP; 02 Mar 2026 01:28:35 -0800 Received: by black.igk.intel.com (Postfix, from userid 1003) id 41DA398; Mon, 02 Mar 2026 10:28:33 +0100 (CET) From: Andy Shevchenko To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Randy Dunlap , Andy Shevchenko , Kuan-Wei Chiu Subject: [PATCH v2 1/3] lib: polynomial: Move to math/ subfolder Date: Mon, 2 Mar 2026 10:28:07 +0100 Message-ID: <20260302092831.2267785-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260302092831.2267785-1-andriy.shevchenko@linux.intel.com> References: <20260302092831.2267785-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. Reviewed-by: Kuan-Wei Chiu 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 5be57adcd454..00a9509636c1 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -626,9 +626,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 84da412a044f..9ea149e618d2 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -243,8 +243,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