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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/emlxs/Makefile
          +++ new/usr/src/uts/intel/emlxs/Makefile
↓ open down ↓ 14 lines elided ↑ open up ↑
  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 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  # Copyright (c) 2011 Bayard G. Bell. All rights reserved.
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  #
  26   27  # This makefile drives the production of the emlxs driver kernel module.
  27   28  #
  28   29  # Path to the base of the uts directory tree (usually /usr/src/uts).
  29   30  #
  30   31  UTSBASE         = ../../
  31   32  COMMON_BASE     = ../../../common
  32   33  
  33   34  #
  34   35  #       Define the module and object file sets.
↓ open down ↓ 53 lines elided ↑ open up ↑
  88   89  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  89   90  LINTTAGS        += -erroff=E_STATIC_UNUSED
  90   91  LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  91   92  LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
  92   93  LINTTAGS        += -erroff=E_INCONS_VAL_TYPE_DECL2
  93   94  
  94   95  CERRWARN        += -_gcc=-Wno-parentheses
  95   96  CERRWARN        += -_gcc=-Wno-unused-label
  96   97  CERRWARN        += -_gcc=-Wno-uninitialized
  97   98  
       99 +SMOFF += indenting,deref_check,all_func_returns
      100 +
      101 +# seems definitely wrong
      102 +$(OBJS_DIR)/emlxs_fcf.o := SMOFF += logical_instead_of_bitwise
      103 +
  98  104  #
  99  105  #       Default build targets.
 100  106  #
 101  107  .KEEP_STATE:
 102  108  
 103  109  def:            $(DEF_DEPS)
 104  110  
 105  111  all:            $(ALL_DEPS)
 106  112  
 107  113  clean:          $(CLEAN_DEPS)
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX