diff --git a/mk/LinuxKM.mk b/mk/LinuxKM.mk index c7fd768..2b9f057 100644 --- a/mk/LinuxKM.mk +++ b/mk/LinuxKM.mk @@ -1,7 +1,11 @@ # Set the path to the Kernel build utils. KBUILD=/lib/modules/$(shell uname -r)/build/ -ccflags-y += -Ofast -ffreestanding +ccflags-y += -Ofast -ffreestanding -Wno-undef -Wno-error=frame-larger-than= +CFLAGS_src/ssl/ssl_engine.o := -Wno-error=implicit-fallthrough= +CFLAGS_src/int/i31_encode.o := -Wno-error=implicit-fallthrough= +CFLAGS_src/int/i32_encode.o := -Wno-error=implicit-fallthrough= + ARCH := $(shell uname -m) ifeq ($(ARCH), aarch64) ccflags-remove-y += -mgeneral-regs-only diff --git a/src/ec/ec_p256_m62.c b/src/ec/ec_p256_m62.c index b8badf9..30fcce2 100644 --- a/src/ec/ec_p256_m62.c +++ b/src/ec/ec_p256_m62.c @@ -81,7 +81,9 @@ api_xoff(int curve, size_t *len) * In particular, such a value is less than twice the modulus p. */ +#ifndef BIT #define BIT(n) ((uint64_t)1 << (n)) +#endif #define MASK48 (BIT(48) - BIT(0)) #define MASK52 (BIT(52) - BIT(0))