Print this page
6154 const-ify segment ops structures
*** 95,105 ****
struct smap *, enum seg_rw);
struct smap *get_smap_kpm(caddr_t, page_t **);
#define SEGMAP_BADOP(t) (t(*)())segmap_badop
! static struct seg_ops segmap_ops = {
.dup = SEGMAP_BADOP(int),
.unmap = SEGMAP_BADOP(int),
.free = segmap_free,
.fault = segmap_fault,
.faulta = segmap_faulta,
--- 95,105 ----
struct smap *, enum seg_rw);
struct smap *get_smap_kpm(caddr_t, page_t **);
#define SEGMAP_BADOP(t) (t(*)())segmap_badop
! static const struct seg_ops segmap_ops = {
.dup = SEGMAP_BADOP(int),
.unmap = SEGMAP_BADOP(int),
.free = segmap_free,
.fault = segmap_fault,
.faulta = segmap_faulta,