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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/acpica/Makefile
          +++ new/usr/src/uts/intel/acpica/Makefile
   1    1  #
   2    2  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   3    3  # Use is subject to license terms.
   4    4  #
   5      -# Copyright 2016 Joyent, Inc.
        5 +# Copyright (c) 2018, Joyent, Inc.
   6    6  #
   7    7  #
   8    8  #       This makefile drives the production of the ACPI CA services
   9    9  #       kernel module.
  10   10  #
  11   11  #       intel architecture dependent
  12   12  #
  13   13  
  14   14  #
  15   15  #       Path to the base of the uts directory tree (usually /usr/src/uts).
↓ open down ↓ 31 lines elided ↑ open up ↑
  47   47  #
  48   48  # lint pass one non-enforcement
  49   49  #
  50   50  CFLAGS += $(CCVERBOSE) -DPWRDMN -DACPI_USE_LOCAL_CACHE -DACPI_DEBUG_OUTPUT
  51   51  
  52   52  #
  53   53  # 3rd party code is not lint clean
  54   54  #
  55   55  CERRWARN += -erroff=E_STATEMENT_NOT_REACHED
  56   56  
       57 +SMOFF += all_func_returns
       58 +
  57   59  LINTFLAGS += -errchk=%none
  58   60  LINTFLAGS += -errhdr=%none
  59   61  LINTFLAGS += -erroff=%all
  60   62  LINTFLAGS += -errwarn=%none
  61   63  
  62   64  CERRWARN        += -_gcc=-Wno-unused-variable
  63   65  CERRWARN        += -_gcc=-Wno-parentheses
  64   66  CERRWARN        += -_gcc=-Wno-uninitialized
  65   67  CERRWARN        += -_gcc=-Wno-unused-function
  66   68  
↓ open down ↓ 25 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX