Print this page
6154 const-ify segment ops structures

*** 185,195 **** /* * XXX this struct is used by rootnex_map_fault to identify * the segment it has been passed. So if you make it * "static" you'll need to fix rootnex_map_fault. */ ! struct seg_ops segdev_ops = { .dup = segdev_dup, .unmap = segdev_unmap, .free = segdev_free, .fault = segdev_fault, .faulta = segdev_faulta, --- 185,195 ---- /* * XXX this struct is used by rootnex_map_fault to identify * the segment it has been passed. So if you make it * "static" you'll need to fix rootnex_map_fault. */ ! const struct seg_ops segdev_ops = { .dup = segdev_dup, .unmap = segdev_unmap, .free = segdev_free, .fault = segdev_fault, .faulta = segdev_faulta,