summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-01-31 09:23:12 +0200
committerToomas Soome <tsoome@me.com>2020-06-05 23:29:37 +0300
commit35f318d5eb4055114a1be5b52b03efe211e014db (patch)
tree3b7b3efb59d44ad297f9a353d53d264b21f6160d /usr/src
parenta4ee597764d8f5774053526bb200ad03100a4ff0 (diff)
downloadillumos-joyent-35f318d5eb4055114a1be5b52b03efe211e014db.tar.gz
12557 tod: NULL pointer errors
Reviewed by: Yuri Pankov <ypankov@tintri.com> Reviewed by: Peter Tribble <peter.tribble@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/sun4/io/tod.c2
-rw-r--r--usr/src/uts/sun4u/tod/Makefile13
2 files changed, 2 insertions, 13 deletions
diff --git a/usr/src/uts/sun4/io/tod.c b/usr/src/uts/sun4/io/tod.c
index 7d85f65fcf..07a8b1783b 100644
--- a/usr/src/uts/sun4/io/tod.c
+++ b/usr/src/uts/sun4/io/tod.c
@@ -192,7 +192,7 @@ tod_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
*/
(void) sprintf(name, "tod%d", inst);
if (ddi_create_minor_node(dip, name, S_IFCHR, inst,
- DDI_PSEUDO, NULL) == DDI_FAILURE)
+ DDI_PSEUDO, 0) == DDI_FAILURE)
goto attach_failed;
/*
diff --git a/usr/src/uts/sun4u/tod/Makefile b/usr/src/uts/sun4u/tod/Makefile
index ad7e1028ad..41d61d51b2 100644
--- a/usr/src/uts/sun4u/tod/Makefile
+++ b/usr/src/uts/sun4u/tod/Makefile
@@ -41,7 +41,6 @@ UTSBASE = ../..
#
MODULE = tod
OBJECTS = $(TOD_OBJS:%=$(OBJS_DIR)/%)
-LINTS = $(TOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
CONF_SRCDIR = $(UTSBASE)/sun4/io
@@ -54,14 +53,10 @@ include $(UTSBASE)/sun4u/Makefile.sun4u
# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
-LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
-#
-# lint pass one enforcement
-#
CFLAGS += $(CCVERBOSE)
-CERRWARN += -_gcc=-Wno-parentheses
+CERRWARN += -_gcc=-Wno-parentheses
#
# Default build targets.
@@ -76,12 +71,6 @@ clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
-lint: $(LINT_DEPS)
-
-modlintlib: $(MODLINTLIB_DEPS)
-
-clean.lint: $(CLEAN_LINT_DEPS)
-
install: $(INSTALL_DEPS)
#