]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: media: atomisp: declare 'struct device' before using it
authorArnd Bergmann <arnd@arndb.de>
Fri, 29 May 2020 20:00:24 +0000 (22:00 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Jun 2020 16:51:16 +0000 (18:51 +0200)
commit769bad0c6c4aba92e7aaefa20cfd25303883d8f0
treef9a08d65ee06c40707a2a6e0791505606560041f
parent3998ac2b9021c3b7d1442fbfa4ef6e8d3b517813
media: staging: media: atomisp: declare 'struct device' before using it

In some configurations, including this header leads to a warning:

drivers/staging/media/atomisp//pci/sh_css_firmware.h:41:38: error: declaration of 'struct device' will not be visible outside of this function [-Werror,-Wvisibility]

Make sure the struct tag is known before declaring a function
that uses it as an argument.

Fixes: 7358cd51ca73 ("media: atomisp: cleanup directory hierarchy")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/sh_css_firmware.h