Print this page
6154 const-ify segment ops structures

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/seg_dev.h
          +++ new/usr/src/uts/common/vm/seg_dev.h
↓ open down ↓ 119 lines elided ↑ open up ↑
 120  120          ((seg)->s_ops == &segdev_ops && \
 121  121          ((segop_gettype((seg), (seg)->s_base) & \
 122  122              (MAP_SHARED | MAP_PRIVATE)) == 0))
 123  123  
 124  124  extern void segdev_init(void);
 125  125  
 126  126  extern int segdev_create(struct seg *, void *);
 127  127  
 128  128  extern int segdev_copyto(struct seg *, caddr_t, const void *, void *, size_t);
 129  129  extern int segdev_copyfrom(struct seg *, caddr_t, const void *, void *, size_t);
 130      -extern struct seg_ops segdev_ops;
      130 +extern const struct seg_ops segdev_ops;
 131  131  
 132  132  #endif  /* _KERNEL */
 133  133  
 134  134  #ifdef  __cplusplus
 135  135  }
 136  136  #endif
 137  137  
 138  138  #endif  /* _VM_SEG_DEV_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX