Re: [PATCH] staging: wfx: avoid compiler warning on empty array

2020-04-30 Thread Arnd Bergmann
On Thu, Apr 30, 2020 at 10:42 AM Jerome Pouiller wrote: > On Wednesday 29 April 2020 22:34:56 CEST Arnd Bergmann wrote: > > On Wed, Apr 29, 2020 at 6:04 PM Jerome Pouiller > > wrote: > > > On Wednesday 29 April 2020 16:21:09 CEST Arnd Bergmann wrote: > > > > > > > > -static const struct of_device

Re: [PATCH] staging: wfx: avoid compiler warning on empty array

2020-04-30 Thread Jerome Pouiller
On Wednesday 29 April 2020 22:34:56 CEST Arnd Bergmann wrote: > > On Wed, Apr 29, 2020 at 6:04 PM Jerome Pouiller > wrote: > > On Wednesday 29 April 2020 16:21:09 CEST Arnd Bergmann wrote: > > > > > > -static const struct of_device_id wfx_sdio_of_match[]; > > > +static const struct of_device_id w

Re: [PATCH] staging: wfx: avoid compiler warning on empty array

2020-04-29 Thread Arnd Bergmann
On Wed, Apr 29, 2020 at 6:04 PM Jerome Pouiller wrote: > On Wednesday 29 April 2020 16:21:09 CEST Arnd Bergmann wrote: > > > > -static const struct of_device_id wfx_sdio_of_match[]; > > +static const struct of_device_id wfx_sdio_of_match[] = { > > + { .compatible = "silabs,wfx-sdio" }, > > +

Re: [PATCH] staging: wfx: avoid compiler warning on empty array

2020-04-29 Thread Jerome Pouiller
On Wednesday 29 April 2020 16:21:09 CEST Arnd Bergmann wrote: > > When CONFIG_OF is disabled, gcc-9 produces a warning about the > wfx_sdio_of_match[] array having a declaration without a dimension: > > drivers/staging/wfx/bus_sdio.c:159:34: error: array 'wfx_sdio_of_match' > assumed to have one

[PATCH] staging: wfx: avoid compiler warning on empty array

2020-04-29 Thread Arnd Bergmann
When CONFIG_OF is disabled, gcc-9 produces a warning about the wfx_sdio_of_match[] array having a declaration without a dimension: drivers/staging/wfx/bus_sdio.c:159:34: error: array 'wfx_sdio_of_match' assumed to have one element [-Werror] 159 | static const struct of_device_id wfx_sdio_of_mat