summaryrefslogtreecommitdiff
path: root/include/linux/workqueue_api.h
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2026-06-05 13:06:22 +0300
committerPeter Zijlstra <peterz@infradead.org>2026-06-05 15:46:51 +0300
commita40e0f8eadd44d7b0f856b54c876aea1b93415f4 (patch)
treea221381fb801909fa07b4cf811a3f65bcd9a94c5 /include/linux/workqueue_api.h
parent608323bf7bb85bbb647eca4373acef247f105e67 (diff)
downloadlinux-a40e0f8eadd44d7b0f856b54c876aea1b93415f4.tar.xz
cleanup: Specify nonnull argument index
The guard constructors were annotated with an empty __nonnull_args(), relying on __nonnull__() marking every pointer parameter as non-NULL. Sparse cannot parse the empty argument list. Both constructors take the lock pointer as their first parameter, so specify the index explicitly: __nonnull_args(1). Reported-by: Dan Carpenter <error27@gmail.com> Closes: https://lore.kernel.org/all/aiJi0WcYE8FZt-jO@stanley.mountain/ Signed-off-by: Dmitry Ilvokhin <d@ilvokhin.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/aiKpH3cLBEj3TF2Q@shell.ilvokhin.com
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions