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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/acpi_drv/Makefile
          +++ new/usr/src/uts/i86pc/acpi_drv/Makefile
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  #
  23   23  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26      -# Copyright 2016 Joyent, Inc.
       26 +# Copyright (c) 2018, Joyent, Inc.
  27   27  #
  28   28  
  29   29  #       This makefile drives the production of the acpi_drv 
  30   30  #       driver kernel module.
  31   31  #
  32   32  #       i86pc architecture dependent
  33   33  #
  34   34  
  35   35  #
  36   36  #       Path to the base of the uts directory tree (usually /usr/src/uts).
↓ open down ↓ 21 lines elided ↑ open up ↑
  58   58  LINT_TARGET     = $(MODULE).lint
  59   59  INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  60   60  
  61   61  DEBUG_FLGS      =
  62   62  $(NOT_RELEASE_BUILD)DEBUG_DEFS  += $(DEBUG_FLGS)
  63   63  
  64   64  CPPFLAGS        += -DSUNDDI
  65   65  
  66   66  CERRWARN        += -_gcc=-Wno-unused-function
  67   67  
       68 +# needs work
       69 +$(OBJS_DIR)/acpi_video.o := SMOFF += all_func_returns
       70 +
  68   71  LDFLAGS         += -dy -N misc/acpica
  69   72  
  70   73  #
  71   74  # For now, disable these lint checks; maintainers should endeavor
  72   75  # to investigate and remove these for maximum lint coverage.
  73   76  # Please do not carry these forward to new Makefiles.
  74   77  #
  75   78  LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  76   79  
  77   80  #
↓ open down ↓ 29 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX