Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/i86pc/pcie/Makefile
+++ new/usr/src/uts/i86pc/pcie/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
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
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # uts/i86pc/pcie/Makefile
23 23 #
24 24 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 -#
28 -# This makefile drives the production of the kernel/misc/pcie module
29 -# for PCI-E Error handling support in PCI-E nexus drivers.
30 -#
31 -# i86pc implementation architecture dependent
32 -#
27 +# Copyright (c) 2018, Joyent, Inc.
33 28
34 29 #
35 30 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 31 #
37 32 UTSBASE = ../..
38 33
39 34 #
40 35 # Define the module and object file sets.
41 36 #
42 37 MODULE = pcie
43 38 OBJECTS = $(PCIE_MISC_OBJS:%=$(OBJS_DIR)/%) \
44 39 $(PCI_STRING_OBJS:%=$(OBJS_DIR)/%)
45 40 LINTS = $(PCIE_MISC_OBJS:%.o=$(LINTS_DIR)/%.ln) \
46 41 $(PCI_STRING_OBJS:%.o=$(LINTS_DIR)/%.ln)
47 42 ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
48 43
49 44 #
50 45 # Include common rules.
51 46 #
52 47 include $(UTSBASE)/i86pc/Makefile.i86pc
53 48
54 49 #
55 50 # Dependency
56 51 #
57 52 LDFLAGS += -dy -Nmisc/acpica -Nmisc/busra
58 53
59 54 #
60 55 # Define targets
61 56 #
↓ open down ↓ |
19 lines elided |
↑ open up ↑ |
62 57 ALL_TARGET = $(BINARY)
63 58 LINT_TARGET = $(MODULE).lint
64 59 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
65 60
66 61 CERRWARN += -_gcc=-Wno-unused-value
67 62 CERRWARN += -_gcc=-Wno-uninitialized
68 63 CERRWARN += -_gcc=-Wno-parentheses
69 64 CERRWARN += -_gcc=-Wno-unused-variable
70 65 CERRWARN += -_gcc=-Wno-unused-function # safe
71 66
67 +# needs work
68 +SMOFF += all_func_returns,deref_check
69 +
72 70 #
73 71 # Default build targets.
74 72 #
75 73 .KEEP_STATE:
76 74
77 75 def: $(DEF_DEPS)
78 76
79 77 all: $(ALL_DEPS)
80 78
81 79 clean: $(CLEAN_DEPS)
82 80
83 81 clobber: $(CLOBBER_DEPS)
84 82
85 83 lint: $(LINT_DEPS)
86 84
87 85 modlintlib: $(MODLINTLIB_DEPS)
88 86
89 87 clean.lint: $(CLEAN_LINT_DEPS)
90 88
91 89 install: $(INSTALL_DEPS)
92 90
93 91 #
94 92 # Include common targets.
95 93 #
96 94 include $(UTSBASE)/i86pc/Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX