|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] xen/sched: Constify name and opt_name in struct scheduler
commit 1f0358093c101b170f7516779b70d3c8e11965ef
Author: Julien Grall <jgrall@xxxxxxxxxx>
AuthorDate: Tue Apr 6 19:34:08 2021 +0100
Commit: Julien Grall <jgrall@xxxxxxxxxx>
CommitDate: Tue Apr 6 20:03:10 2021 +0100
xen/sched: Constify name and opt_name in struct scheduler
Both name and opt_name are pointing to literal string. So mark both of
the fields as const.
Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: George Dunlap <george.dunlap@xxxxxxxxxx>
---
xen/common/sched/private.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/common/sched/private.h b/xen/common/sched/private.h
index 92d0d49610..a870320146 100644
--- a/xen/common/sched/private.h
+++ b/xen/common/sched/private.h
@@ -272,8 +272,8 @@ static inline spinlock_t *pcpu_schedule_trylock(unsigned
int cpu)
}
struct scheduler {
- char *name; /* full name for this scheduler */
- char *opt_name; /* option name for this scheduler */
+ const char *name; /* full name for this scheduler */
+ const char *opt_name; /* option name for this scheduler */
unsigned int sched_id; /* ID for this scheduler */
void *sched_data; /* global data pointer */
struct cpupool *cpupool;/* points to this scheduler's pool */
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |