]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
lib: polynomial: move to math/ subfolder
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Mar 2026 09:28:07 +0000 (10:28 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 28 Mar 2026 04:19:39 +0000 (21:19 -0700)
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>
lib/Kconfig
lib/Makefile
lib/math/Kconfig
lib/math/Makefile
lib/math/polynomial.c [moved from lib/polynomial.c with 100% similarity]

index 0f2fb96106476cb03ab71f06cd251cfcc2a286c3..2b0c56a53a2a65a939af48668e61271a5684114d 100644 (file)
@@ -625,9 +625,6 @@ config PLDMFW
 config ASN1_ENCODER
        tristate
 
-config POLYNOMIAL
-       tristate
-
 config FIRMWARE_TABLE
        bool
 
index 1b9ee167517f32b68ff4aa8c1dc0cec967f2bb07..60c9c9e79375e9975f32cdf7123405764a035be6 100644 (file)
@@ -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.
index 0634b428d0cb7f86eb82ec5a4d3e0bc504035cec..0e6d9cffc5d6603ecea297757f075c863fa0c320 100644 (file)
@@ -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
index d1caba23baa0b7c3b24d4767812dfdabf628b13f..9a3850d55b79f7516785858bab16cad747361ffc 100644 (file)
@@ -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
 
similarity index 100%
rename from lib/polynomial.c
rename to lib/math/polynomial.c