Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4/vm/vm_dep.h
          +++ new/usr/src/uts/sun4/vm/vm_dep.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2019 Joyent, Inc.
  23   24   */
  24   25  
  25   26  /*
  26   27   * UNIX machine dependent virtual memory support.
  27   28   */
  28   29  
  29   30  #ifndef _VM_DEP_H
  30   31  #define _VM_DEP_H
  31   32  
  32   33  #ifdef  __cplusplus
↓ open down ↓ 15 lines elided ↑ open up ↑
  48   49  #define MAX_MEM_TYPES   2       /* 0 = reloc, 1 = noreloc */
  49   50  #define MTYPE_RELOC     0
  50   51  #define MTYPE_NORELOC   1
  51   52  
  52   53  #define PP_2_MTYPE(pp)  (PP_ISNORELOC(pp) ? MTYPE_NORELOC : MTYPE_RELOC)
  53   54  
  54   55  #define MTYPE_INIT(mtype, vp, vaddr, flags, pgsz)                       \
  55   56          mtype = (flags & PG_NORELOC) ? MTYPE_NORELOC : MTYPE_RELOC;
  56   57  
  57   58  /* mtype init for page_get_replacement_page */
  58      -#define MTYPE_PGR_INIT(mtype, flags, pp, mnode, pgcnt)                  \
       59 +#define MTYPE_PGR_INIT(mtype, flags, pp, pgcnt)                 \
  59   60          mtype = (flags & PG_NORELOC) ? MTYPE_NORELOC : MTYPE_RELOC;
  60   61  
  61   62  #define MNODETYPE_2_PFN(mnode, mtype, pfnlo, pfnhi)                     \
  62   63          pfnlo = mem_node_config[mnode].physbase;                        \
  63   64          pfnhi = mem_node_config[mnode].physmax;
  64   65  
  65   66  /*
  66   67   * candidate counters in vm_pagelist.c are indexed by color and range
  67   68   */
  68   69  #define MAX_MNODE_MRANGES               MAX_MEM_TYPES
↓ open down ↓ 794 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX