Patch "workqueue: add printf attribute to __alloc_workqueue()" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    workqueue: add printf attribute to __alloc_workqueue()

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     workqueue-add-printf-attribute-to-__alloc_workqueue.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c8aed6b95bdb24be003b64b8ae70bde6534b267f
Author: Su Hui <suhui@xxxxxxxxxxxx>
Date:   Tue Dec 24 12:43:58 2024 +0800

    workqueue: add printf attribute to __alloc_workqueue()
    
    [ Upstream commit d57212f281fda9056412cd6cca983d9d2eb89f53 ]
    
    Fix a compiler warning with W=1:
    kernel/workqueue.c: error:
    function ‘__alloc_workqueue’ might be a candidate for ‘gnu_printf’
    format attribute[-Werror=suggest-attribute=format]
     5657 |  name_len = vsnprintf(wq->name, sizeof(wq->name), fmt, args);
          |  ^~~~~~~~
    
    Fixes: 9b59a85a84dc ("workqueue: Don't call va_start / va_end twice")
    Signed-off-by: Su Hui <suhui@xxxxxxxxxxxx>
    Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 9949ffad8df0..25bdd9af7eb6 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -5627,6 +5627,7 @@ static void wq_adjust_max_active(struct workqueue_struct *wq)
 	} while (activated);
 }
 
+__printf(1, 0)
 static struct workqueue_struct *__alloc_workqueue(const char *fmt,
 						  unsigned int flags,
 						  int max_active, va_list args)




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux