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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/cardbus/Makefile
          +++ new/usr/src/uts/intel/cardbus/Makefile
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # fields enclosed by brackets "[]" replaced with your own identifying
  16   16  # information: Portions Copyright [yyyy] [name of copyright owner]
  17   17  #
  18   18  # CDDL HEADER END
  19   19  #
  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      -# uts/intel/cardbus/Makefile
  26      -#
       25 +# Copyright (c) 2018, Joyent, Inc.
  27   26  
  28   27  #
  29   28  #       This makefile drives the production of the cardbus kernel module.
  30   29  #
  31   30  #       intel architecture dependent
  32   31  #
  33   32  
  34   33  #
  35   34  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  36   35  #
↓ open down ↓ 12 lines elided ↑ open up ↑
  49   48  #
  50   49  include $(UTSBASE)/intel/Makefile.intel
  51   50  
  52   51  #
  53   52  #       Define targets
  54   53  #
  55   54  ALL_TARGET      = $(BINARY)
  56   55  LINT_TARGET     = $(MODULE).lint
  57   56  INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  58   57  
  59      -# 
       58 +#
  60   59  #       Include sun4u specific header files
  61   60  #
  62   61  INC_PATH        += -I$(UTSBASE)/sun4u -I$(UTSBASE)/sun4 -I$(UTSBASE)/i86pc
  63   62  
  64   63  #
  65   64  # lint pass one enforcement
  66   65  #
  67   66  CFLAGS += $(CCVERBOSE)
  68   67  
  69   68  CPPFLAGS        +=      -DHOTPLUG
↓ open down ↓ 10 lines elided ↑ open up ↑
  80   79  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  81   80  LINTTAGS        += -erroff=E_STATIC_UNUSED
  82   81  LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  83   82  LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  84   83  
  85   84  CERRWARN        += -_gcc=-Wno-uninitialized
  86   85  CERRWARN        += -_gcc=-Wno-parentheses
  87   86  CERRWARN        += -_gcc=-Wno-unused-function
  88   87  CERRWARN        += -_gcc=-Wno-unused-variable
  89   88  
       89 +SMOFF += indenting,no_if_block
       90 +
  90   91  #
  91   92  #       Default build targets.
  92   93  #
  93   94  .KEEP_STATE:
  94   95  
  95   96  def:            $(DEF_DEPS)
  96   97  
  97   98  all:            $(ALL_DEPS)
  98   99  
  99  100  clean:          $(CLEAN_DEPS)
↓ open down ↓ 14 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX