]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
minmax: deduplicate __unconst_integer_typeof()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 24 Sep 2025 20:23:04 +0000 (20:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2025 11:40:42 +0000 (13:40 +0200)
commitbc9ff2176fcd2d9dbab048b3e574525dc465edf4
tree8a271f06abe9bc9c38f4c6bf36f0c0a443d4b46c
parent079b92c3b2f454d6bf243b8b0a6c3f80eea309f0
minmax: deduplicate __unconst_integer_typeof()

[ Upstream commit 5e57418a2031cd5e1863efdf3d7447a16a368172 ]

It appears that compiler_types.h already have an implementation of the
__unconst_integer_typeof() called __unqual_scalar_typeof().  Use it
instead of the copy.

Link: https://lkml.kernel.org/r/20230911154913.4176033-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Eliav Farber <farbere@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/minmax.h