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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/spdsock/Makefile
          +++ new/usr/src/uts/intel/spdsock/Makefile
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  # uts/intel/spdsock/Makefile
  23   23  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26      -#       This makefile drives the production of the spdsock driver 
  27      -#       kernel module.
  28      -#
  29      -#       intel implementation architecture dependent
  30      -#
       26 +# Copyright (c) 2018, Joyent, Inc.
  31   27  
  32   28  #
  33   29  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  34   30  #
  35   31  UTSBASE = ../..
  36   32  
  37   33  #
  38   34  #       Define the module and object file sets.
  39   35  #
  40   36  MODULE          = spdsock
↓ open down ↓ 25 lines elided ↑ open up ↑
  66   62  # For now, disable these lint checks; maintainers should endeavor
  67   63  # to investigate and remove these for maximum lint coverage.
  68   64  # Please do not carry these forward to new Makefiles.
  69   65  #
  70   66  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  71   67  LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  72   68  LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  73   69  
  74   70  CERRWARN        += -_gcc=-Wno-uninitialized
  75   71  
       72 +# needs work
       73 +$(OBJS_DIR)/spdsockddi.o := SMOFF += index_overflow
       74 +$(OBJS_DIR)/spdsock.o := SMOFF += no_if_block
       75 +
  76   76  #
  77   77  #       Default build targets.
  78   78  #
  79   79  .KEEP_STATE:
  80   80  
  81   81  def:            $(DEF_DEPS)
  82   82  
  83   83  all:            $(ALL_DEPS) $(SISCHECK_DEPS)
  84   84  
  85   85  clean:          $(CLEAN_DEPS) $(SISCLEAN_DEPS)
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX