Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/agpgart/Makefile
+++ new/usr/src/uts/intel/agpgart/Makefile
1 1 #
2 2 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 3 # Use is subject to license terms.
4 4 #
5 -# uts/intel/agpgart/Makefile
6 -#
5 +# Copyright (c) 2018, Joyent, Inc.
7 6
8 7 #
9 8 # This makefile drives the framework of agp protocol
10 9 # (agpgart) kernel module.
11 10 #
12 11 #
13 12 # Path to the base of the uts directory tree (usually /usr/src/uts).
14 13 #
15 14 UTSBASE = ../..
16 15
17 16 #
18 17 # Define the module and object file sets.
19 18 #
20 19 MODULE = agpgart
21 20 OBJECTS = $(AGPGART_OBJS:%=$(OBJS_DIR)/%)
22 21 LINTS = $(AGPGART_OBJS:%.o=$(LINTS_DIR)/%.ln)
23 22 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
24 23 CONF_SRCDIR = $(UTSBASE)/intel/io/agpgart
25 24
26 25 #
27 26 # Include common rules.
28 27 #
29 28 include $(UTSBASE)/intel/Makefile.intel
30 29
31 30 #
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
32 31 # Define targets
33 32 #
34 33 ALL_TARGET = $(BINARY) $(SRC_CONFILE)
35 34 LINT_TARGET = $(MODULE).lint
36 35 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
37 36
38 37 CERRWARN += -_gcc=-Wno-switch
39 38 CERRWARN += -_gcc=-Wno-parentheses
40 39 CERRWARN += -_gcc=-Wno-uninitialized
41 40
41 +# needs work
42 +$(OBJS_DIR)/agpgart.o := SMOFF += deref_check
43 +
42 44 #
43 45 # For now, disable these lint checks; maintainers should endeavor
44 46 # to investigate and remove these for maximum lint coverage.
45 47 # Please do not carry these forward to new Makefiles.
46 48 #
47 49 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
48 50
49 51 #
50 52 # Default build targets.
51 53 #
52 54 .KEEP_STATE:
53 55
54 56 def: $(DEF_DEPS)
55 57
56 58 all: $(ALL_DEPS)
57 59
58 60 clean: $(CLEAN_DEPS)
59 61
60 62 clobber: $(CLOBBER_DEPS)
61 63
62 64 lint: $(LINT_DEPS)
63 65
64 66 modlintlib: $(MODLINTLIB_DEPS)
65 67
66 68 clean.lint: $(CLEAN_LINT_DEPS)
67 69
68 70 install: $(INSTALL_DEPS)
69 71
70 72 #
71 73 # Include common targets.
72 74 #
73 75 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX