]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: gpib: Use C99 syntax and make static
authorDave Penkler <dpenkler@gmail.com>
Tue, 14 Jan 2025 16:54:03 +0000 (17:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2025 17:35:57 +0000 (18:35 +0100)
commit3e2bcc16804b584bb2a2a8538a40fd3307305816
treec67abbbb4680d4e2e758a49b19927392e60bfb51
parentb3beeeee2724b0664a2fc8682e1440d3fc31c6fe
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>
drivers/staging/gpib/agilent_82357a/agilent_82357a.c
drivers/staging/gpib/common/gpib_os.c
drivers/staging/gpib/gpio/gpib_bitbang.c
drivers/staging/gpib/ines/ines_gpib.c