Print this page
6154 const-ify segment ops structures

*** 139,149 **** uint32_t red_ndoubles; pgcnt_t anon_segkp_pages_locked; /* See vm/anon.h */ pgcnt_t anon_segkp_pages_resv; /* anon reserved by seg_kp */ ! static struct seg_ops segkp_ops = { .dup = SEGKP_BADOP(int), .unmap = SEGKP_BADOP(int), .free = SEGKP_BADOP(void), .fault = segkp_fault, .faulta = SEGKP_BADOP(faultcode_t), --- 139,149 ---- uint32_t red_ndoubles; pgcnt_t anon_segkp_pages_locked; /* See vm/anon.h */ pgcnt_t anon_segkp_pages_resv; /* anon reserved by seg_kp */ ! static const struct seg_ops segkp_ops = { .dup = SEGKP_BADOP(int), .unmap = SEGKP_BADOP(int), .free = SEGKP_BADOP(void), .fault = segkp_fault, .faulta = SEGKP_BADOP(faultcode_t),