diff options
author | 2025-01-14 17:54:03 +0100 | |
---|---|---|
committer | 2025-01-15 18:35:57 +0100 | |
commit | 3e2bcc16804b584bb2a2a8538a40fd3307305816 (patch) | |
tree | c67abbbb4680d4e2e758a49b19927392e60bfb51 /scripts/lib/kdoc/kdoc_files.py | |
parent | staging: gpib: Avoid plain integers as NULL pointers (diff) | |
download | linux-rng-3e2bcc16804b584bb2a2a8538a40fd3307305816.tar.xz linux-rng-3e2bcc16804b584bb2a2a8538a40fd3307305816.zip |
staging: gpib: Use C99 syntax and make static
Some drivers were still using the old syntax for initializing
structs:
field : value;
This caused sparse to emit the following warning, for example:
common/gpib_os.c:2026:1: warning: obsolete struct initializer, use C99 syntax
Use C99 syntax:
.field = value;
Some local structs and arrays were not declared static causing
sparse to emit the following warning, for example:
warning: symbol 'ib_fops' was not declared. Should it be static?
Declare the local structs and arrays as static.
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250114165403.16410-5-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions