Skip to content

Commit 8e18fae

Browse files
Davidlohr Buesotorvalds
authored andcommitted
lib/plist: rename DEBUG_PI_LIST to DEBUG_PLIST
This is a lot more appropriate than PI_LIST, which in the kernel one would assume that it has to do with priority-inheritance; which is not -- furthermore futexes make use of plists so this can be even more confusing, albeit the debug nature of the config option. Link: http://lkml.kernel.org/r/20190317185434.1626-1-dave@stgolabs.net Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent cdc90a1 commit 8e18fae

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎include/linux/plist.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ static inline int plist_node_empty(const struct plist_node *node)
231231
* @type: the type of the struct this is embedded in
232232
* @member: the name of the list_head within the struct
233233
*/
234-
#ifdef CONFIG_DEBUG_PI_LIST
234+
#ifdef CONFIG_DEBUG_PLIST
235235
# define plist_first_entry(head, type, member) \
236236
({ \
237237
WARN_ON(plist_head_empty(head)); \
@@ -248,7 +248,7 @@ static inline int plist_node_empty(const struct plist_node *node)
248248
* @type: the type of the struct this is embedded in
249249
* @member: the name of the list_head within the struct
250250
*/
251-
#ifdef CONFIG_DEBUG_PI_LIST
251+
#ifdef CONFIG_DEBUG_PLIST
252252
# define plist_last_entry(head, type, member) \
253253
({ \
254254
WARN_ON(plist_head_empty(head)); \

‎lib/Kconfig.debug‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ config DEBUG_LIST
13721372

13731373
If unsure, say N.
13741374

1375-
config DEBUG_PI_LIST
1375+
config DEBUG_PLIST
13761376
bool "Debug priority linked list manipulation"
13771377
depends on DEBUG_KERNEL
13781378
help

‎lib/plist.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <linux/bug.h>
2727
#include <linux/plist.h>
2828

29-
#ifdef CONFIG_DEBUG_PI_LIST
29+
#ifdef CONFIG_DEBUG_PLIST
3030

3131
static struct plist_head test_head;
3232

@@ -173,7 +173,7 @@ void plist_requeue(struct plist_node *node, struct plist_head *head)
173173
plist_check_head(head);
174174
}
175175

176-
#ifdef CONFIG_DEBUG_PI_LIST
176+
#ifdef CONFIG_DEBUG_PLIST
177177
#include <linux/sched.h>
178178
#include <linux/sched/clock.h>
179179
#include <linux/module.h>

0 commit comments

Comments
 (0)