kernel: backport list_count_nodes()
[openwrt/staging/nbd.git] / package / kernel / mac80211 / patches / build / 220-list-don-t-backport-list_count_nodes.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Date: Fri, 15 Dec 2023 10:17:21 +0100
3 Subject: [PATCH] list: don't backport list_count_nodes()
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
8 It's redundant in OpenWrt as it backports it on its own. This fixes:
9 backport-include/linux/list.h:11:22: error: redefinition of 'list_count_nodes'
10
11 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
12 ---
13 backport-include/linux/list.h | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/backport-include/linux/list.h
17 +++ b/backport-include/linux/list.h
18 @@ -3,7 +3,7 @@
19 #include_next <linux/list.h>
20 #include <linux/version.h>
21
22 -#if LINUX_VERSION_IS_LESS(6,3,0)
23 +#if 0 /* OpenWrt backports list_count_nodes() on its own */
24 /**
25 * list_count_nodes - count nodes in the list
26 * @head: the head for your list.