From 44cf477cfa07a1b0750e4a7688241083e35cefae Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 22 May 2017 14:40:49 +0200 Subject: compat: ship padata if kernel doesn't have it --- src/compat/Kbuild.include | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/compat/Kbuild.include') diff --git a/src/compat/Kbuild.include b/src/compat/Kbuild.include index aacc9f6..688a573 100644 --- a/src/compat/Kbuild.include +++ b/src/compat/Kbuild.include @@ -31,3 +31,11 @@ ifeq ($(shell grep -F "int crypto_memneq" "$(srctree)/include/crypto/algapi.h"), ccflags-y += -include $(src)/compat/memneq/include.h wireguard-y += compat/memneq/memneq.o endif + +ifneq ($(KBUILD_EXTMOD),) +ifneq ($(CONFIG_SMP),) +ifeq (,$(filter $(CONFIG_PADATA),y m)) +wireguard-y += compat/padata/padata.o +endif +endif +endif -- cgit v1.2.3-59-g8ed1b