Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/common/linux Constify work_pending, delayed...



details:   https://anonhg.NetBSD.org/src/rev/0e6c8fa920f9
branches:  trunk
changeset: 1027978:0e6c8fa920f9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:24:13 2021 +0000

description:
Constify work_pending, delayed_work_pending.

diffstat:

 sys/external/bsd/common/include/linux/workqueue.h |  6 +++---
 sys/external/bsd/common/linux/linux_work.c        |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 94569bf03c12 -r 0e6c8fa920f9 sys/external/bsd/common/include/linux/workqueue.h
--- a/sys/external/bsd/common/include/linux/workqueue.h Sun Dec 19 01:24:06 2021 +0000
+++ b/sys/external/bsd/common/include/linux/workqueue.h Sun Dec 19 01:24:13 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: workqueue.h,v 1.18 2021/12/19 01:20:00 riastradh Exp $ */
+/*     $NetBSD: workqueue.h,v 1.19 2021/12/19 01:24:13 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2013, 2018 The NetBSD Foundation, Inc.
@@ -115,7 +115,7 @@
 bool   cancel_work(struct work_struct *);
 bool   cancel_work_sync(struct work_struct *);
 bool   flush_work(struct work_struct *);
-bool   work_pending(struct work_struct *);
+bool   work_pending(const struct work_struct *);
 
 void   INIT_DELAYED_WORK(struct delayed_work *,
            void (*)(struct work_struct *));
@@ -127,7 +127,7 @@
 bool   cancel_delayed_work(struct delayed_work *);
 bool   cancel_delayed_work_sync(struct delayed_work *);
 bool   flush_delayed_work(struct delayed_work *);
-bool   delayed_work_pending(struct delayed_work *);
+bool   delayed_work_pending(const struct delayed_work *);
 
 struct work_struct *
        current_work(void);
diff -r 94569bf03c12 -r 0e6c8fa920f9 sys/external/bsd/common/linux/linux_work.c
--- a/sys/external/bsd/common/linux/linux_work.c        Sun Dec 19 01:24:06 2021 +0000
+++ b/sys/external/bsd/common/linux/linux_work.c        Sun Dec 19 01:24:13 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_work.c,v 1.50 2021/12/19 01:20:00 riastradh Exp $        */
+/*     $NetBSD: linux_work.c,v 1.51 2021/12/19 01:24:13 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.50 2021/12/19 01:20:00 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_work.c,v 1.51 2021/12/19 01:24:13 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/atomic.h>
@@ -546,7 +546,7 @@
  *     to run on that workqueue.
  */
 bool
-work_pending(struct work_struct *work)
+work_pending(const struct work_struct *work)
 {
 
        return work->work_owner & 1;
@@ -1577,7 +1577,7 @@
  *     True if dw is currently scheduled to execute, false if not.
  */
 bool
-delayed_work_pending(struct delayed_work *dw)
+delayed_work_pending(const struct delayed_work *dw)
 {
 
        return work_pending(&dw->work);



Home | Main Index | Thread Index | Old Index