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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/fctl/Makefile
          +++ new/usr/src/uts/intel/fctl/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  # uts/intel/fctl/Makefile
  22   22  #
  23   23  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26      -# ident "@(#)Makefile 1.10      08/07/25 SMI"
  27      -#
  28      -# This makefile drives the production of fctl driver kernel module.
  29      -#
  30      -# i86pc architecture dependent
  31      -#
       26 +# Copyright (c) 2018, Joyent, Inc.
  32   27  
  33   28  #
  34   29  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  35   30  #
  36   31  UTSBASE = ../..
  37   32  
  38   33  #
  39   34  #       Define the module and object file sets.
  40   35  #
  41   36  MODULE          = fctl
↓ open down ↓ 21 lines elided ↑ open up ↑
  63   58  
  64   59  #
  65   60  #       Lint tags
  66   61  #
  67   62  LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  68   63  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  69   64  LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
  70   65  
  71   66  CERRWARN        += -_gcc=-Wno-uninitialized
  72   67  
       68 +# needs work
       69 +$(OBJS_DIR)/fctl.o := SMOFF += all_func_returns,deref_check
       70 +
  73   71  #
  74   72  #       Default build targets.
  75   73  #
  76   74  .KEEP_STATE:
  77   75  
  78   76  def:            $(DEF_DEPS)
  79   77  
  80   78  all:            $(ALL_DEPS)
  81   79  
  82   80  clean:          $(CLEAN_DEPS)
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX