[PATCH 0/2] Define is_signed_type() once

Bart Van Assche posted 2 patches 3 years, 7 months ago
include/linux/compiler.h     |  6 +++++
include/linux/overflow.h     |  1 -
include/linux/trace_events.h |  2 --
lib/Kconfig.debug            | 12 +++++++++
lib/Makefile                 |  1 +
lib/is_signed_type_test.c    | 48 ++++++++++++++++++++++++++++++++++++
6 files changed, 67 insertions(+), 3 deletions(-)
create mode 100644 lib/is_signed_type_test.c
[PATCH 0/2] Define is_signed_type() once
Posted by Bart Van Assche 3 years, 7 months ago
Hi Kees,

The changes in this patch series are as follows:
- Add a unit test for the is_signed_type() macro.
- Define the is_signed_type() macro once.

Please consider these patches for the next merge window.

Thanks,

Bart.

Bart Van Assche (2):
  testing/selftests: Add tests for the is_signed_type() macro
  overflow, tracing: Define the is_signed_type() macro once

 include/linux/compiler.h     |  6 +++++
 include/linux/overflow.h     |  1 -
 include/linux/trace_events.h |  2 --
 lib/Kconfig.debug            | 12 +++++++++
 lib/Makefile                 |  1 +
 lib/is_signed_type_test.c    | 48 ++++++++++++++++++++++++++++++++++++
 6 files changed, 67 insertions(+), 3 deletions(-)
 create mode 100644 lib/is_signed_type_test.c
Re: [PATCH 0/2] Define is_signed_type() once
Posted by Kees Cook 3 years, 7 months ago
On Fri, 26 Aug 2022 09:21:14 -0700, Bart Van Assche wrote:
> The changes in this patch series are as follows:
> - Add a unit test for the is_signed_type() macro.
> - Define the is_signed_type() macro once.
> 
> Please consider these patches for the next merge window.
> 
> Thanks,
> 
> [...]

Applied to for-next/hardening, thanks!

[1/2] testing/selftests: Add tests for the is_signed_type() macro
      https://git.kernel.org/kees/c/5e3ad11bfc5a
[2/2] overflow, tracing: Define the is_signed_type() macro once
      https://git.kernel.org/kees/c/6bf7edc1e6f0

I tweaked the kunit test to have a matching filename to the other kunit
tests (i.e. ending with _kunit.c instead of _test.c)

-- 
Kees Cook