aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2020-02-23 03:32:04 +0000
committerRyan Libby <rlibby@FreeBSD.org>2020-02-23 03:32:04 +0000
commiteaa17d42919c63010bce335146ebc3fd644a5b67 (patch)
tree9e121e485631dc094e03a8ddc873ef375b8cc08b /sys/vm/vm_page.c
parentb8bf627b18f0d18743e3809c950edd522a25aaba (diff)
downloadsrc-eaa17d42919c63010bce335146ebc3fd644a5b67.tar.gz
src-eaa17d42919c63010bce335146ebc3fd644a5b67.zip
sys/vm: quiet -Wwrite-strings
Discussed with: kib Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D23796
Notes
Notes: svn path=/head/; revision=358256
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index b98936733018..0f361e25f600 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -451,13 +451,14 @@ vm_page_domain_init(int domain)
vmd = VM_DOMAIN(domain);
bzero(vmd, sizeof(*vmd));
- *__DECONST(char **, &vmd->vmd_pagequeues[PQ_INACTIVE].pq_name) =
+ *__DECONST(const char **, &vmd->vmd_pagequeues[PQ_INACTIVE].pq_name) =
"vm inactive pagequeue";
- *__DECONST(char **, &vmd->vmd_pagequeues[PQ_ACTIVE].pq_name) =
+ *__DECONST(const char **, &vmd->vmd_pagequeues[PQ_ACTIVE].pq_name) =
"vm active pagequeue";
- *__DECONST(char **, &vmd->vmd_pagequeues[PQ_LAUNDRY].pq_name) =
+ *__DECONST(const char **, &vmd->vmd_pagequeues[PQ_LAUNDRY].pq_name) =
"vm laundry pagequeue";
- *__DECONST(char **, &vmd->vmd_pagequeues[PQ_UNSWAPPABLE].pq_name) =
+ *__DECONST(const char **,
+ &vmd->vmd_pagequeues[PQ_UNSWAPPABLE].pq_name) =
"vm unswappable pagequeue";
vmd->vmd_domain = domain;
vmd->vmd_page_count = 0;