forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/gpu/arm/mali400/mali/linux/mali_kernel_linux.c
....@@ -178,11 +178,7 @@
178178
179179 static int mali_open(struct inode *inode, struct file *filp);
180180 static int mali_release(struct inode *inode, struct file *filp);
181
-#ifdef HAVE_UNLOCKED_IOCTL
182181 static long mali_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
183
-#else
184
-static int mali_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg);
185
-#endif
186182
187183 static int mali_probe(struct platform_device *pdev);
188184 static int mali_remove(struct platform_device *pdev);
....@@ -276,11 +272,7 @@
276272 .owner = THIS_MODULE,
277273 .open = mali_open,
278274 .release = mali_release,
279
-#ifdef HAVE_UNLOCKED_IOCTL
280275 .unlocked_ioctl = mali_ioctl,
281
-#else
282
- .ioctl = mali_ioctl,
283
-#endif
284276 .compat_ioctl = mali_ioctl,
285277 .mmap = mali_mmap
286278 };
....@@ -940,19 +932,10 @@
940932 }
941933 }
942934
943
-#ifdef HAVE_UNLOCKED_IOCTL
944935 static long mali_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
945
-#else
946
-static int mali_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg)
947
-#endif
948936 {
949937 int err;
950938 struct mali_session_data *session_data;
951
-
952
-#ifndef HAVE_UNLOCKED_IOCTL
953
- /* inode not used */
954
- (void)inode;
955
-#endif
956939
957940 MALI_DEBUG_PRINT(7, ("Ioctl received 0x%08X 0x%08lX\n", cmd, arg));
958941