Print this page
10685 SMB code needs smatch fixes

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/smbclnt/libfknsmb/Makefile.com
          +++ new/usr/src/lib/smbclnt/libfknsmb/Makefile.com
↓ 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 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25   25  # Copyright 2018 Nexenta Systems, Inc.  All rights reserved.
  26   26  #
       27 +# Copyright 2019, Joyent, Inc.
       28 +#
  27   29  
  28   30  LIBRARY =       libfknsmb.a
  29   31  VERS =          .1
  30   32  
  31   33  OBJS_LOCAL = \
  32   34          fksmb_sign_pkcs.o \
  33   35          fake_ddi.o \
  34   36          fake_fio.o \
  35   37          fake_kmem.o \
  36   38          fake_ktli.o \
↓ open down ↓ 46 lines elided ↑ open up ↑
  83   85  INCS += -I$(SRC)/uts/common/fs/smbclnt
  84   86  INCS += -I$(SRC)/uts/common
  85   87  
  86   88  CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL
  87   89  CPPFLAGS += -D_FILE_OFFSET_BITS=64
  88   90  # Always want DEBUG here
  89   91  CPPFLAGS += -DDEBUG
  90   92  
  91   93  CERRWARN += -_gcc=-Wno-switch
  92   94  
       95 +# needs work
       96 +SMOFF += all_func_returns,deref_check,signed
       97 +
  93   98  LDLIBS +=       $(MACH_LDLIBS)
  94   99  LDLIBS +=       -lfakekernel -lpkcs11 -lnsl -lc
  95  100  
  96  101  NSMB_DIR=$(SRC)/uts/common/fs/smbclnt/netsmb
  97  102  SRCS=   $(OBJS_LOCAL:%.o=$(SRCDIR)/%.c) \
  98  103          $(OBJS_NSMB:%.o=$(NSMB_DIR)/%.c)
  99  104  
 100  105  all:
 101  106  
 102  107  pics/%.o:       $(NSMB_DIR)/%.c
 103  108          $(COMPILE.c) -o $@ $<
 104  109          $(POST_PROCESS_O)
 105  110  
 106  111  .KEEP_STATE:
 107  112  
 108  113  include ../../Makefile.targ
 109  114  include ../../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX