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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/agpgart/Makefile
          +++ new/usr/src/uts/intel/agpgart/Makefile
   1    1  #
   2    2  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
   3    3  # Use is subject to license terms.
   4    4  #
   5      -# uts/intel/agpgart/Makefile
   6      -#
        5 +# Copyright (c) 2018, Joyent, Inc.
   7    6  
   8    7  #
   9    8  #       This makefile drives the framework of agp protocol
  10    9  #       (agpgart) kernel module.
  11   10  #
  12   11  #
  13   12  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  14   13  #
  15   14  UTSBASE = ../..
  16   15  
↓ open down ↓ 15 lines elided ↑ open up ↑
  32   31  #       Define targets
  33   32  #
  34   33  ALL_TARGET      = $(BINARY) $(SRC_CONFILE)
  35   34  LINT_TARGET     = $(MODULE).lint
  36   35  INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  37   36  
  38   37  CERRWARN        += -_gcc=-Wno-switch
  39   38  CERRWARN        += -_gcc=-Wno-parentheses
  40   39  CERRWARN        += -_gcc=-Wno-uninitialized
  41   40  
       41 +# needs work
       42 +$(OBJS_DIR)/agpgart.o := SMOFF += deref_check
       43 +
  42   44  #
  43   45  # For now, disable these lint checks; maintainers should endeavor
  44   46  # to investigate and remove these for maximum lint coverage.
  45   47  # Please do not carry these forward to new Makefiles.
  46   48  #
  47   49  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  48   50  
  49   51  #
  50   52  #       Default build targets.
  51   53  #
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX