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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/i40e/Makefile
          +++ new/usr/src/uts/intel/i40e/Makefile
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3  # Common Development and Distribution License ("CDDL"), version 1.0.
   4    4  # You may only use this file in accordance with the terms of version
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13      -# Copyright 2017 Joyent, Inc.
       13 +# Copyright (c) 2018, Joyent, Inc.
  14   14  #
  15   15  
  16   16  UTSBASE = ../..
  17   17  
  18   18  MODULE          = i40e
  19   19  OBJECTS         = $(I40E_OBJS:%=$(OBJS_DIR)/%) $(I40E_INTC_OBJS:%=$(OBJS_DIR)/%)
  20   20  LINTS           = $(I40E_OBJS:%.o=$(LINTS_DIR)/%.ln)
  21   21  ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  22   22  CONF_SRCDIR     = $(UTSBASE)/common/io/i40e
  23   23  
↓ open down ↓ 12 lines elided ↑ open up ↑
  36   36  #
  37   37  LINTTAGS        += -erroff=E_STATIC_UNUSED
  38   38  LINTTAGS        += -erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
  39   39  
  40   40  #
  41   41  # The Intel common code defines some enums which are valid unsigned ints that
  42   42  # GCC is fine with, but not Studio.
  43   43  #
  44   44  CERRWARN   += -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
  45   45  
       46 +# 3rd party code
       47 +SMOFF += all_func_returns
       48 +
  46   49  LDFLAGS         += -dy -N misc/mac
  47   50  
  48   51  .KEEP_STATE:
  49   52  
  50   53  def:            $(DEF_DEPS)
  51   54  
  52   55  all:            $(ALL_DEPS)
  53   56  
  54   57  clean:          $(CLEAN_DEPS)
  55   58  
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX