Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/clone/Makefile
+++ new/usr/src/uts/intel/clone/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
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
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/clone/Makefile
24 24 #
25 25 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
26 26 # Use is subject to license terms.
27 27 #
28 -#pragma ident "%Z%%M% %I% %E% SMI"
29 -#
30 -# This makefile drives the production of the clone driver
31 -#
32 -# intel implementation architecture dependent
33 -#
28 +# Copyright (c) 2018, Joyent, Inc.
34 29
35 30 #
36 31 # Path to the base of the uts directory tree (usually /usr/src/uts).
37 32 #
38 33 UTSBASE = ../..
39 34
40 35 #
41 36 # Define the module and object file sets.
42 37 #
43 38 MODULE = clone
44 39 OBJECTS = $(CLONE_OBJS:%=$(OBJS_DIR)/%)
45 40 LINTS = $(CLONE_OBJS:%.o=$(LINTS_DIR)/%.ln)
46 41 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
47 42 CONF_SRCDIR = $(UTSBASE)/common/io
48 43
49 44 #
50 45 # Include common rules.
↓ open down ↓ |
7 lines elided |
↑ open up ↑ |
51 46 #
52 47 include $(UTSBASE)/intel/Makefile.intel
53 48
54 49 #
55 50 # Define targets
56 51 #
57 52 ALL_TARGET = $(BINARY) $(SRC_CONFILE)
58 53 LINT_TARGET = $(MODULE).lint
59 54 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60 55
56 +# needs work
57 +$(OBJS_DIR)/clone.o := SMOFF += all_func_returns
58 +
61 59 #
62 60 # Default build targets.
63 61 #
64 62 .KEEP_STATE:
65 63
66 64 def: $(DEF_DEPS)
67 65
68 66 all: $(ALL_DEPS)
69 67
70 68 clean: $(CLEAN_DEPS)
71 69
72 70 clobber: $(CLOBBER_DEPS)
73 71
74 72 lint: $(LINT_DEPS)
75 73
76 74 modlintlib: $(MODLINTLIB_DEPS)
77 75
78 76 clean.lint: $(CLEAN_LINT_DEPS)
79 77
80 78 install: $(INSTALL_DEPS)
81 79
82 80 #
83 81 # Include common targets.
84 82 #
85 83 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX