From 3b0d02e17c0c063f3893d7fcb0caa66954a75c8c Mon Sep 17 00:00:00 2001 From: Luca Coelho Date: Sun, 18 Feb 2018 15:24:52 +0200 Subject: backport: include lib/bucket_locks.c The alloc/free_bucket_spinlocks() functions were moved to a new lib file, namely bucket_locks.c. Add an auto-backport for the bucket_locks.c file and move the patching of the code that moved from rhashtable to bucket_locks.c. Signed-off-by: Luca Coelho Signed-off-by: Johannes Berg --- backport/compat/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'backport/compat') diff --git a/backport/compat/Kconfig b/backport/compat/Kconfig index 492efbfc..d73e9a9e 100644 --- a/backport/compat/Kconfig +++ b/backport/compat/Kconfig @@ -132,6 +132,13 @@ config BPAUTO_RHASHTABLE #h-file linux/rhashtable.h #c-file lib/rhashtable.c +config BPAUTO_BUCKET_LOCKS + bool + # the API of bucket_locks that we need was introduced in version 4.16 + depends on KERNEL_4_16 + default y if BPAUTO_RHASHTABLE + #c-file lib/bucket_locks.c + config BPAUTO_BUILD_HDMI bool # the hdmi driver got some new apis like hdmi_infoframe_unpack() in -- cgit v1.2.3