Print this page
6154 const-ify segment ops structures
@@ -75,11 +75,11 @@
static int segnf_getvp(struct seg *seg, caddr_t addr, struct vnode **vpp);
static int segnf_pagelock(struct seg *seg, caddr_t addr, size_t len,
struct page ***ppp, enum lock_type type, enum seg_rw rw);
-struct seg_ops segnf_ops = {
+const struct seg_ops segnf_ops = {
.dup = segnf_dup,
.unmap = segnf_unmap,
.free = segnf_free,
.fault = (faultcode_t (*)(struct hat *, struct seg *, caddr_t,
size_t, enum fault_type, enum seg_rw))segnf_nomap,