git: 2192bc32554a - main - linuxkpi: Change irq_work_queue to return a bool
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Mar 2022 16:31:36 UTC
The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=2192bc32554ab94900d644e2af197c700c81692d commit 2192bc32554ab94900d644e2af197c700c81692d Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-03-28 13:27:27 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-03-28 16:31:31 +0000 linuxkpi: Change irq_work_queue to return a bool This was changed in Linux v5.10 MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co .KG --- sys/compat/linuxkpi/common/include/linux/irq_work.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/irq_work.h b/sys/compat/linuxkpi/common/include/linux/irq_work.h index d87ac8f0f44f..d5b211248de3 100644 --- a/sys/compat/linuxkpi/common/include/linux/irq_work.h +++ b/sys/compat/linuxkpi/common/include/linux/irq_work.h @@ -60,10 +60,13 @@ init_irq_work(struct irq_work *irqw, irq_work_func_t func) irqw->func = func; } -static inline void +static inline bool irq_work_queue(struct irq_work *irqw) { - taskqueue_enqueue(linux_irq_work_tq, &irqw->irq_task); + if(taskqueue_enqueue(linux_irq_work_tq, &irqw->irq_task) == 0) + return (true); + + return (false); } static inline void