diff options
| author | Dmitry Ilvokhin <d@ilvokhin.com> | 2026-06-05 03:06:22 -0700 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-06-05 14:46:51 +0200 |
| commit | a40e0f8eadd44d7b0f856b54c876aea1b93415f4 (patch) | |
| tree | a221381fb801909fa07b4cf811a3f65bcd9a94c5 /rust/kernel/alloc/allocator | |
| parent | 608323bf7bb85bbb647eca4373acef247f105e67 (diff) | |
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 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions
