Skip to content

Commit

Permalink
OS-7227 dkio.h C99 change requires additional lint cleanup
Browse files Browse the repository at this point in the history
Reviewed by: Dan McDonald <danmcd@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
jjelinek committed Sep 11, 2018
1 parent 320339a commit 6816448
Show file tree
Hide file tree
Showing 25 changed files with 59 additions and 4 deletions.
7 changes: 6 additions & 1 deletion usr/src/cmd/allocate/Makefile
Expand Up @@ -21,6 +21,7 @@

#
# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright 2018 Joyent, Inc.
#

ETCTSOLFILES = devalloc_defaults
Expand Down Expand Up @@ -182,7 +183,11 @@ clean :
$(RM) $(PROG) $(RTLCKS) $(OBJS) \
$(SCRIPTS) $(ALLSCRIPTS) $(POFILE) $(POFILES)

lint : lint_SRCS
lint :
$(LINT.c) allocate.c allocate3.c $(LDLIBS)
$(LINT.c) -Xc99=%all mkdevalloc.c $(LDLIBS)
$(LINT.c) dminfo.c $(LDLIBS)
$(LINT.c) add_allocatable.c $(LDLIBS)

strip :
$(STRIP) $(PROG)
Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/cdrw/Makefile
Expand Up @@ -21,6 +21,7 @@
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

PROG= cdrw
Expand All @@ -41,6 +42,7 @@ CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-parentheses
CPPFLAGS += -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(HAL_DBUS_CPPFLAGS)
LINTFLAGS += -um
C99LMODE= -Xc99=%all

$(ROOTBIN)/cdrw := FILEMODE = 04755

Expand Down
3 changes: 3 additions & 0 deletions usr/src/cmd/devfsadm/Makefile.com
Expand Up @@ -20,6 +20,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

# This target builds both a command (daemon) and various shared objects. This
Expand Down Expand Up @@ -95,6 +96,8 @@ LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2

C99LMODE= -Xc99=%all

CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-char-subscripts
CERRWARN += -_gcc=-Wno-parentheses
Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/devinfo/Makefile
Expand Up @@ -22,6 +22,7 @@
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#
# cmd/devinfo/Makefile
#
Expand All @@ -33,6 +34,7 @@ include ../Makefile.cmd
LDLIBS += -ladm -lefi
CFLAGS += $(CCVERBOSE)
CERRWARN += -_gcc=-Wno-uninitialized
C99LMODE= -Xc99=%all

.KEEP_STATE:

Expand Down
4 changes: 3 additions & 1 deletion usr/src/cmd/diskscan/Makefile
Expand Up @@ -20,15 +20,17 @@
# CDDL HEADER END
#
#
#ident "%Z%%M% %I% %E% SMI"
#
# Copyright (c) 1989, 2001 by Sun Microsystems, Inc.
# All rights reserved.
# Copyright 2018 Joyent, Inc.

PROG= diskscan

include ../Makefile.cmd

C99LMODE= -Xc99=%all

.KEEP_STATE:

all: $(PROG)
Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/eject/Makefile
Expand Up @@ -20,6 +20,7 @@
#
#
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright 2018 Joyent, Inc.
#

PROG= eject
Expand All @@ -31,6 +32,7 @@ LDLIBS += -lvolmgt -ladm
CFLAGS += $(CCVERBOSE)

LINTFLAGS += -um
C99LMODE= -Xc99=%all

.KEEP_STATE:

Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/fdformat/Makefile
Expand Up @@ -21,6 +21,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#
# cmd/fdformat/Makefile
#
Expand All @@ -31,6 +32,7 @@ include ../Makefile.cmd

LDLIBS += -lvolmgt
LINTFLAGS += -um
C99LMODE= -Xc99=%all

.KEEP_STATE:

Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/fdisk/Makefile
Expand Up @@ -20,6 +20,7 @@
#
#
# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright 2018 Joyent, Inc.
#
#

Expand All @@ -42,6 +43,7 @@ i386_CFLAGS += -D_LARGEFILE64_SOURCE
i386_CFLAGS += -D_FILE_OFFSET_BITS=64

LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_NAME_DEF_NOT_USED2
C99LMODE= -Xc99=%all

all: $(ROOTFS_PROG)

Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/fmthard/Makefile
Expand Up @@ -20,6 +20,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#
# cmd/fmthard/Makefile
#
Expand All @@ -32,6 +33,7 @@ RELUSRSBIN= ../usr/sbin
ROOTSYMLINK= $(ROOTETC)/$(PROG)
LDLIBS += -ladm -lefi
lint := LINTFLAGS = -u -erroff=E_BAD_FORMAT_ARG_TYPE2
C99LMODE= -Xc99=%all

.KEEP_STATE:

Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/format/Makefile
Expand Up @@ -23,6 +23,7 @@
# Use is subject to license terms.
#
# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
# Copyright 2018 Joyent, Inc.
#

PROG= format
Expand Down Expand Up @@ -63,6 +64,7 @@ LDLIBS_sparc=
LDLIBS += -ladm -lefi -ldiskmgt -lnvpair -ldevid -ldevinfo $(LDLIBS_$(MACH))

LINTFLAGS += -xerroff=E_NAME_DEF_NOT_USED2
C99LMODE= -Xc99=%all
CPPFLAGS += -D_EXTVTOC

.KEEP_STATE:
Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/lofiadm/Makefile
Expand Up @@ -22,6 +22,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

PROG= lofiadm
Expand All @@ -41,6 +42,7 @@ CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized

LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
C99LMODE= -Xc99=%all

.KEEP_STATE:

Expand Down
3 changes: 3 additions & 0 deletions usr/src/cmd/prtvtoc/Makefile
Expand Up @@ -20,6 +20,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#
# cmd/prtvtoc/Makefile
#
Expand All @@ -35,6 +36,8 @@ LDLIBS += -ladm -lefi
CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized

C99LMODE= -Xc99=%all

.KEEP_STATE:

all: $(PROG)
Expand Down
3 changes: 3 additions & 0 deletions usr/src/cmd/ramdiskadm/Makefile
Expand Up @@ -22,6 +22,7 @@
#
# Copyright 2002-2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

PROG= ramdiskadm
Expand All @@ -34,6 +35,8 @@ include ../Makefile.cmd
LDLIBS += -ldevinfo
CERRWARN += -_gcc=-Wno-uninitialized

C99LMODE= -Xc99=%all

.KEEP_STATE:

all: $(PROG)
Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/rmformat/Makefile
Expand Up @@ -22,6 +22,7 @@
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

PROG= rmformat
Expand All @@ -37,6 +38,7 @@ LDLIBS += -lsmedia -lvolmgt -ladm -lefi
CERRWARN += -_gcc=-Wno-uninitialized

LINTFLAGS += -u
C99LMODE= -Xc99=%all
CPPFLAGS += -D_FILE_OFFSET_BITS=64

$(ROOTBIN)/rmformat := FILEMODE = 04555
Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/smserverd/Makefile
Expand Up @@ -21,6 +21,7 @@
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

PROG = rpc.smserverd
Expand Down Expand Up @@ -48,6 +49,7 @@ CFLAGS += $(CCVERBOSE)
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-unused-variable
LINTFLAGS += -u
C99LMODE= -Xc99=%all

.KEEP_STATE:

Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/stat/fsstat/Makefile
Expand Up @@ -21,6 +21,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

PROG = fsstat
Expand All @@ -36,6 +37,7 @@ COMMON_SRCS = $(COMMON_OBJS:%.o=$(STATCOMMONDIR)/%.c)
LDLIBS += -lkstat -lcmdutils
CFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
CERRWARN += -_gcc=-Wno-parentheses
C99LMODE= -Xc99=%all
FILEMODE= 0555

lint := LINTFLAGS = -muxs -I$(STATCOMMONDIR)
Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/stat/iostat/Makefile
Expand Up @@ -21,6 +21,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

PROG = iostat
Expand All @@ -32,6 +33,7 @@ include $(SRC)/cmd/stat/Makefile.stat

LDLIBS += -lkstat -ldevinfo -lavl
CFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
C99LMODE= -Xc99=%all
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-parentheses
Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/stat/kstat/Makefile
Expand Up @@ -21,6 +21,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

PROG = kstat
Expand All @@ -32,6 +33,7 @@ include $(SRC)/cmd/stat/Makefile.stat

LDLIBS += -lavl -lcmdutils -ldevinfo -lgen -lkstat
CFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
C99LMODE= -Xc99=%all
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-parentheses
Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/stat/mpstat/Makefile
Expand Up @@ -21,6 +21,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

PROG = mpstat
Expand All @@ -32,6 +33,7 @@ include $(SRC)/cmd/stat/Makefile.stat

LDLIBS += -ldevinfo -lkstat -lavl
CFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
C99LMODE= -Xc99=%all
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-parentheses
Expand Down
4 changes: 3 additions & 1 deletion usr/src/cmd/stat/vfsstat/Makefile
Expand Up @@ -18,7 +18,7 @@
#
# CDDL HEADER END
#
# Copyright (c) 2011, Joyent, Inc. All rights reserved.
# Copyright (c) 2018, Joyent, Inc. All rights reserved.
#

include $(SRC)/cmd/Makefile.cmd
Expand All @@ -27,6 +27,8 @@ PROG= vfsstat

.KEEP_STATE:

C99LMODE= -Xc99=%all

all: $(PROG)

install: all .WAIT $(ROOTPROG)
Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/stat/vmstat/Makefile
Expand Up @@ -21,6 +21,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

PROG = vmstat
Expand All @@ -32,6 +33,7 @@ include $(SRC)/cmd/stat/Makefile.stat

LDLIBS += -ldevinfo -lkstat -lavl
CFLAGS += $(CCVERBOSE) -I${STATCOMMONDIR}
C99LMODE= -Xc99=%all
CERRWARN += -_gcc=-Wno-switch
CERRWARN += -_gcc=-Wno-uninitialized
CERRWARN += -_gcc=-Wno-parentheses
Expand Down
2 changes: 2 additions & 0 deletions usr/src/cmd/stmsboot/Makefile
Expand Up @@ -21,6 +21,7 @@
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

MANIFEST = mpxio-upgrade.xml
Expand All @@ -41,6 +42,7 @@ ROOTFSLIB_MPXIO = $(ROOT)/lib/mpxio
ROOTMANIFESTDIR = $(ROOTSVCSYSTEMDEVICE)
LDLIBS += -ldevinfo -ldevid -lnvpair -lumem
CERRWARN += -_gcc=-Wno-uninitialized
C99LMODE= -Xc99=%all

.KEEP_STATE:

Expand Down
2 changes: 2 additions & 0 deletions usr/src/lib/libadm/Makefile.com
Expand Up @@ -20,6 +20,7 @@
#
#
# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
# Copyright 2018 Joyent, Inc.
#

LIBRARY= libadm.a
Expand All @@ -42,6 +43,7 @@ LIBS= $(DYNLIB) $(LINTLIB)
SRCDIR= ../common

CPPFLAGS += -I ../inc
CSTD = $(CSTD_GNU99)

CERRWARN += -_gcc=-Wno-parentheses
CERRWARN += -_gcc=-Wno-uninitialized
Expand Down
2 changes: 2 additions & 0 deletions usr/src/lib/libefi/Makefile.com
Expand Up @@ -22,6 +22,7 @@
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
# Use is subject to license terms.
# Copyright 2018 Joyent, Inc.
#

LIBRARY = libefi.a
Expand All @@ -40,6 +41,7 @@ LDLIBS += -luuid -lsmbios -lc
$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
CFLAGS += $(CCVERBOSE)

CSTD = $(CSTD_GNU99)
LINTFLAGS64 += -errchk=longptr64

.KEEP_STATE:
Expand Down

0 comments on commit 6816448

Please sign in to comment.