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

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