Print this page
6147 segop_getpolicy already checks for a NULL op
Reviewed by: Garrett D'Amore <garrett@damore.org>

@@ -87,12 +87,10 @@
 static int      segmap_pagelock(struct seg *seg, caddr_t addr, size_t len,
                         struct page ***ppp, enum lock_type type,
                         enum seg_rw rw);
 static void     segmap_badop(void);
 static int      segmap_getmemid(struct seg *seg, caddr_t addr, memid_t *memidp);
-static lgrp_mem_policy_info_t   *segmap_getpolicy(struct seg *seg,
-    caddr_t addr);
 static int      segmap_capable(struct seg *seg, segcapability_t capability);
 
 /* segkpm support */
 static caddr_t  segmap_pagecreate_kpm(struct seg *, vnode_t *, u_offset_t,
                         struct smap *, enum seg_rw);

@@ -120,11 +118,10 @@
         .advise         = SEGMAP_BADOP(int),
         .dump           = segmap_dump,
         .pagelock       = segmap_pagelock,
         .setpagesize    = SEGMAP_BADOP(int),
         .getmemid       = segmap_getmemid,
-        .getpolicy      = segmap_getpolicy,
         .capable        = segmap_capable,
 };
 
 /*
  * Private segmap routines.

@@ -2189,17 +2186,10 @@
         memidp->val[1] = smd->smd_sm->sm_off + (uintptr_t)(addr - seg->s_base);
         return (0);
 }
 
 /*ARGSUSED*/
-static lgrp_mem_policy_info_t *
-segmap_getpolicy(struct seg *seg, caddr_t addr)
-{
-        return (NULL);
-}
-
-/*ARGSUSED*/
 static int
 segmap_capable(struct seg *seg, segcapability_t capability)
 {
         return (0);
 }