Print this page
segspt_ops can be static
There is nothing that needs access to this structure outside of the spt
segment driver itself.

*** 74,84 **** static int segspt_unmap(struct seg *seg, caddr_t raddr, size_t ssize); static void segspt_free(struct seg *seg); static void segspt_free_pages(struct seg *seg, caddr_t addr, size_t len); static lgrp_mem_policy_info_t *segspt_getpolicy(struct seg *seg, caddr_t addr); ! const struct seg_ops segspt_ops = { .unmap = segspt_unmap, .free = segspt_free, .getpolicy = segspt_getpolicy, }; --- 74,84 ---- static int segspt_unmap(struct seg *seg, caddr_t raddr, size_t ssize); static void segspt_free(struct seg *seg); static void segspt_free_pages(struct seg *seg, caddr_t addr, size_t len); static lgrp_mem_policy_info_t *segspt_getpolicy(struct seg *seg, caddr_t addr); ! static const struct seg_ops segspt_ops = { .unmap = segspt_unmap, .free = segspt_free, .getpolicy = segspt_getpolicy, };