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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/usb_ac/Makefile
          +++ new/usr/src/uts/intel/usb_ac/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  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25   25  # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  26   26  #
  27      -# uts/intel/usb_ac/Makefile
  28      -#
  29      -#       This makefile drives the production of the usb_ac driver
  30      -#       kernel module. Intel architecture dependent
  31      -#
       27 +# Copyright (c) 2018, Joyent, Inc.
  32   28  
  33   29  
  34   30  #
  35   31  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  36   32  #
  37   33  UTSBASE = ../..
  38   34  
  39   35  #
  40   36  #       Define the module and object file sets.
  41   37  #
↓ open down ↓ 19 lines elided ↑ open up ↑
  61   57  #       Override defaults to build a unique, local modstubs.o.
  62   58  #
  63   59  MODSTUBS_DIR     = $(OBJS_DIR)
  64   60  CLEANFILES      += $(MODSTUBS_O)
  65   61  
  66   62  CERRWARN        += -_gcc=-Wno-switch
  67   63  CERRWARN        += -_gcc=-Wno-type-limits
  68   64  CERRWARN        += -_gcc=-Wno-unused-label
  69   65  CERRWARN        += -_gcc=-Wno-uninitialized
  70   66  
       67 +# needs work
       68 +$(OBJS_DIR)/usb_ac.o := SMOFF += deref_check,indenting,testing_index_after_use
       69 +
  71   70  #
  72   71  # depends on misc/usba
  73   72  #
  74   73  LDFLAGS += -dy -Nmisc/usba -Ndrv/audio
  75   74  
  76   75  #
  77   76  #       Default build targets.
  78   77  #
  79   78  .KEEP_STATE:
  80   79  
↓ open down ↓ 20 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX