lib: Improve the is_signed_type() kunit test
authorBart Van Assche <bvanassche@acm.org>
Wed, 7 Sep 2022 18:03:29 +0000 (11:03 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 7 Sep 2022 23:37:27 +0000 (16:37 -0700)
commit98388bda6a99d76309f81584f2bc0d773bdf8b35
treec9c9e9e57b54be9bebb6ed98ea4a4845e75569b8
parent6e42aec7c75947e0d6b38400628f171364eb8231
lib: Improve the is_signed_type() kunit test

Since the definition of is_signed_type() has been moved from
<linux/overflow.h> to <linux/compiler.h>, include the latter header file
instead of the former. Additionally, add a test for the type 'char'.

Cc: Isabella Basso <isabbasso@riseup.net>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220907180329.3825417-1-bvanassche@acm.org
lib/is_signed_type_kunit.c