diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-12 11:20:31 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-17 11:50:02 +0200 |
commit | f224cbec5778dd53dc7e172d8dfe94d82e040026 (patch) | |
tree | fdda20655d6ffeaddcd26a91efa59b208a6b2aa1 | |
parent | media: atomisp: compat32: use get_user() before referencing user data (diff) | |
download | linux-f224cbec5778dd53dc7e172d8dfe94d82e040026.tar.xz linux-f224cbec5778dd53dc7e172d8dfe94d82e040026.zip |
media: staging: atomisp: add missing include
There are two functions used externally:
drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_ioctl32.c:866:6: warning: symbol 'atomisp_do_compat_ioctl' was not declared. Should it be static?
drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_ioctl32.c:1110:6: warning: symbol 'atomisp_compat_ioctl32' was not declared. Should it be static?
whose include header is missing. Add it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_ioctl32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_ioctl32.c b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_ioctl32.c index d7c0ef1f9584..15546b1f843d 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_ioctl32.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_ioctl32.c @@ -21,6 +21,7 @@ #include "atomisp_internal.h" #include "atomisp_compat.h" +#include "atomisp_ioctl.h" #include "atomisp_compat_ioctl32.h" static int get_atomisp_histogram32(struct atomisp_histogram *kp, @@ -863,8 +864,8 @@ static long native_ioctl(struct file *file, unsigned int cmd, unsigned long arg) return ret; } -long atomisp_do_compat_ioctl(struct file *file, - unsigned int cmd, unsigned long arg) +static long atomisp_do_compat_ioctl(struct file *file, + unsigned int cmd, unsigned long arg) { union { struct atomisp_histogram his; |