Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/hpcsvc/Makefile
+++ new/usr/src/uts/intel/hpcsvc/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, Version 1.0 only
6 6 # (the "License"). You may not use this file except in compliance
7 7 # with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 # If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22 #
23 23 # uts/intel/hpcsvc/Makefile
24 24 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 +# Copyright (c) 2018, Joyent, Inc.
27 28
28 29 #
29 -# This makefile drives the production of the hpcsvc "misc"
30 -# kernel module.
31 -#
32 -# intel architecture dependent
33 -#
34 -
35 -#
36 30 # Path to the base of the uts directory tree (usually /usr/src/uts).
37 31 #
38 32 UTSBASE = ../..
39 33
40 34 #
41 35 # Define the module and object file sets.
42 36 #
43 37 MODULE = hpcsvc
44 38 OBJECTS = $(HPCSVC_OBJS:%=$(OBJS_DIR)/%)
45 39 LINTS = $(HPCSVC_OBJS:%.o=$(LINTS_DIR)/%.ln)
46 40 ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
47 41
48 42 #
49 43 # Include common rules.
50 44 #
51 45 include $(UTSBASE)/intel/Makefile.intel
52 46
53 47 #
54 48 # Define targets
55 49 #
56 50 ALL_TARGET = $(BINARY)
57 51 LINT_TARGET = $(MODULE).lint
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
58 52 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
59 53
60 54 #
61 55 # Overrides.
62 56 #
63 57 DEBUG_FLGS =
64 58 DEBUG_DEFS += $(DEBUG_FLGS)
65 59
66 60 CERRWARN += -_gcc=-Wno-uninitialized
67 61
62 +# needs work
63 +$(OBJS_DIR)/hpcsvc.o := SMOFF += all_func_returns
64 +
68 65 #
69 66 # Default build targets.
70 67 #
71 68 .KEEP_STATE:
72 69
73 70 def: $(DEF_DEPS)
74 71
75 72 all: $(ALL_DEPS)
76 73
77 74 clean: $(CLEAN_DEPS)
78 75
79 76 clobber: $(CLOBBER_DEPS)
80 77
81 78 lint: $(LINT_DEPS)
82 79
83 80 modlintlib: $(MODLINTLIB_DEPS)
84 81
85 82 clean.lint: $(CLEAN_LINT_DEPS)
86 83
87 84 install: $(INSTALL_DEPS)
88 85
89 86 #
90 87 # Include common targets.
91 88 #
92 89 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX