Print this page
6854 Set but not used in hat_sfmmu.c

@@ -21,10 +21,11 @@
 /*
  * Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 /*
  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
+ * Copyright 2016 Gary Mills
  */
 
 /*
  * VM - Hardware Address Translation management for Spitfire MMU.
  *

@@ -8188,11 +8189,10 @@
         cpuset_t cpuset;
         int sync = 0;
         page_t *rootpp;
         struct sf_hment *sfhme;
         struct sf_hment *tmphme = NULL;
-        struct hme_blk *hmeblkp;
         uint_t pszc;
         page_t *lastpp;
         cpuset_t tset;
         pgcnt_t npgs;
         kmutex_t *pml;

@@ -8226,11 +8226,10 @@
                 ASSERT(sz <= pszc);
                 rootpp = PP_GROUPLEADER(pp, sz);
                 for (sfhme = rootpp->p_mapping; sfhme; sfhme = tmphme) {
                         tmphme = sfhme->hme_next;
                         ASSERT(!IS_PAHME(sfhme));
-                        hmeblkp = sfmmu_hmetohblk(sfhme);
                         if (hme_size(sfhme) != sz) {
                                 continue;
                         }
                         tset = sfmmu_pageunload(rootpp, sfhme, sz);
                         CPUSET_OR(cpuset, tset);

@@ -13234,11 +13233,10 @@
  */
 static void
 sfmmu_rm_large_mappings(page_t *pp, int ttesz)
 {
         struct sf_hment *sfhmep;
-        struct hme_blk *hmeblkp;
         int     index;
         pgcnt_t npgs;
 
         ASSERT(ttesz > TTE8K);
 

@@ -13253,11 +13251,10 @@
          */
 
         for (sfhmep = pp->p_mapping; sfhmep; sfhmep = sfhmep->hme_next) {
                 if (IS_PAHME(sfhmep))
                         continue;
-                hmeblkp = sfmmu_hmetohblk(sfhmep);
                 if (hme_size(sfhmep) == ttesz) {
                         /*
                          * another mapping of the same size. don't clear index.
                          */
                         return;