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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/dld/Makefile
          +++ new/usr/src/uts/intel/dld/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  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  #
  27   28  # Path to the base of the uts directory tree (usually /usr/src/uts).
  28   29  #
  29   30  UTSBASE = ../..
  30   31  
  31   32  #
  32   33  # Define the module and object file sets.
  33   34  #
  34   35  MODULE          = dld
↓ open down ↓ 29 lines elided ↑ open up ↑
  64   65  #
  65   66  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  66   67  LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  67   68  LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  68   69  LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
  69   70  
  70   71  CERRWARN        += -_gcc=-Wno-uninitialized
  71   72  CERRWARN        += -_gcc=-Wno-type-limits
  72   73  CERRWARN        += -_gcc=-Wno-parentheses
  73   74  
       75 +# needs work
       76 +$(OBJS_DIR)/dld_proto.o := SMOFF += signed
       77 +$(OBJS_DIR)/dld_drv.o := SMOFF += cast_assign
       78 +
  74   79  #
  75   80  #       Default build targets.
  76   81  #
  77   82  .KEEP_STATE:
  78   83  
  79   84  def:            $(DEF_DEPS)
  80   85  
  81   86  all:            $(ALL_DEPS)
  82   87  
  83   88  clean:          $(CLEAN_DEPS)
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX