Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/i40e/Makefile
+++ new/usr/src/uts/intel/i40e/Makefile
1 1 #
2 2 # This file and its contents are supplied under the terms of the
↓ open down ↓ |
2 lines elided |
↑ open up ↑ |
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 -# Copyright 2017 Joyent, Inc.
13 +# Copyright (c) 2018, Joyent, Inc.
14 14 #
15 15
16 16 UTSBASE = ../..
17 17
18 18 MODULE = i40e
19 19 OBJECTS = $(I40E_OBJS:%=$(OBJS_DIR)/%) $(I40E_INTC_OBJS:%=$(OBJS_DIR)/%)
20 20 LINTS = $(I40E_OBJS:%.o=$(LINTS_DIR)/%.ln)
21 21 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
22 22 CONF_SRCDIR = $(UTSBASE)/common/io/i40e
23 23
24 24 include $(UTSBASE)/intel/Makefile.intel
25 25
26 26 CPPFLAGS += -I$(UTSBASE)/common/io/i40e
27 27 CPPFLAGS += -I$(UTSBASE)/common/io/i40e/core
28 28
29 29 ALL_TARGET = $(BINARY) $(CONFMOD)
30 30 LINT_TARGET = $(MODULE).lint
31 31 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
32 32
33 33 #
34 34 # The Intel common code defines some values in header files that end up in all
35 35 # of our objects. Therefore we don't try to lint for that.
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
36 36 #
37 37 LINTTAGS += -erroff=E_STATIC_UNUSED
38 38 LINTTAGS += -erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
39 39
40 40 #
41 41 # The Intel common code defines some enums which are valid unsigned ints that
42 42 # GCC is fine with, but not Studio.
43 43 #
44 44 CERRWARN += -_cc=-erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
45 45
46 +# 3rd party code
47 +SMOFF += all_func_returns
48 +
46 49 LDFLAGS += -dy -N misc/mac
47 50
48 51 .KEEP_STATE:
49 52
50 53 def: $(DEF_DEPS)
51 54
52 55 all: $(ALL_DEPS)
53 56
54 57 clean: $(CLEAN_DEPS)
55 58
56 59 clobber: $(CLOBBER_DEPS)
57 60
58 61 lint: $(LINT_DEPS)
59 62
60 63 modlintlib: $(MODLINTLIB_DEPS)
61 64
62 65 clean.lint: $(CLEAN_LINT_DEPS)
63 66
64 67 install: $(INSTALL_DEPS)
65 68
66 69 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX