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()
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
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'
11 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
13 backport-include/linux/list.h | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
16 --- a/backport-include/linux/list.h
17 +++ b/backport-include/linux/list.h
19 #include_next <linux/list.h>
20 #include <linux/version.h>
22 -#if LINUX_VERSION_IS_LESS(6,3,0)
23 +#if 0 /* OpenWrt backports list_count_nodes() on its own */
25 * list_count_nodes - count nodes in the list
26 * @head: the head for your list.