diff options
author | Feng Liu <[email protected]> | 2023-03-10 07:34:28 +0200 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2023-04-21 03:02:30 -0400 |
commit | 4b6ec919b84830949313c805c586fb34f141ce0c (patch) | |
tree | 9ea84e743a3153a851b64387c5c4f1523782aba7 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 1adbd6b2fc0c09645c4c30c5eb47beaa3e6ea4b4 (diff) |
virtio_ring: Use const to annotate read-only pointer params
Add const to make the read-only pointer parameters clear, similar to
many existing functions.
To implement this change, the commit also introduces the use of
`container_of_const` to implement `to_vvq`, which ensures the const-ness
of read-only parameters and avoids accidental modification of their
members.
Signed-off-by: Feng Liu <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Reviewed-by: Parav Pandit <[email protected]>
Reviewed-by: Gavin Li <[email protected]>
Reviewed-by: Bodong Wang <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions