Print this page
10685 SMB code needs smatch fixes

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fs.d/smbclnt/fksmbcl/Makefile
          +++ new/usr/src/cmd/fs.d/smbclnt/fksmbcl/Makefile
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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 (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  # Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
       24 +# Copyright 2019, Joyent, Inc.
  24   25  #
  25   26  
  26   27  PROG=   fksmbcl
  27   28  
  28   29  OBJS_LOCAL = \
  29   30          fksmbcl_main.o \
  30   31          fkdev.o \
  31   32          fknewvc.o \
  32   33          fkiod_cl.o \
  33   34          shares.o
↓ open down ↓ 27 lines elided ↑ open up ↑
  61   62  INCS += -I$(SRC)/lib/libsmbfs/netsmb
  62   63  
  63   64  CPPFLAGS += $(INCS)
  64   65  CPPFLAGS += -D_REENTRANT
  65   66  CPPFLAGS += -D_FILE_OFFSET_BITS=64
  66   67  CPPFLAGS += -D_LARGEFILE64_SOURCE=1
  67   68  CPPFLAGS += -DFKSMBCL
  68   69  # Always want DEBUG here
  69   70  CPPFLAGS += -DDEBUG
  70   71  
       72 +# needs work
       73 +SMOFF += all_func_returns
       74 +
  71   75  CSTD=           $(CSTD_GNU99)
  72   76  
  73   77  CFLAGS += $(CCVERBOSE)
  74   78  CFLAGS64 += $(CCVERBOSE)
  75   79  
  76   80  LDFLAGS += $(ZNOLAZYLOAD)
  77   81  LDFLAGS += -R/usr/lib/smbfs
  78   82  LDLIBS += -L$(ROOT)/usr/lib/smbfs
  79   83  LDLIBS += -lsmbfs -lfksmbfs -lfknsmb
  80   84  LDLIBS += -lsocket
↓ open down ↓ 24 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX