From: Kevin Hao <kexin....@windriver.com>

This function is only used when CONFIG_COMPAT is enabled. So wrap it
with #ifdef to fix the below build warning.
  drivers/mxc/hantro_vc8000e/hx280enc_vc8000e.c:702:13: warning: 
‘hantroenc_ioctl32’ defined but not used [-Wunused-function]
    702 | static long hantroenc_ioctl32(struct file *filp, unsigned int cmd, 
unsigned long arg)
        |             ^~~~~~~~~~~~~~~~~

Signed-off-by: Kevin Hao <kexin....@windriver.com>
---
 drivers/mxc/hantro_vc8000e/hx280enc_vc8000e.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mxc/hantro_vc8000e/hx280enc_vc8000e.c 
b/drivers/mxc/hantro_vc8000e/hx280enc_vc8000e.c
index dfb8d37664c6..9ab42bd66933 100755
--- a/drivers/mxc/hantro_vc8000e/hx280enc_vc8000e.c
+++ b/drivers/mxc/hantro_vc8000e/hx280enc_vc8000e.c
@@ -699,6 +699,7 @@ static int hantroenc_release(struct inode *inode, struct 
file *filp)
        return 0;
 }
 
+#ifdef CONFIG_COMPAT
 static long hantroenc_ioctl32(struct file *filp, unsigned int cmd, unsigned 
long arg)
 {
        long err = 0;
@@ -799,6 +800,7 @@ union {
        }
        return 0;
 }
+#endif
 
 /* VFS methods */
 static struct file_operations hantroenc_fops = {
-- 
2.39.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12760): 
https://lists.yoctoproject.org/g/linux-yocto/message/12760
Mute This Topic: https://lists.yoctoproject.org/mt/99523724/21656
Mute #ifdef:https://lists.yoctoproject.org/g/linux-yocto/mutehashtag/ifdef
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to