Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: usbip: list.h: fix kernel-doc for list_del()

In list.h, the kernel-doc for list_del() should be immediately
preceding the implementation and not separated from it by
another function implementation.

Eliminates this kernel-doc error:
list.h:1: warning: 'list_del' not found

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Valentina Manea <valentina.manea.m@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20210325174724.14447-1-rdunlap@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Randy Dunlap and committed by
Greg Kroah-Hartman
dfbe56bf 2665a13a

+5 -5
+5 -5
tools/usb/usbip/libsrc/list.h
··· 77 77 #define LIST_POISON1 ((void *) 0x00100100 + POISON_POINTER_DELTA) 78 78 #define LIST_POISON2 ((void *) 0x00200200 + POISON_POINTER_DELTA) 79 79 80 + static inline void __list_del_entry(struct list_head *entry) 81 + { 82 + __list_del(entry->prev, entry->next); 83 + } 84 + 80 85 /** 81 86 * list_del - deletes entry from list. 82 87 * @entry: the element to delete from the list. 83 88 * Note: list_empty() on entry does not return true after this, the entry is 84 89 * in an undefined state. 85 90 */ 86 - static inline void __list_del_entry(struct list_head *entry) 87 - { 88 - __list_del(entry->prev, entry->next); 89 - } 90 - 91 91 static inline void list_del(struct list_head *entry) 92 92 { 93 93 __list_del(entry->prev, entry->next);