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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/bofi/Makefile
          +++ new/usr/src/uts/intel/bofi/Makefile
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  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  #
  22   22  # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  #
  27   28  #       This makefile drives the production of the bofi driver 
  28   29  #       kernel module.
  29   30  #
  30   31  
  31   32  #
  32   33  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  33   34  #
  34   35  UTSBASE = ../..
↓ open down ↓ 28 lines elided ↑ open up ↑
  63   64  #       Override defaults to build a unique, local modstubs.o.
  64   65  #
  65   66  MODSTUBS_DIR     = $(OBJS_DIR)
  66   67  $(MODSTUBS_O)   := AS_CPPFLAGS += -DBOFI_MODULE
  67   68  CLEANFILES      += $(MODSTUBS_O)
  68   69  
  69   70  CPPFLAGS        += -I../../sun4
  70   71  
  71   72  CERRWARN        += -_gcc=-Wno-uninitialized
  72   73  
       74 +# needs work
       75 +$(OBJS_DIR)/bofi.o := SMOFF += signed_integer_overflow_check,deref_check
       76 +
  73   77  #
  74   78  # For now, disable these lint checks; maintainers should endeavor
  75   79  # to investigate and remove these for maximum lint coverage.
  76   80  # Please do not carry these forward to new Makefiles.
  77   81  #
  78   82  LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
  79   83  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  80   84  LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  81   85  LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  82   86  
↓ open down ↓ 25 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX