diff --git a/KAEKernelDriver/KAEKernelDriver-OLK-5.10/include_linux/uacce.h b/KAEKernelDriver/KAEKernelDriver-OLK-5.10/include_linux/uacce.h index 6f02e7306fc85c57b2ea7e392d8814a701ecaa87..2c695018ac76e532736aa4dcba1695a36ee61f12 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 */