Print this page
10685 SMB code needs smatch fixes

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/smbclnt/libfksmbfs/Makefile.com
          +++ new/usr/src/lib/smbclnt/libfksmbfs/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 =       libfksmbfs.a
  29   31  VERS =          .1
  30   32  
  31   33  OBJS_LOCAL = \
  32   34          fksmbfs_rwlock.o \
  33   35          fake_fssub.o \
  34   36          fake_getdents.o \
  35   37          fake_lookup.o \
  36   38          fake_misc.o \
↓ open down ↓ 60 lines elided ↑ open up ↑
  97   99  INCS += -I$(SRC)/common
  98  100  
  99  101  CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL
 100  102  CPPFLAGS += -D_FILE_OFFSET_BITS=64
 101  103  # Always want DEBUG here
 102  104  CPPFLAGS += -DDEBUG
 103  105  
 104  106  CERRWARN += -_gcc=-Wno-switch
 105  107  CERRWARN += -_gcc=-Wno-parentheses
 106  108  
      109 +# needs work
      110 +SMOFF += all_func_returns,deref_check,signed,or_vs_and
      111 +
 107  112  LDLIBS +=       $(MACH_LDLIBS)
 108  113  LDLIBS +=       -lfknsmb -lfakekernel -lidmap -lcmdutils -lavl -lc
 109  114  
 110  115  FS_SMBFS_DIR=$(SRC)/uts/common/fs/smbclnt/smbfs
 111  116  CMN_SMBFS_DIR=$(SRC)/common/smbclnt
 112  117  SRCS=   $(OBJS_LOCAL:%.o=$(SRCDIR)/%.c) \
 113  118          $(OBJS_FS_SMBFS:%.o=$(FS_SMBFS_DIR)/%.c) \
 114  119          $(OBJS_CMN_SMBFS:%.o=$(CMN_SMBFS_DIR)/%.c)
 115  120  
 116  121  all:
↓ open down ↓ 23 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX