1
0
Fork 0

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: 9d4fa1a16b ("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>
alistair/sunxi64-5.8
Arnd Bergmann 2020-05-29 22:00:24 +02:00 committed by Mauro Carvalho Chehab
parent f5fbb83feb
commit 93517ea037
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ extern unsigned int sh_css_num_binaries;
char
*sh_css_get_fw_version(void);
struct device;
bool
sh_css_check_firmware_version(struct device *dev, const char *fw_data);