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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/hpcsvc/Makefile
          +++ new/usr/src/uts/intel/hpcsvc/Makefile
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  #
  23   23  # uts/intel/hpcsvc/Makefile
  24   24  # Copyright 2004 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 hpcsvc "misc"
  30      -#       kernel module.
  31      -#
  32      -#       intel architecture dependent
  33      -#
  34      -
  35      -#
  36   30  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  37   31  #
  38   32  UTSBASE = ../..
  39   33  
  40   34  #
  41   35  #       Define the module and object file sets.
  42   36  #
  43   37  MODULE          = hpcsvc
  44   38  OBJECTS         = $(HPCSVC_OBJS:%=$(OBJS_DIR)/%)
  45   39  LINTS           = $(HPCSVC_OBJS:%.o=$(LINTS_DIR)/%.ln)
↓ open down ↓ 12 lines elided ↑ open up ↑
  58   52  INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  59   53  
  60   54  #
  61   55  #       Overrides.
  62   56  #
  63   57  DEBUG_FLGS      =
  64   58  DEBUG_DEFS      += $(DEBUG_FLGS)
  65   59  
  66   60  CERRWARN        += -_gcc=-Wno-uninitialized
  67   61  
       62 +# needs work
       63 +$(OBJS_DIR)/hpcsvc.o := SMOFF += all_func_returns
       64 +
  68   65  #
  69   66  #       Default build targets.
  70   67  #
  71   68  .KEEP_STATE:
  72   69  
  73   70  def:            $(DEF_DEPS)
  74   71  
  75   72  all:            $(ALL_DEPS)
  76   73  
  77   74  clean:          $(CLEAN_DEPS)
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX