diff options
| author | Nathan Chancellor <nathan@kernel.org> | 2026-06-04 15:57:15 -0700 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-06-10 02:17:00 -0400 |
| commit | 8cb2c9285e4ce9154f45fb15633ebd45dfd8d9cf (patch) | |
| tree | f0d972ee9e985a7a55a5a46201fa4f7b4371b85c /drivers/virtio | |
| parent | 083082a4e6d8311c91ac7e1d59426514c5e1c04b (diff) | |
| download | lwn-8cb2c9285e4ce9154f45fb15633ebd45dfd8d9cf.tar.gz lwn-8cb2c9285e4ce9154f45fb15633ebd45dfd8d9cf.zip | |
can: virtio: Fix comment in UAPI header
When compile testing the UAPI headers with clang, there is an warning turned
error for using a C++ style ('//') comment, which is explicitly forbidden for
UAPI headers.
In file included from <built-in>:1:
./usr/include/linux/virtio_can.h:29:35: error: // comments are not allowed in this language [-Werror,-Wcomment]
29 | #define VIRTIO_CAN_MAX_DLEN 64 // this is like CANFD_MAX_DLEN
| ^
1 error generated.
Switch to a standard C style comment.
Fixes: 2b6b4bb7d96f ("can: virtio: Add virtio CAN driver")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260604-virtio_can-fix-uapi-comment-v1-1-199fa96ec5f0@kernel.org>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions
