Print this page
10080 smatch Makefile changes for usr/src/cmd

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/modload/Makefile.com
          +++ new/usr/src/cmd/modload/Makefile.com
↓ 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 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -# cmd/modload/Makefile.com
       25 +# Copyright (c) 2018, Joyent, Inc.
  26   26  #
  27   27  # makefile for loadable module utilities
  28   28  
  29   29  DRVPROG = add_drv rem_drv update_drv
  30   30  MODPROG = modinfo modunload modload
  31   31  PROG = $(MODPROG) $(DRVPROG)
  32   32  
  33   33  include ../../Makefile.cmd
  34   34  
  35   35  MODCOMMONOBJ = modsubr.o
↓ open down ↓ 18 lines elided ↑ open up ↑
  54   54  
  55   55  # lint is complicated here by the fact that we
  56   56  # build multiple commands and with differing
  57   57  # common source, drvsubr vs modsubr/plcysubr
  58   58  #
  59   59  LINT_PROG= $(PROG:%=lint_%.c)
  60   60  LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
  61   61  
  62   62  CERRWARN += -_gcc=-Wno-parentheses
  63   63  
       64 +# not linted
       65 +SMATCH=off
       66 +
  64   67  # install specifics
  65   68  
  66   69  $(ROOTDRVPROG) := FILEMODE = 0555
  67   70  
  68   71  add_drv                 := LDLIBS += -ldevinfo -lelf
  69   72  rem_drv                 := LDLIBS += -ldevinfo
  70   73  update_drv              := LDLIBS += -ldevinfo
  71   74  
  72   75  lint_add_drv.c          := LDLIBS += -ldevinfo -lelf
  73   76  lint_rem_drv.c          := LDLIBS += -ldevinfo
↓ open down ↓ 42 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX