Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/qede/Makefile
+++ new/usr/src/uts/intel/qede/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 (c) 2017 Joyent, Inc.
13 +# Copyright (c) 2018, Joyent, Inc.
14 14 #
15 15
16 16 UTSBASE = ../..
17 17
18 18 MODULE = qede
19 19 OBJECTS = $(QEDE_OBJS:%=$(OBJS_DIR)/%) $(QEDE_GEN_OBJS:%=$(OBJS_DIR)/%)
20 20 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
21 21 CONF_SRCDIR = $(UTSBASE)/common/io/qede
22 22
23 23 include $(UTSBASE)/intel/Makefile.intel
24 24
25 25 #
26 26 # Common definitions that are used by QLogic.
27 27 #
28 28 CPPFLAGS += -D__inline=inline
29 29 CPPFLAGS += -D_inline=inline
30 30 CPPFLAGS += -DILLUMOS
31 31 CPPFLAGS += -DECORE_CONFIG_DIRECT_HWFN
32 32 CPPFLAGS += -DCONFIG_ECORE_L2
33 33
34 34 #
35 35 # Includes that are needed
36 36 #
37 37 CPPFLAGS += -I$(UTSBASE)/common/io/qede
38 38 CPPFLAGS += -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore
39 39 CPPFLAGS += -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore/hsi_repository
40 40 CPPFLAGS += -I$(UTSBASE)/common/io/qede/579xx/hsi/
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
41 41 CPPFLAGS += -I$(UTSBASE)/common/io/qede/579xx/hsi/hw
42 42 CPPFLAGS += -I$(UTSBASE)/common/io/qede/579xx/hsi/mcp
43 43
44 44 #
45 45 # Temporarily gag these warnings for the moment. We'll work with
46 46 # upstream to get them clean.
47 47 #
48 48 CERRWARN += -_gcc=-Wno-unused-variable
49 49 CERRWARN += -_gcc=-Wno-unused-function
50 50
51 +# 3rd party module
52 +SMOFF += all_func_returns,indenting,no_if_block,deref_check,testing_index_after_use
53 +
54 +# real bug in qede_multicast()
55 +$(OBJS_DIR)/qede_gld.o := SMOFF += assign_vs_compare
56 +
51 57 ALL_TARGET = $(BINARY) $(CONFMOD)
52 58 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
53 59
54 60 LDFLAGS += -dy -N misc/mac
55 61
56 62 .KEEP_STATE:
57 63
58 64 def: $(DEF_DEPS)
59 65
60 66 all: $(ALL_DEPS)
61 67
62 68 clean: $(CLEAN_DEPS)
63 69
64 70 clobber: $(CLOBBER_DEPS)
65 71
66 72 lint:
67 73 modlintlib:
68 74 clean.lint:
69 75
70 76 install: $(INSTALL_DEPS)
71 77
72 78 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX