| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Descending-priority-sorted double-linked list |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 11 | 12 | * |
|---|
| 12 | 13 | * Simplifications of the original code by |
|---|
| 13 | 14 | * Oleg Nesterov <oleg@tv-sign.ru> |
|---|
| 14 | | - * |
|---|
| 15 | | - * Licensed under the FSF's GNU Public License v2 or later. |
|---|
| 16 | 15 | * |
|---|
| 17 | 16 | * Based on simple lists (include/linux/list.h). |
|---|
| 18 | 17 | * |
|---|
| .. | .. |
|---|
| 70 | 69 | * is lowest priority. |
|---|
| 71 | 70 | * |
|---|
| 72 | 71 | * No locking is done, up to the caller. |
|---|
| 73 | | - * |
|---|
| 74 | 72 | */ |
|---|
| 75 | 73 | #ifndef _LINUX_PLIST_H_ |
|---|
| 76 | 74 | #define _LINUX_PLIST_H_ |
|---|
| .. | .. |
|---|
| 231 | 229 | * @type: the type of the struct this is embedded in |
|---|
| 232 | 230 | * @member: the name of the list_head within the struct |
|---|
| 233 | 231 | */ |
|---|
| 234 | | -#ifdef CONFIG_DEBUG_PI_LIST |
|---|
| 232 | +#ifdef CONFIG_DEBUG_PLIST |
|---|
| 235 | 233 | # define plist_first_entry(head, type, member) \ |
|---|
| 236 | 234 | ({ \ |
|---|
| 237 | 235 | WARN_ON(plist_head_empty(head)); \ |
|---|
| .. | .. |
|---|
| 248 | 246 | * @type: the type of the struct this is embedded in |
|---|
| 249 | 247 | * @member: the name of the list_head within the struct |
|---|
| 250 | 248 | */ |
|---|
| 251 | | -#ifdef CONFIG_DEBUG_PI_LIST |
|---|
| 249 | +#ifdef CONFIG_DEBUG_PLIST |
|---|
| 252 | 250 | # define plist_last_entry(head, type, member) \ |
|---|
| 253 | 251 | ({ \ |
|---|
| 254 | 252 | WARN_ON(plist_head_empty(head)); \ |
|---|