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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/qede/Makefile
          +++ new/usr/src/uts/intel/qede/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 (c) 2017 Joyent, Inc.
       13 +# Copyright (c) 2018, Joyent, Inc.
  14   14  #
  15   15  
  16   16  UTSBASE = ../..
  17   17  
  18   18  MODULE          = qede
  19   19  OBJECTS         = $(QEDE_OBJS:%=$(OBJS_DIR)/%) $(QEDE_GEN_OBJS:%=$(OBJS_DIR)/%)
  20   20  ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  21   21  CONF_SRCDIR     = $(UTSBASE)/common/io/qede
  22   22  
  23   23  include $(UTSBASE)/intel/Makefile.intel
↓ open down ↓ 17 lines elided ↑ open up ↑
  41   41  CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/hw
  42   42  CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/mcp
  43   43  
  44   44  #
  45   45  # Temporarily gag these warnings for the moment. We'll work with
  46   46  # upstream to get them clean.
  47   47  #
  48   48  CERRWARN        += -_gcc=-Wno-unused-variable
  49   49  CERRWARN        += -_gcc=-Wno-unused-function
  50   50  
       51 +# 3rd party module
       52 +SMOFF += all_func_returns,indenting,no_if_block,deref_check,testing_index_after_use
       53 +
       54 +# real bug in qede_multicast()
       55 +$(OBJS_DIR)/qede_gld.o := SMOFF += assign_vs_compare
       56 +
  51   57  ALL_TARGET      = $(BINARY) $(CONFMOD)
  52   58  INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  53   59  
  54   60  LDFLAGS         += -dy -N misc/mac
  55   61  
  56   62  .KEEP_STATE:
  57   63  
  58   64  def:            $(DEF_DEPS)
  59   65  
  60   66  all:            $(ALL_DEPS)
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX