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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/sfe/Makefile
          +++ new/usr/src/uts/intel/sfe/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 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
       27 +
  26   28  #
  27   29  #       This makefile drives the production of NS/SiS
  28   30  #       Fast Ethernet (SFE) driver module in intel systems
  29   31  #
  30   32  
  31   33  #
  32   34  #       Path to the base of the uts directory tree (usually /usr/src/uts).
  33   35  #
  34   36  UTSBASE         = ../..
  35   37  
↓ open down ↓ 35 lines elided ↑ open up ↑
  71   73  CPPFLAGS        += $(VFLAGS) $(AFLAGS) $(DFLAGS) $(CFGFLAGS) $(CCVERBOSE) \
  72   74          -I$(UTSBASE)/common/io/sfe
  73   75  
  74   76  CFLAGS          += $(CPPFLAGS)
  75   77  
  76   78  CERRWARN        += -_gcc=-Wno-unused-label
  77   79  CERRWARN        += -_gcc=-Wno-switch
  78   80  CERRWARN        += -_gcc=-Wno-parentheses
  79   81  CERRWARN        += -_gcc=-Wno-uninitialized
  80   82  
       83 +# needs work
       84 +SMOFF += all_func_returns
       85 +
  81   86  #
  82   87  # Driver depends on MAC & IP
  83   88  #
  84   89  LDFLAGS         += -dy -N misc/mac -N drv/ip
  85   90  
  86   91  #
  87   92  #       Default build targets.
  88   93  #
  89   94  .KEEP_STATE:
  90   95  
↓ open down ↓ 20 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX