diff options
author | Joshua Bakita <bakitajoshua@gmail.com> | 2021-04-09 11:32:18 -0400 |
---|---|---|
committer | Joshua Bakita <bakitajoshua@gmail.com> | 2021-04-09 11:42:51 -0400 |
commit | fe08839b19ada4b2ae1ecf94f8e469a7b293651b (patch) | |
tree | 3c2a43adfe6c794b4b1ef08b3edcf1e5ca14d2b8 | |
parent | 8ef945674e2134366a4c4b85b2f073fc7e3aa4e7 (diff) |
Clean up some lingering artifacts from the rebase
-rw-r--r-- | litmus/ctrldev.c | 7 | ||||
-rw-r--r-- | litmus/litmus.c | 2 | ||||
-rw-r--r-- | litmus/locking.c | 2 | ||||
-rw-r--r-- | litmus/sched_trace.c | 3 | ||||
-rw-r--r-- | litmus/srp.c | 8 |
5 files changed, 10 insertions, 12 deletions
diff --git a/litmus/ctrldev.c b/litmus/ctrldev.c index 27415d5baaf8..b649a27f5041 100644 --- a/litmus/ctrldev.c +++ b/litmus/ctrldev.c | |||
@@ -141,7 +141,7 @@ static long litmus_ctrl_ioctl(struct file *filp, | |||
141 | 141 | ||
142 | /* LITMUS^RT syscall emulation: we expose LITMUS^RT-specific operations | 142 | /* LITMUS^RT syscall emulation: we expose LITMUS^RT-specific operations |
143 | * via ioctl() to avoid merge conflicts with the syscall tables when | 143 | * via ioctl() to avoid merge conflicts with the syscall tables when |
144 | * rebasing LITMUS^RT. Whi this is not the most elegant way to expose | 144 | * rebasing LITMUS^RT. While this is not the most elegant way to expose |
145 | * syscall-like functionality, it helps with reducing the effort | 145 | * syscall-like functionality, it helps with reducing the effort |
146 | * required to maintain LITMUS^RT out of tree. | 146 | * required to maintain LITMUS^RT out of tree. |
147 | */ | 147 | */ |
@@ -184,9 +184,10 @@ static long litmus_ctrl_ioctl(struct file *filp, | |||
184 | syscall_args.od_open.obj_type, | 184 | syscall_args.od_open.obj_type, |
185 | syscall_args.od_open.obj_id, | 185 | syscall_args.od_open.obj_id, |
186 | syscall_args.od_open.config); | 186 | syscall_args.od_open.config); |
187 | default: | ||
188 | printk(KERN_DEBUG "ctrldev: strange od_open cmd: %d\n", cmd); | ||
189 | return -EINVAL; | ||
187 | } | 190 | } |
188 | printk(KERN_DEBUG "Weird litmus od_open cmd: %d\n", cmd); | ||
189 | return -EINVAL; | ||
190 | 191 | ||
191 | 192 | ||
192 | case LRT_null_call: | 193 | case LRT_null_call: |
diff --git a/litmus/litmus.c b/litmus/litmus.c index 8329d14e8714..790440604c7d 100644 --- a/litmus/litmus.c +++ b/litmus/litmus.c | |||
@@ -636,8 +636,6 @@ int litmus_be_migrate_to(int cpu) | |||
636 | } | 636 | } |
637 | 637 | ||
638 | #ifdef CONFIG_MAGIC_SYSRQ | 638 | #ifdef CONFIG_MAGIC_SYSRQ |
639 | int send_sig(int sig, struct task_struct *p, int priv); | ||
640 | |||
641 | static void sysrq_handle_kill_rt_tasks(int key) | 639 | static void sysrq_handle_kill_rt_tasks(int key) |
642 | { | 640 | { |
643 | struct task_struct *t; | 641 | struct task_struct *t; |
diff --git a/litmus/locking.c b/litmus/locking.c index bf8c676a1330..183d4ac68fe7 100644 --- a/litmus/locking.c +++ b/litmus/locking.c | |||
@@ -151,7 +151,7 @@ unsigned int __add_wait_queue_prio_exclusive( | |||
151 | /* find a spot where the new entry is less than the next */ | 151 | /* find a spot where the new entry is less than the next */ |
152 | list_for_each(pos, &head->head) { | 152 | list_for_each(pos, &head->head) { |
153 | prio_wait_queue_t* queued = list_entry(pos, prio_wait_queue_t, | 153 | prio_wait_queue_t* queued = list_entry(pos, prio_wait_queue_t, |
154 | wq.entry); | 154 | wq.entry); |
155 | 155 | ||
156 | if (unlikely(lt_before(new->priority, queued->priority) || | 156 | if (unlikely(lt_before(new->priority, queued->priority) || |
157 | (new->priority == queued->priority && | 157 | (new->priority == queued->priority && |
diff --git a/litmus/sched_trace.c b/litmus/sched_trace.c index 1fb84ac5f629..4f60de8e976f 100644 --- a/litmus/sched_trace.c +++ b/litmus/sched_trace.c | |||
@@ -10,9 +10,8 @@ | |||
10 | #include <asm/uaccess.h> | 10 | #include <asm/uaccess.h> |
11 | #include <linux/module.h> | 11 | #include <linux/module.h> |
12 | #include <linux/sysrq.h> | 12 | #include <linux/sysrq.h> |
13 | #include <linux/sched.h> | ||
14 | #include <linux/kfifo.h> | ||
15 | #include <linux/sched/signal.h> | 13 | #include <linux/sched/signal.h> |
14 | #include <linux/kfifo.h> | ||
16 | 15 | ||
17 | atomic_t __log_seq_no = ATOMIC_INIT(0); | 16 | atomic_t __log_seq_no = ATOMIC_INIT(0); |
18 | 17 | ||
diff --git a/litmus/srp.c b/litmus/srp.c index 9fe7a001e907..eedc236b6473 100644 --- a/litmus/srp.c +++ b/litmus/srp.c | |||
@@ -276,10 +276,10 @@ static int srp_wake_up(wait_queue_entry_t *wait, unsigned mode, int sync, | |||
276 | 276 | ||
277 | static void do_ceiling_block(struct task_struct *tsk) | 277 | static void do_ceiling_block(struct task_struct *tsk) |
278 | { | 278 | { |
279 | struct wait_queue_entry wait = { | 279 | wait_queue_entry_t wait = { |
280 | .private = tsk, | 280 | .private = tsk, |
281 | .func = srp_wake_up, | 281 | .func = srp_wake_up, |
282 | .entry = {NULL, NULL} | 282 | .entry = {NULL, NULL} |
283 | }; | 283 | }; |
284 | 284 | ||
285 | tsk->state = TASK_UNINTERRUPTIBLE; | 285 | tsk->state = TASK_UNINTERRUPTIBLE; |