diff options
author | Dave Penkler <dpenkler@gmail.com> | 2025-01-14 17:54:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-15 18:35:57 +0100 |
commit | 3e2bcc16804b584bb2a2a8538a40fd3307305816 (patch) | |
tree | c67abbbb4680d4e2e758a49b19927392e60bfb51 /net/lapb/lapb_in.c | |
parent | b3beeeee2724b0664a2fc8682e1440d3fc31c6fe (diff) |
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 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions