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).
16 16 #
17 17 UTSBASE = ../..
18 18
19 19 #
20 20 # Define the module and object file sets.
21 21 #
22 22 MODULE = acpica
23 23 OBJECTS = $(ACPICA_OBJS:%=$(OBJS_DIR)/%)
24 24 LINTS = $(ACPICA_OBJS:%.o=$(LINTS_DIR)/%.ln)
25 25 ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
26 26 INC_PATH += -I$(UTSBASE)/intel/sys/acpi
27 27 INC_PATH += -I$(UTSBASE)/i86pc
28 28 INC_PATH += -I$(SRC)/common
29 29
30 30 #
31 31 # Include common rules.
32 32 #
33 33 include $(UTSBASE)/intel/Makefile.intel
34 34
35 35 #
36 36 # Define targets
37 37 #
38 38 ALL_TARGET = $(BINARY) $(CONFMOD)
39 39 LINT_TARGET = $(MODULE).lint
40 40 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
41 41
42 42 #
43 43 # Overrides.
44 44 #
45 45 DEBUG_DEFS += $(DEBUG_FLGS)
46 46
↓ 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
67 69 #
68 70 # Default build targets.
69 71 #
70 72 .KEEP_STATE:
71 73
72 74 def: $(DEF_DEPS)
73 75
74 76 all: $(ALL_DEPS)
75 77
76 78 clean: $(CLEAN_DEPS)
77 79
78 80 clobber: $(CLOBBER_DEPS)
79 81
80 82 lint: $(LINT_DEPS)
81 83
82 84 modlintlib: $(MODLINTLIB_DEPS)
83 85
84 86 clean.lint: $(CLEAN_LINT_DEPS)
85 87
86 88 install: $(INSTALL_DEPS)
87 89
88 90 #
89 91 # Include common targets.
90 92 #
91 93 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX