Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Linux-Kernel
linux-evl
Commits
5f7a449a
Commit
5f7a449a
authored
Jan 02, 2021
by
Philippe Gerum
Browse files
evl: convert to fallthrough markers
Signed-off-by:
Philippe Gerum
<
rpm@xenomai.org
>
parent
7141c7b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
kernel/evl/sched/core.c
View file @
5f7a449a
...
...
@@ -1227,7 +1227,7 @@ evl_find_sched_class(union evl_sched_param *param,
case
SCHED_NORMAL
:
if
(
prio
)
return
ERR_PTR
(
-
EINVAL
);
/*
fall
-
through
*/
fallthrough
;
case
SCHED_WEAK
:
if
(
prio
<
EVL_WEAK_MIN_PRIO
||
prio
>
EVL_WEAK_MAX_PRIO
)
return
ERR_PTR
(
-
EINVAL
);
...
...
@@ -1239,7 +1239,7 @@ evl_find_sched_class(union evl_sched_param *param,
tslice
=
u_timespec_to_ktime
(
attrs
->
sched_rr_quantum
);
if
(
timeout_infinite
(
tslice
)
&&
tslice_r
)
tslice
=
*
tslice_r
;
/*
fall
-
through
*/
fallthrough
;
case
SCHED_FIFO
:
/*
* This routine handles requests submitted from
...
...
kernel/evl/sched/tp.c
View file @
5f7a449a
...
...
@@ -331,7 +331,7 @@ static ssize_t tp_control(int cpu, union evl_sched_ctlparam *ctlp,
case
evl_tp_install
:
if
(
pt
->
nr_windows
>
0
)
goto
install_schedule
;
/*
fall
-
through
. */
fallthrough
;
case
evl_tp_uninstall
:
gps
=
NULL
;
goto
switch_schedule
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment