diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2026-03-02 10:28:07 +0100 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-03-27 21:19:39 -0700 |
| commit | 7eece6917c541af24a6161b10a150b5744695f80 (patch) | |
| tree | 2c78c3610a91f0e70eab8bc4574e7b6589934de1 /lib | |
| parent | 19aa667ace53c7398b08d01def44f96f03708bda (diff) | |
| download | linux-next-7eece6917c541af24a6161b10a150b5744695f80.tar.gz linux-next-7eece6917c541af24a6161b10a150b5744695f80.zip | |
lib: polynomial: move to math/ subfolder
Patch series "lib: polynomial: Move to math/ and clean up", v2.
While removing Baikal SoC and platform code pieces I found that this code
belongs to lib/math/ rather than generic lib/. Hence the move and
followed up cleanups.
This patch (of 3):
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.
Link: https://lkml.kernel.org/r/20260302092831.2267785-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Kconfig | 3 | ||||
| -rw-r--r-- | lib/Makefile | 2 | ||||
| -rw-r--r-- | lib/math/Kconfig | 3 | ||||
| -rw-r--r-- | lib/math/Makefile | 1 | ||||
| -rw-r--r-- | lib/math/polynomial.c (renamed from lib/polynomial.c) | 0 |
5 files changed, 4 insertions, 5 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 0f2fb9610647..2b0c56a53a2a 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -625,9 +625,6 @@ config PLDMFW config ASN1_ENCODER tristate -config POLYNOMIAL - tristate - config FIRMWARE_TABLE bool diff --git a/lib/Makefile b/lib/Makefile index 1b9ee167517f..60c9c9e79375 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -243,8 +243,6 @@ obj-$(CONFIG_MEMREGION) += memregion.o obj-$(CONFIG_STMP_DEVICE) += stmp_device.o obj-$(CONFIG_IRQ_POLL) += irq_poll.o -obj-$(CONFIG_POLYNOMIAL) += 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. +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 += div64.o gcd.o lcm.o int_log.o int_pow.o int_sqrt.o reciprocal_div.o obj-$(CONFIG_CORDIC) += cordic.o +obj-$(CONFIG_POLYNOMIAL) += polynomial.o obj-$(CONFIG_PRIME_NUMBERS) += prime_numbers.o obj-$(CONFIG_RATIONAL) += rational.o diff --git a/lib/polynomial.c b/lib/math/polynomial.c index 66d383445fec..66d383445fec 100644 --- a/lib/polynomial.c +++ b/lib/math/polynomial.c |
