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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/tpm/Makefile
          +++ new/usr/src/uts/intel/tpm/Makefile
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22   22  # Use is subject to license terms.
  23   23  #
  24      -#       This makefile drives the production of the TPM driver kernel
  25      -#       module.
  26      -#
       24 +# Copyright (c) 2018, Joyent, Inc.
  27   25  
  28   26  UTSBASE = $(SRC)/uts
  29   27  
  30   28  #
  31   29  #       Define the module and object file sets.
  32   30  #
  33   31  MODULE          = tpm
  34   32  OBJECTS         = $(TPM_OBJS:%=$(OBJS_DIR)/%)
  35   33  LINTS           = $(TPM_OBJS:%.o=$(LINTS_DIR)/%.ln)
  36   34  ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
↓ open down ↓ 21 lines elided ↑ open up ↑
  58   56  CFLAGS          += -xCC
  59   57  
  60   58  # This is for everything except /usr/include/tss/
  61   59  CPPFLAGS        += -I$(ROOT)/usr/include
  62   60  
  63   61  # This is for /usr/include/tss/, which is not built in the ON consolidation
  64   62  CPPFLAGS        += -I$(ADJUNCT_PROTO)/usr/include
  65   63  
  66   64  CERRWARN        += -_gcc=-Wno-parentheses
  67   65  
       66 +# needs work
       67 +$(OBJS_DIR)/tpm.o := SMOFF += index_overflow
       68 +
  68   69  #
  69   70  #       Default build targets.
  70   71  #
  71   72  .KEEP_STATE:
  72   73  
  73   74  def:            $(DEF_DEPS)
  74   75  
  75   76  all:            $(ALL_DEPS)
  76   77  
  77   78  clean:          $(CLEAN_DEPS)
↓ open down ↓ 14 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX