Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/fp/Makefile
+++ new/usr/src/uts/intel/fp/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
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 # uts/intel/fp/Makefile
22 22 #
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 -# ident "@(#)Makefile 1.10 08/07/25 SMI"
27 -#
28 -# This makefile drives the production of fp driver kernel module.
29 -#
30 -# i86pc architecture dependent
31 -#
26 +# Copyright (c) 2018, Joyent, Inc.
32 27
33 28 #
34 29 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 30 #
36 31 UTSBASE = ../..
37 32
38 33 #
39 34 # Define the module and object file sets.
40 35 #
41 36 MODULE = fp
42 37 OBJECTS = $(FP_OBJS:%=$(OBJS_DIR)/%)
43 38 LINTS = $(FP_OBJS:%.o=$(LINTS_DIR)/%.ln)
44 39 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
45 40 CONF_SRCDIR = $(UTSBASE)/intel/io/fibre-channel/impl/
46 41
47 42 #
48 43 # Include common rules.
49 44 #
50 45 include $(UTSBASE)/Makefile.uts
51 46 include $(UTSBASE)/intel/Makefile.intel
52 47
53 48 #
54 49 # Define targets
55 50 #
56 51 #ALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
57 52 ALL_TARGET = $(BINARY)
58 53 LINT_TARGET = $(MODULE).lint
59 54 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60 55
61 56 #
62 57 # header file directories
63 58 #
64 59 INCS += -I$(SRC)/uts/common/
65 60
66 61 #
67 62 # Overrides
68 63 #
69 64 LDFLAGS += -dy -Ndrv/fcp -Nmisc/fctl -Nmisc/scsi
70 65
71 66 #
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
72 67 # Lint tags
73 68 #
74 69 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
75 70 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
76 71 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
77 72 LINTTAGS += -erroff=E_STATIC_UNUSED
78 73
79 74 CERRWARN += -_gcc=-Wno-uninitialized
80 75 CERRWARN += -_gcc=-Wno-unused-function
81 76
77 +# needs work
78 +$(OBJS_DIR)/fp.o := SMOFF += all_func_returns,deref_check
79 +
82 80 #
83 81 # Default build targets.
84 82 #
85 83 .KEEP_STATE:
86 84
87 85 def: $(DEF_DEPS)
88 86
89 87 all: $(ALL_DEPS)
90 88
91 89 clean: $(CLEAN_DEPS)
92 90
93 91 clobber: $(CLOBBER_DEPS)
94 92
95 93 lint: $(LINT_DEPS)
96 94
97 95 modlintlib: $(MODLINTLIB_DEPS)
98 96
99 97 clean.lint: $(CLEAN_LINT_DEPS)
100 98
101 99 install: $(INSTALL_DEPS)
102 100
103 101 #
104 102 # Include common targets.
105 103 #
106 104 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX