diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-07 00:56:44 +0100 |
---|---|---|
committer | Bruno Martins <bgcngm@gmail.com> | 2023-11-06 09:28:24 +0000 |
commit | 9138c64f6ccf8a132fcc838d9c0187267c739395 (patch) | |
tree | 6405d4ffa30ca79ce5dabe82bac3aec2b4028593 | |
parent | 868710fccdef5cdb3baaeaf58de4797e73bd2faa (diff) |
fixup! compat: redefine version constants for sublevel>=256
With the 4.4.256 and 4.9.256 kernels, the previous calculation for
integer comparison overflowed. This commit redefines the broken
constants to have more space for the sublevel.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Bruno Martins <bgcngm@gmail.com>
Change-Id: I10023e96476c7f498e7f2fc8d29813ecc7c3b765
-rw-r--r-- | drivers/net/wireguard/compat/Makefile.include | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireguard/compat/Makefile.include b/drivers/net/wireguard/compat/Makefile.include index 513dba444a37..a75d5b7e9f82 100644 --- a/drivers/net/wireguard/compat/Makefile.include +++ b/drivers/net/wireguard/compat/Makefile.include @@ -6,6 +6,7 @@ kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) ccflags-y += -include $(kbuild-dir)/compat/compat.h asflags-y += -include $(kbuild-dir)/compat/compat-asm.h +LINUXINCLUDE := -DCOMPAT_VERSION=$(VERSION) -DCOMPAT_PATCHLEVEL=$(PATCHLEVEL) -DCOMPAT_SUBLEVEL=$(SUBLEVEL) -I$(kbuild-dir)/compat/version $(LINUXINCLUDE) ifeq ($(wildcard $(srctree)/include/linux/ptr_ring.h),) ccflags-y += -I$(kbuild-dir)/compat/ptr_ring/include |