Print this page
10077 usr/src/uts/ Makefile changes for smatch

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/chxge/Makefile
          +++ new/usr/src/uts/intel/chxge/Makefile
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # fields enclosed by brackets "[]" replaced with your own identifying
  16   16  # information: Portions Copyright [yyyy] [name of copyright owner]
  17   17  #
  18   18  # CDDL HEADER END
  19   19  #
  20   20  
  21   21  #
  22   22  # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  #
  27   28  #       This makefile drives the production of the Chelsio N110
  28   29  #       10G Ethernet (CH) driver module in x86 systems
  29   30  #
  30   31  
  31   32  #
  32   33  #       Paths to the base of the uts directory trees
  33   34  #
  34   35  UTSBASE   = ../..
↓ open down ↓ 62 lines elided ↑ open up ↑
  97   98  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  98   99  LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  99  100  LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
 100  101  LINTTAGS        += -erroff=E_STATIC_UNUSED
 101  102  
 102  103  CERRWARN        += -_gcc=-Wno-unused-label
 103  104  CERRWARN        += -_gcc=-Wno-unused-function
 104  105  CERRWARN        += -_gcc=-Wno-unused-variable
 105  106  CERRWARN        += -_gcc=-Wno-parentheses
 106  107  
      108 +SMOFF += indenting,all_func_returns,no_if_block
      109 +
      110 +# needs work
      111 +$(OBJS_DIR)/sge.o := SMOFF += index_overflow
      112 +
 107  113  #
 108  114  #
 109  115  #       Default build targets.
 110  116  #
 111  117  .KEEP_STATE:
 112  118  
 113  119  def:            $(DEF_DEPS)
 114  120  
 115  121  all:            $(ALL_DEPS)
 116  122  
↓ open down ↓ 16 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX