Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/nfs/Makefile
+++ new/usr/src/uts/intel/nfs/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
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # uts/intel/nfs/Makefile
23 23 #
24 24 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 # Copyright (c) 2011 Bayard G. Bell. All rights reserved.
27 27 #
28 -# This makefile drives the production of the nfs file system
29 -# kernel module.
30 -#
31 -# intel implementation architecture dependent
32 -#
28 +# Copyright (c) 2018, Joyent, Inc.
33 29
34 30 #
35 31 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 32 #
37 33 UTSBASE = ../..
38 34
39 35 #
40 36 # Define the module and object file sets.
41 37 #
42 38 MODULE = nfs
43 39 OBJECTS = $(NFS_OBJS:%=$(OBJS_DIR)/%)
44 40 LINTS = $(NFS_OBJS:%.o=$(LINTS_DIR)/%.ln)
45 41 ROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
46 42 ROOTLINK = $(ROOT_SYS_DIR)/$(MODULE)
47 43
48 44 #
49 45 # Include common rules.
50 46 #
51 47 include $(UTSBASE)/intel/Makefile.intel
52 48
53 49 #
54 50 # Define targets
55 51 #
56 52 ALL_TARGET = $(BINARY)
57 53 LINT_TARGET = $(MODULE).lint
58 54 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
59 55
60 56 #
61 57 # Overrides.
62 58 #
63 59 MODSTUBS_DIR = $(OBJS_DIR)
64 60 $(MODSTUBS_O) := AS_CPPFLAGS += -DNFS_MODULE
65 61 CLEANFILES += $(MODSTUBS_O)
66 62
67 63 #
68 64 # Define dependencies on specfs, rpcmod, and rpcsec
69 65 #
70 66 LDFLAGS += -dy -N fs/specfs -N strmod/rpcmod -N misc/rpcsec
71 67
72 68 #
73 69 # For now, disable these lint checks; maintainers should endeavor
74 70 # to investigate and remove these for maximum lint coverage.
75 71 # Please do not carry these forward to new Makefiles.
76 72 #
77 73 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
78 74 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
79 75 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
80 76 LINTTAGS += -erroff=E_STATIC_UNUSED
81 77 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
82 78 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
↓ open down ↓ |
40 lines elided |
↑ open up ↑ |
83 79
84 80 CERRWARN += -_gcc=-Wno-parentheses
85 81 CERRWARN += -_gcc=-Wno-unused-label
86 82 CERRWARN += -_gcc=-Wno-type-limits
87 83 CERRWARN += -_gcc=-Wno-uninitialized
88 84 CERRWARN += -_gcc=-Wno-switch
89 85 CERRWARN += -_gcc=-Wno-unused-function
90 86 CERRWARN += -_gcc=-Wno-unused-variable
91 87 CERRWARN += -_gcc=-Wno-empty-body
92 88
89 +# needs work
90 +SMATCH=off
91 +
93 92 #
94 93 # Default build targets.
95 94 #
96 95 .KEEP_STATE:
97 96
98 97 def: $(DEF_DEPS)
99 98
100 99 all: $(ALL_DEPS)
101 100
102 101 clean: $(CLEAN_DEPS)
103 102
104 103 clobber: $(CLOBBER_DEPS)
105 104
106 105 lint: $(LINT_DEPS)
107 106
108 107 modlintlib: $(MODLINTLIB_DEPS)
109 108
110 109 clean.lint: $(CLEAN_LINT_DEPS)
111 110
112 111 install: $(INSTALL_DEPS)
113 112
114 113 $(ROOTLINK): $(ROOT_SYS_DIR) $(ROOTMODULE)
115 114 -$(RM) $@; ln $(ROOTMODULE) $@
116 115
117 116 #
118 117 # Include common targets.
119 118 #
120 119 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX