Re: [PATCH v2 3/9] staging: kpc2000: declare all kpc_uio_class device attributes as static.

2019-05-17 Thread Greg KH
On Thu, May 16, 2019 at 10:38:08PM +0100, Jeremy Sowden wrote: > The definitions are only used to populate the kpc_uio_class_attrs > attribute array, so declare them as static. > > Fixes the following sparse warnings: > > drivers/staging/kpc2000/kpc2000/cell_probe.c:220:1: warning: symbol >

[PATCH v2 3/9] staging: kpc2000: declare all kpc_uio_class device attributes as static.

2019-05-16 Thread Jeremy Sowden
The definitions are only used to populate the kpc_uio_class_attrs attribute array, so declare them as static. Fixes the following sparse warnings: drivers/staging/kpc2000/kpc2000/cell_probe.c:220:1: warning: symbol 'dev_attr_offset' was not declared. Should it be static?