Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/fd/Makefile
+++ new/usr/src/uts/intel/fd/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/intel/fd/Makefile
23 23 #
24 24 # Copyright 2007 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 floppy driver
30 -#
31 -# intel architecture dependent
32 -#
33 -
34 -#
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 = fd
43 38 OBJECTS = $(FD_OBJS:%=$(OBJS_DIR)/%)
44 39 LINTS = $(FD_OBJS:%.o=$(LINTS_DIR)/%.ln)
45 40 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
46 41 CONF_SRCDIR = $(UTSBASE)/intel/io
47 42
48 43 #
49 44 # Include common rules.
50 45 #
51 46 include $(UTSBASE)/intel/Makefile.intel
52 47
53 48 #
54 49 # Define targets
55 50 #
56 51 ALL_TARGET = $(BINARY) $(CONFMOD)
57 52 LINT_TARGET = $(MODULE).lint
58 53 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
59 54
60 55 #
61 56 # Overrides.
62 57 #
63 58
64 59 #
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
65 60 # For now, disable these lint checks; maintainers should endeavor
66 61 # to investigate and remove these for maximum lint coverage.
67 62 # Please do not carry these forward to new Makefiles.
68 63 #
69 64 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
70 65 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
71 66 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
72 67
73 68 CERRWARN += -_gcc=-Wno-uninitialized
74 69
70 +# needs work
71 +$(OBJS_DIR)/fd.o := SMOFF += all_func_returns
72 +
75 73 #
76 74 # Default build targets.
77 75 #
78 76 .KEEP_STATE:
79 77
80 78 def: $(DEF_DEPS)
81 79
82 80 all: $(ALL_DEPS)
83 81
84 82 clean: $(CLEAN_DEPS)
85 83
86 84 clobber: $(CLOBBER_DEPS)
87 85
88 86 lint: $(LINT_DEPS)
89 87
90 88 modlintlib: $(MODLINTLIB_DEPS)
91 89
92 90 clean.lint: $(CLEAN_LINT_DEPS)
93 91
94 92 install: $(INSTALL_DEPS)
95 93
96 94 #
97 95 # Include common targets.
98 96 #
99 97 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX