[PATCH 1/2] ASoC: qdsp6: Drop of_match_ptr to fix -Wunused-const-variable

Mark Brown broonie at kernel.org
Fri Sep 25 18:17:36 CEST 2020


On Fri, Sep 25, 2020 at 09:49:24AM +0100, Srinivas Kandagatla wrote:
> The of_device_id is included unconditionally by of.h header and used
> in the driver as well.  Remove of_match_ptr to fix W=1 compile test
> warning with !CONFIG_OF:

It's better to fix this by adding #ifdefs around the table so that we
don't have unneeded bloat from the match table in !OF cases.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20200925/76a67fe8/attachment.sig>


More information about the Alsa-devel mailing list