Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/model.h
          +++ new/usr/src/uts/common/sys/model.h
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  #ifndef _SYS_MODEL_H
  28   28  #define _SYS_MODEL_H
  29   29  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31   30  
       31 +
  32   32  #ifdef  __cplusplus
  33   33  extern "C" {
  34   34  #endif
  35   35  
  36   36  #if defined(_KERNEL) && !defined(_ASM)
  37   37  #include <sys/debug.h>
  38   38  #endif /* _KERNEL && !_ASM */
  39   39  
  40   40  #include <sys/isa_defs.h>
  41   41  
↓ open down ↓ 42 lines elided ↑ open up ↑
  84   84   */
  85   85  #if defined(_LP64)
  86   86  
  87   87  #define STRUCT_HANDLE(struct_type, handle)                              \
  88   88          struct {                                                        \
  89   89                  union {                                                 \
  90   90                          struct struct_type##32  *m32;                   \
  91   91                          struct struct_type      *m64;                   \
  92   92                  }       ptr;                                            \
  93   93                  model_t model;                                          \
  94      -        } handle = { NULL, DATAMODEL_ILP32 }
       94 +        } handle = { { NULL }, DATAMODEL_ILP32 }
  95   95  
  96   96  #define STRUCT_DECL(struct_type, handle)                                \
  97   97          struct struct_type __##handle##_buf;                            \
  98   98          STRUCT_HANDLE(struct_type, handle)
  99   99  
 100  100  #define STRUCT_SET_HANDLE(handle, umodel, addr)                         \
 101  101          (handle).model = (model_t)(umodel) & DATAMODEL_MASK;            \
 102  102          ASSERT(((umodel) & DATAMODEL_MASK) != DATAMODEL_NONE);          \
 103  103          ((handle).ptr.m64) = (addr)
 104  104  
↓ open down ↓ 121 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX