hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/plist.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Descending-priority-sorted double-linked list
34 *
....@@ -11,8 +12,6 @@
1112 *
1213 * Simplifications of the original code by
1314 * Oleg Nesterov <oleg@tv-sign.ru>
14
- *
15
- * Licensed under the FSF's GNU Public License v2 or later.
1615 *
1716 * Based on simple lists (include/linux/list.h).
1817 *
....@@ -70,7 +69,6 @@
7069 * is lowest priority.
7170 *
7271 * No locking is done, up to the caller.
73
- *
7472 */
7573 #ifndef _LINUX_PLIST_H_
7674 #define _LINUX_PLIST_H_
....@@ -231,7 +229,7 @@
231229 * @type: the type of the struct this is embedded in
232230 * @member: the name of the list_head within the struct
233231 */
234
-#ifdef CONFIG_DEBUG_PI_LIST
232
+#ifdef CONFIG_DEBUG_PLIST
235233 # define plist_first_entry(head, type, member) \
236234 ({ \
237235 WARN_ON(plist_head_empty(head)); \
....@@ -248,7 +246,7 @@
248246 * @type: the type of the struct this is embedded in
249247 * @member: the name of the list_head within the struct
250248 */
251
-#ifdef CONFIG_DEBUG_PI_LIST
249
+#ifdef CONFIG_DEBUG_PLIST
252250 # define plist_last_entry(head, type, member) \
253251 ({ \
254252 WARN_ON(plist_head_empty(head)); \