Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/bnxe/Makefile
          +++ new/usr/src/uts/intel/bnxe/Makefile
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3  # Common Development and Distribution License ("CDDL"), version 1.0.
   4    4  # You may only use this file in accordance with the terms of version
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13      -# Copyright (c) 2014, Joyent, Inc.  All rights reserved.
       13 +# Copyright (c) 2018, Joyent, Inc.
  14   14  #
  15   15  
  16   16  #
  17   17  # uts/intel/bnxe/Makefile
  18   18  #
  19   19  #       This makefile drives the production of the bnxe
  20   20  #       driver kernel module.
  21   21  #
  22   22  #       intel architecture dependent
  23   23  #
↓ open down ↓ 54 lines elided ↑ open up ↑
  78   78                     -I$(SRCDIR)/577xx/drivers/common/lm/include \
  79   79                     -I$(SRCDIR)/577xx/drivers/common/lm/l4 \
  80   80                     -I$(SRCDIR)/577xx/drivers/common/lm/l4/include \
  81   81                     -I$(SRCDIR)/577xx/drivers/common/lm/l5 \
  82   82                     -I$(SRCDIR)/577xx/drivers/common/lm/l5/include \
  83   83                     -I$(SRCDIR)/577xx/hsi/hw/include \
  84   84                     -I$(SRCDIR)/577xx/hsi/mcp \
  85   85                     -I$(SRCDIR)
  86   86  
  87   87  LDFLAGS         += -dy -r -Ndrv/ip -Nmisc/mac
  88      -#CERRWARN       += -_gcc=-Wno-old-style-declaration
  89   88  CERRWARN        += -_gcc=-Wno-switch
  90   89  CERRWARN        += -_gcc=-Wno-uninitialized
  91   90  CERRWARN        += -_gcc=-Wno-parentheses
  92   91  CERRWARN        += -_gcc=-Wno-unused-function
  93   92  CERRWARN        += -_gcc=-Wno-unused-value
  94   93  CERRWARN        += -_gcc=-Wno-unused-variable
  95   94  CERRWARN        += -_gcc=-Wno-unused-but-set-variable
  96   95  CERRWARN        += -_cc=-erroff=E_STATEMENT_NOT_REACHED
  97   96  CERRWARN        += -_cc=-erroff=E_ARGUEMENT_MISMATCH
  98   97  CERRWARN        += -_cc=-erroff=E_INTEGER_OVERFLOW_DETECTED
  99   98  CERRWARN        += -_cc=-erroff=E_CONST_PROMOTED_UNSIGNED_LL
 100   99  CERRWARN        += -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
 101  100  
      101 +# a whole mess
      102 +SMATCH=off
      103 +
 102  104  LINTTAGS        += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
 103  105  LINTTAGS        += -erroff=E_FUNC_RET_MAYBE_IGNORED2
 104  106  LINTTAGS        += -erroff=E_STATIC_UNUSED
 105  107  LINTTAGS        += -erroff=E_FUNC_SET_NOT_USED
 106  108  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
 107  109  LINTTAGS        += -erroff=E_CONSTANT_CONDITION
 108  110  LINTTAGS        += -erroff=E_NOP_ELSE_STMT
 109  111  LINTTAGS        += -erroff=E_NOP_IF_STMT
 110  112  LINTTAGS        += -erroff=E_FUNC_ARG_UNUSED
 111  113  LINTTAGS        += -erroff=E_FUNC_VAR_UNUSED
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX