Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/sfe/Makefile
+++ new/usr/src/uts/intel/sfe/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.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
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]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 +# Copyright (c) 2018, Joyent, Inc.
25 26
27 +
26 28 #
27 29 # This makefile drives the production of NS/SiS
28 30 # Fast Ethernet (SFE) driver module in intel systems
29 31 #
30 32
31 33 #
32 34 # Path to the base of the uts directory tree (usually /usr/src/uts).
33 35 #
34 36 UTSBASE = ../..
35 37
36 38 #
37 39 # Define the module and object file sets.
38 40 #
39 41 MODULE = sfe
40 42 OBJECTS = $(SFE_OBJS:%=$(OBJS_DIR)/%)
41 43 LINTS = $(SFE_OBJS:%.o=$(LINTS_DIR)/%.ln)
42 44 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
43 45
44 46 #
45 47 # Include common rules.
46 48 #
47 49 include $(UTSBASE)/intel/Makefile.intel
48 50
49 51 #
50 52 # Define targets
51 53 #
52 54 ALL_TARGET = $(BINARY)
53 55 LINT_TARGET = $(MODULE).lint
54 56 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
55 57
56 58 #
57 59 # GENERAL PURPOUSE GEM FLAGS: Tuning GEM for Solaris specific modes
58 60 #
59 61 VFLAGS = -DVERSION='"2.6.1"'
60 62 AFLAGS = -Di86pc
61 63 DFLAGS = -D"__INLINE__="
62 64 CFGFLAGS = -DGEM_CONFIG_POLLING -DGEM_CONFIG_GLDv3 -DGEM_CONFIG_VLAN \
63 65 -DGEM_CONFIG_CKSUM_OFFLOAD -DGEM_CONFIG_ND \
64 66 -DCONFIG_DP83815 -DCONFIG_SIS900 -DCONFIG_SIS7016 \
65 67 -DCONFIG_MAC_ADDR_SIS630E -DCONFIG_OPT_IO -UCONFIG_OO \
66 68 -DCONFIG_PATTERN_MATCH_DP83815
67 69 #
68 70 # FAST PATH SECTION: Will activate usage of inlines as a regular functions
69 71 # on fast data path
70 72
↓ open down ↓ |
35 lines elided |
↑ open up ↑ |
71 73 CPPFLAGS += $(VFLAGS) $(AFLAGS) $(DFLAGS) $(CFGFLAGS) $(CCVERBOSE) \
72 74 -I$(UTSBASE)/common/io/sfe
73 75
74 76 CFLAGS += $(CPPFLAGS)
75 77
76 78 CERRWARN += -_gcc=-Wno-unused-label
77 79 CERRWARN += -_gcc=-Wno-switch
78 80 CERRWARN += -_gcc=-Wno-parentheses
79 81 CERRWARN += -_gcc=-Wno-uninitialized
80 82
83 +# needs work
84 +SMOFF += all_func_returns
85 +
81 86 #
82 87 # Driver depends on MAC & IP
83 88 #
84 89 LDFLAGS += -dy -N misc/mac -N drv/ip
85 90
86 91 #
87 92 # Default build targets.
88 93 #
89 94 .KEEP_STATE:
90 95
91 96 def: $(DEF_DEPS)
92 97
93 98 all: $(ALL_DEPS)
94 99
95 100 clean: $(CLEAN_DEPS)
96 101
97 102 clobber: $(CLOBBER_DEPS)
98 103
99 104 lint: $(LINT_DEPS)
100 105
101 106 modlintlib: $(MODLINTLIB_DEPS)
102 107
103 108 clean.lint: $(CLEAN_LINT_DEPS)
104 109
105 110 install: $(INSTALL_DEPS)
106 111
107 112 #
108 113 # Include common targets.
109 114 #
110 115 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX