Print this page
const-ify make segment ops structures
There is no reason to keep the segment ops structures writable.

@@ -105,11 +105,11 @@
 static void     segkpm_dump(struct seg *);
 static int      segkpm_pagelock(struct seg *seg, caddr_t addr, size_t len,
                         struct page ***page, enum lock_type type,
                         enum seg_rw rw);
 
-static struct seg_ops segkpm_ops = {
+static const struct seg_ops segkpm_ops = {
         .fault          = segkpm_fault,
         .dump           = segkpm_dump,
         .pagelock       = segkpm_pagelock,
 //#ifndef SEGKPM_SUPPORT
 #if 0