Skip to contentSkip to conversation

workqueue: fix annotation for WQ_SYSFS

PATCH Applied [email protected] 3 participants 3 messages Jan 18, 2021 – Jan 19, 2021 Workqueue

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 workqueue: fix annotation for WQ_SYSFS

From: Menglong Dong <[email protected]>

'wq_sysfs_register()' in annotation for 'WQ_SYSFS' is unavailable, change it to 'workqueue_sysfs_register()'.

---
 include/linux/workqueue.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/workqueue.h +1 -1
index 26de0cae2a0a..d15a7730ee18 100644
@@ -311,7 +311,7 @@ enum {
 	WQ_MEM_RECLAIM		= 1 << 3, /* may be used for memory reclaim */
 	WQ_HIGHPRI		= 1 << 4, /* high priority */
 	WQ_CPU_INTENSIVE	= 1 << 5, /* cpu intensive workqueue */
-	WQ_SYSFS		= 1 << 6, /* visible in sysfs, see wq_sysfs_register() */
+	WQ_SYSFS		= 1 << 6, /* visible in sysfs, see workqueue_sysfs_register() */
 
 	/*
 	 * Per-cpu workqueues are generally preferred because they tend to
Signature · 1 line
2.25.1
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Mon, Jan 18, 2021 at 4:05 PM <[email protected]> wrote:

From: Menglong Dong <[email protected]>

'wq_sysfs_register()' in annotation for 'WQ_SYSFS' is unavailable, change it to 'workqueue_sysfs_register()'.

Quoted 20 lines
---
 include/linux/workqueue.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/workqueue.h +1 -2
index 26de0cae2a0a..d15a7730ee18 100644
@@ -311,7 +311,7 @@ enum {
        WQ_MEM_RECLAIM          = 1 << 3, /* may be used for memory reclaim */
        WQ_HIGHPRI              = 1 << 4, /* high priority */
        WQ_CPU_INTENSIVE        = 1 << 5, /* cpu intensive workqueue */
-       WQ_SYSFS                = 1 << 6, /* visible in sysfs, see wq_sysfs_register() */
+       WQ_SYSFS                = 1 << 6, /* visible in sysfs, see workqueue_sysfs_register() */
 
        /*
         * Per-cpu workqueues are generally preferred because they tend to
--

2.25.1