From 3b24a40cc9319dac592c1a86969e7274503b5c5b Mon Sep 17 00:00:00 2001 From: yuzh <1109426275@qq.com> Date: Thu, 10 Jul 2025 07:18:41 +0000 Subject: [PATCH] update uacce.h to fix redefination problem Signed-off-by: yuzh <1109426275@qq.com> --- .../include_linux/uacce.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/KAEKernelDriver/KAEKernelDriver-OLK-5.10/include_linux/uacce.h b/KAEKernelDriver/KAEKernelDriver-OLK-5.10/include_linux/uacce.h index 6f02e73..2c69501 100644 --- a/KAEKernelDriver/KAEKernelDriver-OLK-5.10/include_linux/uacce.h +++ b/KAEKernelDriver/KAEKernelDriver-OLK-5.10/include_linux/uacce.h @@ -156,29 +156,10 @@ struct uacce_device { struct list_head queues; }; -#if IS_ENABLED(CONFIG_UACCE) - struct uacce_device *uacce_alloc(struct device *parent, struct uacce_interface *interface); int uacce_register(struct uacce_device *uacce); void uacce_remove(struct uacce_device *uacce); void uacce_wake_up(struct uacce_queue *q); -#else /* CONFIG_UACCE */ - -static inline -struct uacce_device *uacce_alloc(struct device *parent, - struct uacce_interface *interface) -{ - return ERR_PTR(-ENODEV); -} - -static inline int uacce_register(struct uacce_device *uacce) -{ - return -EINVAL; -} - -static inline void uacce_remove(struct uacce_device *uacce) {} -static inline void uacce_wake_up(struct uacce_queue *q) {} -#endif /* CONFIG_UACCE */ #endif /* _LINUX_UACCE_H */ -- Gitee