summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2018-10-08 14:07:48 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2018-10-08 14:07:48 +0000
commit002191f015fa9db72adf7021f69f736564f94ef4 (patch)
tree7f68ee05ce8cab64ffe5ee3bc84fa6cc57bd0c37
parent6dfc9cdf26a31c05ac54748aa413187e43a0a214 (diff)
parent2119ebe49a3e2372de7791dce841058bdcb55de3 (diff)
downloadillumos-joyent-002191f015fa9db72adf7021f69f736564f94ef4.tar.gz
[illumos-gate merge]
commit 2119ebe49a3e2372de7791dce841058bdcb55de3 9860 cpio_cleanup: $tarchive is already fully-qualified commit 8522c52a00ba4f8cc5ba2e372ae5b66fd0bb7c26 9584 Extend smbios enumerator module to enumerate motherboard 9850 authority and system pgroups missing on some nodes commit 54b146cf23443d91aef04e2d2a59b7434add3030 7096 vioif should not log to the console on boot, or ever commit fb23c574f17ddde310cea59fe008d16f650ced5a 9868 unused cw translations should be removed Conflicts: usr/src/uts/common/io/vioif/vioif.c usr/src/lib/fm/topo/libtopo/common/topo_hc.h
-rw-r--r--usr/src/Makefile.master1
-rw-r--r--usr/src/cmd/boot/scripts/create_ramdisk.ksh4
-rw-r--r--usr/src/cmd/ldapcachemgr/Makefile8
-rw-r--r--usr/src/cmd/nscd/Makefile4
-rw-r--r--usr/src/lib/fm/topo/libtopo/common/topo_hc.h2
-rw-r--r--usr/src/lib/fm/topo/modules/common/smbios/smbios_enum.c14
-rw-r--r--usr/src/lib/libnsl/Makefile.com5
-rw-r--r--usr/src/tools/cw/cw.c189
-rw-r--r--usr/src/tools/scripts/nightly.sh54
-rw-r--r--usr/src/uts/common/io/vioif/vioif.c5
10 files changed, 47 insertions, 239 deletions
diff --git a/usr/src/Makefile.master b/usr/src/Makefile.master
index 3803e25067..cbe9bc796c 100644
--- a/usr/src/Makefile.master
+++ b/usr/src/Makefile.master
@@ -403,7 +403,6 @@ STAND_FLAGS_64 = $($(MACH64)_STAND_FLAGS)
# disable the incremental linker
ILDOFF= -xildoff
#
-XDEPEND= -xdepend
XFFLAG= -xF=%all
XESS= -xs
XSTRCONST= -xstrconst
diff --git a/usr/src/cmd/boot/scripts/create_ramdisk.ksh b/usr/src/cmd/boot/scripts/create_ramdisk.ksh
index 1f6f4a4dfd..6301d107f4 100644
--- a/usr/src/cmd/boot/scripts/create_ramdisk.ksh
+++ b/usr/src/cmd/boot/scripts/create_ramdisk.ksh
@@ -362,9 +362,7 @@ function create_ufs_archive
function cpio_cleanup
{
- [ -f "/$ALT_ROOT/$tarchive" ] && rm -f "/$ALT_ROOT/$tarchive"
- [ -f "/$ALT_ROOT/$tarchive.cpio" ] && rm -f "/$ALT_ROOT/$tarchive.cpio"
- [ -f "/$ALT_ROOT/$tarchive.hash" ] && rm -f "/$ALT_ROOT/$tarchive.hash"
+ rm -f "$tarchive" "$tarchive.cpio" "$tarchive.hash"
}
function create_cpio_archive
diff --git a/usr/src/cmd/ldapcachemgr/Makefile b/usr/src/cmd/ldapcachemgr/Makefile
index 6084b26e4d..5a5b08ea3d 100644
--- a/usr/src/cmd/ldapcachemgr/Makefile
+++ b/usr/src/cmd/ldapcachemgr/Makefile
@@ -44,9 +44,9 @@ ROOTMANIFESTDIR= $(ROOTSVCNETWORKLDAP)
OBJS= cachemgr.o cachemgr_getldap.o cachemgr_parse.o cachemgr_change.o
-SRCS= ${OBJS:%.o=%.c}
+SRCS= ${OBJS:%.o=%.c}
-CPPFLAGS += -D_REENTRANT -DSUN_THREADS \
+CPPFLAGS += -D_REENTRANT -DSUN_THREADS \
-I$(SRC)/lib/libsldap/common \
-I$(SRC)/lib/libldap5/include/ldap \
-I$(SRC)/lib/libc/port/gen
@@ -62,10 +62,8 @@ POFILES= ${OBJS:%.o=%.po}
LINTOUT= lint.out
# TCOV_FLAG= -ql
-# GPROF_FLAG= -xpg
-# DEBUG_FLAG= -g
-LDLIBS += -lumem -lsldap
+LDLIBS += -lumem -lsldap
# install macros and rule
#
diff --git a/usr/src/cmd/nscd/Makefile b/usr/src/cmd/nscd/Makefile
index 1e51819bb2..f24ae5d394 100644
--- a/usr/src/cmd/nscd/Makefile
+++ b/usr/src/cmd/nscd/Makefile
@@ -70,8 +70,6 @@ CERRWARN += -_gcc=-Wno-type-limits
LDFLAGS += $(ZINTERPOSE)
# TCOV_FLAG= -ql
-# GPROF_FLAG= -xpg
-# DEBUG_FLAG= -g
PROGLIBS= $(LDLIBS) -lresolv -lnsl -lsocket -lumem -lscf -lavl
@@ -91,7 +89,7 @@ lint:
$(LINT.c) ${SRCS} ${PROGLIBS}
cstyle:
- ${CSTYLE} ${SRCS}
+ ${CSTYLE} ${SRCS}
install: all $(ROOTPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
diff --git a/usr/src/lib/fm/topo/libtopo/common/topo_hc.h b/usr/src/lib/fm/topo/libtopo/common/topo_hc.h
index fdeb5f7193..17ae9ac812 100644
--- a/usr/src/lib/fm/topo/libtopo/common/topo_hc.h
+++ b/usr/src/lib/fm/topo/libtopo/common/topo_hc.h
@@ -240,7 +240,7 @@ extern "C" {
#define TOPO_PGROUP_MOTHERBOARD "motherboard-properties"
#define TOPO_PROP_MB_MANUFACTURER "manufacturer"
#define TOPO_PROP_MB_PRODUCT "product-id"
-#define TOPO_PROP_MB_ASSET "assert-tag"
+#define TOPO_PROP_MB_ASSET "asset-tag"
#define TOPO_PROP_MB_FIRMWARE_VENDOR "firmware-vendor"
#define TOPO_PROP_MB_FIRMWARE_REV "firmware-revision"
#define TOPO_PROP_MB_FIRMWARE_RELDATE "firmware-release-date"
diff --git a/usr/src/lib/fm/topo/modules/common/smbios/smbios_enum.c b/usr/src/lib/fm/topo/modules/common/smbios/smbios_enum.c
index badd7b30a7..4fe3c9fe02 100644
--- a/usr/src/lib/fm/topo/modules/common/smbios/smbios_enum.c
+++ b/usr/src/lib/fm/topo/modules/common/smbios/smbios_enum.c
@@ -90,7 +90,7 @@ static boolean_t
is_valid_string(const char *str)
{
if (strcmp(str, SMB_DEFAULT1) != 0 && strcmp(str, SMB_DEFAULT2) != 0 &&
- strlen(str) > 0)
+ strcmp(str, SMB_DEFAULT3) != 0 && strlen(str) > 0)
return (B_TRUE);
return (B_FALSE);
@@ -121,9 +121,9 @@ smbios_make_slot(smb_enum_data_t *smed, smbios_memdevice_t *smb_md)
/* errno set */
return (NULL);
}
- nvlist_free(auth);
if ((slotnode = topo_node_bind(mod, smed->sme_pnode, SLOT,
smed->sme_slot_inst, fmri)) == NULL) {
+ nvlist_free(auth);
nvlist_free(fmri);
topo_mod_dprintf(mod, "topo_node_bind() failed: %s",
topo_mod_errmsg(mod));
@@ -133,6 +133,10 @@ smbios_make_slot(smb_enum_data_t *smed, smbios_memdevice_t *smb_md)
nvlist_free(fmri);
fmri = NULL;
+ /* Create authority and system pgroups */
+ topo_pgroup_hcset(slotnode, auth);
+ nvlist_free(auth);
+
if (topo_node_label_set(slotnode, (char *)smb_md->smbmd_dloc, &err) !=
0) {
topo_mod_dprintf(mod, "failed to set label on %s=%d: %s",
@@ -226,11 +230,11 @@ smbios_make_dimm(smb_enum_data_t *smed, smbios_memdevice_t *smb_md)
/* errno set */
goto err;
}
- nvlist_free(auth);
if (topo_node_range_create(mod, slotnode, DIMM, 0, 0) < 0 ||
(dimmnode = topo_node_bind(mod, slotnode, DIMM, 0, fmri)) ==
NULL) {
+ nvlist_free(auth);
nvlist_free(fmri);
topo_mod_dprintf(mod, "failed to bind dimm node: %s",
topo_mod_errmsg(mod));
@@ -238,6 +242,10 @@ smbios_make_dimm(smb_enum_data_t *smed, smbios_memdevice_t *smb_md)
goto err;
}
+ /* Create authority and system pgroups */
+ topo_pgroup_hcset(dimmnode, auth);
+ nvlist_free(auth);
+
if (topo_node_fru_set(dimmnode, fmri, NULL, &err) != 0) {
topo_mod_dprintf(mod, "failed to set FRU on %s: %s",
DIMM, topo_strerror(err));
diff --git a/usr/src/lib/libnsl/Makefile.com b/usr/src/lib/libnsl/Makefile.com
index 876c3681e9..17bff31ba6 100644
--- a/usr/src/lib/libnsl/Makefile.com
+++ b/usr/src/lib/libnsl/Makefile.com
@@ -183,11 +183,6 @@ BIGPICS = $(GOTHOGS:%=pics/%)
$(BIGPICS) := sparc_C_PICFLAGS = $(C_BIGPICFLAGS)
$(BIGPICS) := i386_C_PICFLAGS = $(C_BIGPICFLAGS)
-# Compile C++ code without exceptions to avoid a dependence on libC.
-NOEXCEPTIONS= -noex
-CCFLAGS += $(NOEXCEPTIONS)
-CCFLAGS64 += $(NOEXCEPTIONS)
-
CPPFLAGS += -I$(SRC)/lib/libnsl/include -D_REENTRANT
CPPFLAGS += -I$(SRC)/lib/libnsl/dial
diff --git a/usr/src/tools/cw/cw.c b/usr/src/tools/cw/cw.c
index c2650da08a..e34874e8a7 100644
--- a/usr/src/tools/cw/cw.c
+++ b/usr/src/tools/cw/cw.c
@@ -37,7 +37,7 @@
*/
/* If you modify this file, you must increment CW_VERSION */
-#define CW_VERSION "2.0"
+#define CW_VERSION "3.0"
/*
* -# Verbose mode
@@ -56,8 +56,6 @@
* as errors
* -fast Optimize using a selection of options
* -fd Report old-style function definitions and declarations
- * -features=zla Allow zero-length arrays
- * -flags Show this summary of compiler options
* -fnonstd Initialize floating-point hardware to non-standard preferences
* -fns[=<yes|no>] Select non-standard floating point mode
* -fprecision=<p> Set FP rounding precision mode p(single, double, extended)
@@ -84,17 +82,12 @@
* -native Find available processor, generate code accordingly
* -nofstore Do not force floating pt. values to target precision
* on assignment
- * -nolib Same as -xnolib
- * -noqueue Disable queuing of compiler license requests
* -norunpath Do not build in a runtime path for shared libraries
* -O Use default optimization level (-xO2 or -xO3. Check man page.)
* -o <outputfile> Set name of output file to <outputfile>
* -P Compile source through preprocessor only, output to .i file
- * -PIC Alias for -KPIC or -xcode=pic32
* -p Compile for profiling with prof
- * -pic Alias for -Kpic or -xcode=pic13
* -Q[y|n] Emit/don't emit identification info to output file
- * -qp Compile for profiling with prof
* -R<dir[:dir]> Build runtime search path list into executable
* -S Compile and only generate assembly code (.s)
* -s Strip symbol table from the executable file
@@ -106,16 +99,12 @@
* -w Suppress compiler warning messages
* -Xa Compile assuming ANSI C conformance, allow K & R extensions
* (default mode)
- * -Xc Compile assuming strict ANSI C conformance
* -Xs Compile assuming (pre-ANSI) K & R C style code
* -Xt Compile assuming K & R conformance, allow ANSI C
- * -x386 Generate code for the 80386 processor
- * -x486 Generate code for the 80486 processor
* -xarch=<a> Specify target architecture instruction set
* -xbuiltin[=<b>] When profitable inline, or substitute intrinisic functions
* for system functions, b={%all,%none}
* -xCC Accept C++ style comments
- * -xchar_byte_order=<o> Specify multi-char byte order <o> (default, high, low)
* -xchip=<c> Specify the target processor for use by the optimizer
* -xcode=<c> Generate different code for forming addresses
* -xcrossfile[=<n>] Enable optimization and inlining across source files,
@@ -133,15 +122,9 @@
* -xlibmil Inline selected libm math routines for optimization
* -xlic_lib=sunperf Link in the Sun supplied performance libraries
* -xlicinfo Show license server information
- * -xM Generate makefile dependencies
- * -xM1 Generate makefile dependencies, but exclude /usr/include
* -xmaxopt=[off,1,2,3,4,5] maximum optimization level allowed on #pragma opt
- * -xnolib Do not link with default system libraries
- * -xnolibmil Cancel -xlibmil on command line
* -xO<n> Generate optimized code (n={1|2|3|4|5})
* -xP Print prototypes for function definitions
- * -xpentium Generate code for the pentium processor
- * -xpg Compile for profiling with gprof
* -xprofile=<p> Collect data for a profile or use a profile to optimize
* <p>={{collect,use}[:<path>],tcov}
* -xregs=<r> Control register allocation
@@ -155,8 +138,6 @@
* -xtarget=<t> Specify target system for optimization
* -xtemp=<dir> Set directory for temporary files to <dir>
* -xtime Report the execution time for each compilation phase
- * -xtransition Emit warnings for differences between K&R C and ANSI C
- * -xtrigraphs[=<yes|no>] Enable|disable trigraph translation
* -xunroll=n Enable unrolling loops n times where possible
* -Y<c>,<dir> Specify <dir> for location of component <c> (a,l,m,p,0,h,i,u)
* -YA,<dir> Change default directory searched for components
@@ -184,8 +165,6 @@
* -errwarn=%all -Werror else -Wno-error
* -fast error
* -fd error
- * -features=zla ignore
- * -flags --help
* -fnonstd error
* -fns[=<yes|no>] error
* -fprecision=<p> error
@@ -212,16 +191,12 @@
* -native error
* -nofstore error
* -nolib -nodefaultlibs
- * -noqueue ignore
* -norunpath ignore
* -O -O1 (Check the man page to be certain)
* -o <outputfile> pass-thru
* -P -E -o filename.i (or error)
- * -PIC -fPIC (C++ only)
* -p pass-thru
- * -pic -fpic (C++ only)
* -Q[y|n] error
- * -qp -p
* -R<dir[:dir]> pass-thru
* -S pass-thru
* -s -Wl,-s
@@ -233,20 +208,15 @@
* -Wp,<arg> pass-thru except -xc99=<a>
* -Wl,<arg> pass-thru
* -W{m,0,2,h,i,u> error/ignore
- * -Wu,-xmodel=kernel -ffreestanding -mcmodel=kernel -mno-red-zone
* -xmodel=kernel -ffreestanding -mcmodel=kernel -mno-red-zone
* -Wu,-save_args -msave-args
* -w pass-thru
* -Xa -std=iso9899:199409 or -ansi
- * -Xc -ansi -pedantic
* -Xt error
* -Xs -traditional -std=c89
- * -x386 -march=i386 (x86 only)
- * -x486 -march=i486 (x86 only)
* -xarch=<a> table
* -xbuiltin[=<b>] -fbuiltin (-fno-builtin otherwise)
* -xCC ignore
- * -xchar_byte_order=<o> error
* -xchip=<c> table
* -xcode=<c> table
* -xdebugformat=<format> ignore (always use dwarf-2 for gcc)
@@ -260,15 +230,9 @@
* -xlibmieee error
* -xlibmil error
* -xlic_lib=sunperf error
- * -xM -M
- * -xM1 -MM
* -xmaxopt=[...] error
- * -xnolib -nodefaultlibs
- * -xnolibmil error
* -xO<n> -O<n>
* -xP error
- * -xpentium -march=pentium (x86 only)
- * -xpg error
* -xprofile=<p> error
* -xregs=<r> table
* -xs error
@@ -281,7 +245,6 @@
* -xtemp=<dir> error
* -xtime error
* -xtransition -Wtransition
- * -xtrigraphs=<yes|no> -trigraphs -notrigraphs
* -xunroll=n error
* -W0,-xdbggen=no%usedonly -fno-eliminate-unused-debug-symbols
* -fno-eliminate-unused-debug-types
@@ -527,18 +490,6 @@ Xamode(struct aelist *h __attribute__((__unused__)))
}
static void
-Xcmode(struct aelist *h)
-{
- static int xconce;
-
- if (xconce++)
- return;
-
- newae(h, "-ansi");
- newae(h, "-pedantic-errors");
-}
-
-static void
Xsmode(struct aelist *h)
{
static int xsonce;
@@ -719,23 +670,6 @@ do_gcc(cw_ictx_t *ctx)
newae(ctx->i_ae, "-Werror");
continue;
}
- if (strcmp(arg, "-noex") == 0) {
- /* no exceptions */
- newae(ctx->i_ae, "-fno-exceptions");
- /* no run time type descriptor information */
- newae(ctx->i_ae, "-fno-rtti");
- continue;
- }
- if (strcmp(arg, "-pic") == 0) {
- newae(ctx->i_ae, "-fpic");
- pic = 1;
- continue;
- }
- if (strcmp(arg, "-PIC") == 0) {
- newae(ctx->i_ae, "-fPIC");
- pic = 1;
- continue;
- }
if (strcmp(arg, "-norunpath") == 0) {
/* gcc has no corresponding option */
continue;
@@ -874,20 +808,6 @@ do_gcc(cw_ictx_t *ctx)
}
error(arg);
break;
- case 'f':
- if (strcmp(arg, "-flags") == 0) {
- newae(ctx->i_ae, "--help");
- break;
- }
- if (strncmp(arg, "-features=zla", 13) == 0) {
- /*
- * Accept but ignore this -- gcc allows
- * zero length arrays.
- */
- break;
- }
- error(arg);
- break;
case 'G':
newae(ctx->i_ae, "-shared");
nolibc = 1;
@@ -964,15 +884,6 @@ do_gcc(cw_ictx_t *ctx)
free(s);
}
break;
- case 'n':
- if (strcmp(arg, "-noqueue") == 0) {
- /*
- * Horrid license server stuff - n/a
- */
- break;
- }
- error(arg);
- break;
case 'O':
if (arglen == 1) {
newae(ctx->i_ae, "-O");
@@ -992,13 +903,6 @@ do_gcc(cw_ictx_t *ctx)
op = CW_O_PREPROCESS;
nolibc = 1;
break;
- case 'q':
- if (strcmp(arg, "-qp") == 0) {
- newae(ctx->i_ae, "-p");
- break;
- }
- error(arg);
- break;
case 's':
if (arglen == 1) {
newae(ctx->i_ae, "-Wl,-s");
@@ -1042,18 +946,6 @@ do_gcc(cw_ictx_t *ctx)
newae(ctx->i_ae, arg);
break;
}
- if (strcmp(arg, "-W0,-xc99=pragma") == 0) {
- /* (undocumented) enables _Pragma */
- break;
- }
- if (strcmp(arg, "-W0,-xc99=%none") == 0) {
- /*
- * This is a polite way of saying
- * "no c99 constructs allowed!"
- * For now, just accept and ignore this.
- */
- break;
- }
if (strcmp(arg, "-W0,-noglobal") == 0 ||
strcmp(arg, "-W0,-xglobalstatic") == 0) {
/*
@@ -1084,13 +976,6 @@ do_gcc(cw_ictx_t *ctx)
*/
break;
}
- if (strcmp(arg, "-W2,-Rcond_elim") == 0) {
- /*
- * Elimination and expansion of conditionals;
- * gcc has no direct equivalent.
- */
- break;
- }
if (strcmp(arg, "-Wd,-xsafe=unboundsym") == 0) {
/*
* Prevents optimizing away checks for
@@ -1120,13 +1005,6 @@ do_gcc(cw_ictx_t *ctx)
break;
}
#if defined(__x86)
- if (strcmp(arg, "-Wu,-xmodel=kernel") == 0) {
- newae(ctx->i_ae, "-ffreestanding");
- newae(ctx->i_ae, "-mno-red-zone");
- model = "-mcmodel=kernel";
- nolibc = 1;
- break;
- }
if (strcmp(arg, "-Wu,-save_args") == 0) {
newae(ctx->i_ae, "-msave-args");
break;
@@ -1140,10 +1018,6 @@ do_gcc(cw_ictx_t *ctx)
Xamode(ctx->i_ae);
break;
}
- if (strcmp(arg, "-Xc") == 0) {
- Xcmode(ctx->i_ae);
- break;
- }
if (strcmp(arg, "-Xs") == 0) {
Xsmode(ctx->i_ae);
break;
@@ -1154,22 +1028,6 @@ do_gcc(cw_ictx_t *ctx)
if (arglen == 1)
error(arg);
switch (arg[2]) {
-#if defined(__x86)
- case '3':
- if (strcmp(arg, "-x386") == 0) {
- newae(ctx->i_ae, "-march=i386");
- break;
- }
- error(arg);
- break;
- case '4':
- if (strcmp(arg, "-x486") == 0) {
- newae(ctx->i_ae, "-march=i486");
- break;
- }
- error(arg);
- break;
-#endif /* __x86 */
case 'a':
if (strncmp(arg, "-xarch=", 7) == 0) {
mflag |= xlate_xtb(ctx->i_ae, arg + 7);
@@ -1210,15 +1068,11 @@ do_gcc(cw_ictx_t *ctx)
pic = 1;
break;
}
- if (strncmp(arg, "-xcache=", 8) == 0)
- break;
if (strncmp(arg, "-xcrossfile", 11) == 0)
break;
error(arg);
break;
case 'd':
- if (strcmp(arg, "-xdepend") == 0)
- break;
if (strncmp(arg, "-xdebugformat=", 14) == 0)
break;
error(arg);
@@ -1255,24 +1109,6 @@ do_gcc(cw_ictx_t *ctx)
error(arg);
break;
#endif /* __x86 */
- case 'M':
- if (strcmp(arg, "-xM") == 0) {
- newae(ctx->i_ae, "-M");
- break;
- }
- if (strcmp(arg, "-xM1") == 0) {
- newae(ctx->i_ae, "-MM");
- break;
- }
- error(arg);
- break;
- case 'n':
- if (strcmp(arg, "-xnolib") == 0) {
- nolibc = 1;
- break;
- }
- error(arg);
- break;
case 'O':
if (strncmp(arg, "-xO", 3) == 0) {
size_t len = strlen(arg);
@@ -1306,17 +1142,6 @@ do_gcc(cw_ictx_t *ctx)
}
error(arg);
break;
- case 'p':
- if (strcmp(arg, "-xpentium") == 0) {
- newae(ctx->i_ae, "-march=pentium");
- break;
- }
- if (strcmp(arg, "-xpg") == 0) {
- newae(ctx->i_ae, "-pg");
- break;
- }
- error(arg);
- break;
case 'r':
if (strncmp(arg, "-xregs=", 7) == 0) {
xlate(ctx->i_ae, arg + 7, xregs_tbl);
@@ -1332,18 +1157,6 @@ do_gcc(cw_ictx_t *ctx)
error(arg);
break;
case 't':
- if (strcmp(arg, "-xtransition") == 0) {
- newae(ctx->i_ae, "-Wtransition");
- break;
- }
- if (strcmp(arg, "-xtrigraphs=yes") == 0) {
- newae(ctx->i_ae, "-trigraphs");
- break;
- }
- if (strcmp(arg, "-xtrigraphs=no") == 0) {
- newae(ctx->i_ae, "-notrigraphs");
- break;
- }
if (strncmp(arg, "-xtarget=", 9) == 0) {
xlate(ctx->i_ae, arg + 9, xtarget_tbl);
break;
diff --git a/usr/src/tools/scripts/nightly.sh b/usr/src/tools/scripts/nightly.sh
index cb863bc352..f28d37dd87 100644
--- a/usr/src/tools/scripts/nightly.sh
+++ b/usr/src/tools/scripts/nightly.sh
@@ -124,21 +124,21 @@ function normal_build {
#
# usage: run_hook HOOKNAME ARGS...
#
-# If variable "$HOOKNAME" is defined, insert a section header into
+# If variable "$HOOKNAME" is defined, insert a section header into
# our logs and then run the command with ARGS
#
function run_hook {
HOOKNAME=$1
- eval HOOKCMD=\$$HOOKNAME
+ eval HOOKCMD=\$$HOOKNAME
shift
- if [ -n "$HOOKCMD" ]; then
- (
+ if [ -n "$HOOKCMD" ]; then
+ (
echo "\n==== Running $HOOKNAME command: $HOOKCMD ====\n"
- ( $HOOKCMD "$@" 2>&1 )
+ ( $HOOKCMD "$@" 2>&1 )
if [ "$?" -ne 0 ]; then
- # Let exit status propagate up
- touch $TMPDIR/abort
+ # Let exit status propagate up
+ touch $TMPDIR/abort
fi
) | tee -a $mail_msg_file >> $LOGFILE
@@ -286,9 +286,7 @@ function build {
| egrep -v '^Zero Signature length:' \
| egrep -v '^Note \(probably harmless\):' \
| egrep -v '::' \
- | egrep -v -- '-xcache' \
| egrep -v '^\+' \
- | egrep -v '^cc1: note: -fwritable-strings' \
| egrep -v 'svccfg-native -s svc:/' \
| sort | uniq >$SRC/${NOISE}.out
if [ ! -f $SRC/${NOISE}.ref ]; then
@@ -405,7 +403,7 @@ function dolint {
#
rm -f Nothing_to_remove \
`find . \( -name SCCS -o -name .hg -o -name .svn -o -name .git \) \
- -prune -o -type f -name '*.ln' -print `
+ -prune -o -type f -name '*.ln' -print `
/bin/time $MAKE -ek lint 2>&1 | \
tee -a $LINTOUT >> $LOGFILE
@@ -725,7 +723,7 @@ unset ONBLD_TOOLS
#
if [ -f /etc/nightly.conf ]; then
. /etc/nightly.conf
-fi
+fi
if [ -f $1 ]; then
if [[ $1 = */* ]]; then
@@ -904,7 +902,7 @@ if [[ -z "$MAKE" ]]; then
MAKE=dmake
elif [[ ! -x "$MAKE" ]]; then
echo "\$MAKE is set to garbage in the environment"
- exit 1
+ exit 1
fi
export PATH
export MAKE
@@ -1032,9 +1030,9 @@ PKGARCHIVE_ORIG=$PKGARCHIVE
#
function logshuffle {
- LLOG="$ATLOG/log.`date '+%F.%H:%M'`"
+ LLOG="$ATLOG/log.`date '+%F.%H:%M'`"
if [ -f $LLOG -o -d $LLOG ]; then
- LLOG=$LLOG.$$
+ LLOG=$LLOG.$$
fi
rm -f "$ATLOG/latest" 2>/dev/null
@@ -1049,7 +1047,7 @@ function logshuffle {
fi
if [ -f $TMPDIR/wsdiff.results ]; then
- mv $TMPDIR/wsdiff.results $LLOG
+ mv $TMPDIR/wsdiff.results $LLOG
fi
if [ -f $TMPDIR/wsdiff-nd.results ]; then
@@ -1067,7 +1065,7 @@ function logshuffle {
exec >>$LOGFILE 2>&1
if [ -s $build_noise_file ]; then
- echo "\n==== Nightly build noise ====\n" |
+ echo "\n==== Nightly build noise ====\n" |
tee -a $LOGFILE >>$mail_msg_file
cat $build_noise_file >>$LOGFILE
cat $build_noise_file >>$mail_msg_file
@@ -1083,7 +1081,7 @@ function logshuffle {
state=Interrupted
;;
*)
- state=Failed
+ state=Failed
;;
esac
@@ -1109,13 +1107,13 @@ function logshuffle {
cat $build_time_file $build_environ_file $mail_msg_file \
> ${LLOG}/mail_msg
if [ "$m_FLAG" = "y" ]; then
- cat ${LLOG}/mail_msg | /usr/bin/mailx ${mailx_r} -s \
+ cat ${LLOG}/mail_msg | /usr/bin/mailx ${mailx_r} -s \
"Nightly ${MACH} Build of `basename ${CODEMGR_WS}` ${state}." \
${MAILTO}
fi
if [ "$u_FLAG" = "y" -a "$build_ok" = "y" ]; then
- staffer cp ${LLOG}/mail_msg $PARENT_WS/usr/src/mail_msg-${MACH}
+ staffer cp ${LLOG}/mail_msg $PARENT_WS/usr/src/mail_msg-${MACH}
staffer cp $LOGFILE $PARENT_WS/usr/src/nightly-${MACH}.log
fi
@@ -1128,7 +1126,7 @@ function logshuffle {
# Remove the locks and temporary files on any exit
#
function cleanup {
- logshuffle
+ logshuffle
[ -z "$lockfile" ] || staffer rm -f $lockfile
[ -z "$atloglockfile" ] || rm -f $atloglockfile
@@ -1144,7 +1142,7 @@ function cleanup {
}
function cleanup_signal {
- build_ok=i
+ build_ok=i
# this will trigger cleanup(), above.
exit 1
}
@@ -1363,7 +1361,7 @@ function parent_wstype {
else
scm_type="none"
fi
- fi
+ fi
# fold both unsupported and unrecognized results into "none"
case "$scm_type" in
@@ -1865,7 +1863,7 @@ if [ "$U_FLAG" = "y" -a "$build_ok" = "y" ]; then
mkdir -p $NIGHTLY_PARENT_TOOLS_ROOT
if [[ "$MULTI_PROTO" = no || "$D_FLAG" = y ]]; then
( cd $TOOLS_PROTO; tar cf - . |
- ( cd $NIGHTLY_PARENT_TOOLS_ROOT;
+ ( cd $NIGHTLY_PARENT_TOOLS_ROOT;
umask 0; tar xpf - ) ) 2>&1 |
tee -a $mail_msg_file >> $LOGFILE
fi
@@ -1894,7 +1892,7 @@ if [[ ($build_ok = y) && (($A_FLAG = y) || ($r_FLAG = y)) ]]; then
find_elf -fr $checkroot > $elf_ddir/object_list
if [[ $A_FLAG = y ]]; then
- echo "\n==== Check versioning and ABI information ====\n" | \
+ echo "\n==== Check versioning and ABI information ====\n" | \
tee -a $LOGFILE >> $mail_msg_file
# Produce interface description for the proto. Report errors.
@@ -1915,7 +1913,7 @@ if [[ ($build_ok = y) && (($A_FLAG = y) || ($r_FLAG = y)) ]]; then
echo "\n==== Compare versioning and ABI information" \
"to baseline ====\n" | \
tee -a $LOGFILE >> $mail_msg_file
- echo "Baseline: $base_ifile\n" >> $LOGFILE
+ echo "Baseline: $base_ifile\n" >> $LOGFILE
if [[ -f $base_ifile ]]; then
interface_cmp -d -o $base_ifile \
@@ -1928,7 +1926,7 @@ if [[ ($build_ok = y) && (($A_FLAG = y) || ($r_FLAG = y)) ]]; then
build_extras_ok=n
fi
else
- echo "baseline not available. comparison" \
+ echo "baseline not available. comparison" \
"skipped" | \
tee -a $LOGFILE >> $mail_msg_file
fi
@@ -1954,7 +1952,7 @@ if [[ ($build_ok = y) && (($A_FLAG = y) || ($r_FLAG = y)) ]]; then
build_extras_ok=n
fi
- # check_rtime -I output needs to be sorted in order to
+ # check_rtime -I output needs to be sorted in order to
# compare it to that from previous builds.
sort $elf_ddir/runtime.attr.raw > $elf_ddir/runtime.attr
rm $elf_ddir/runtime.attr.raw
@@ -1995,7 +1993,7 @@ if [[ ($build_ok = y) && (($A_FLAG = y) || ($r_FLAG = y)) ]]; then
# These files are used asynchronously by other builds for ABI
# verification, as above for the -A option. As such, we require
# the file replacement to be atomic. Copy the data to a temp
- # file in the same filesystem and then rename into place.
+ # file in the same filesystem and then rename into place.
(
cd $elf_ddir
for elf_dfile in *; do
diff --git a/usr/src/uts/common/io/vioif/vioif.c b/usr/src/uts/common/io/vioif/vioif.c
index 45fded9b74..f535687b8c 100644
--- a/usr/src/uts/common/io/vioif/vioif.c
+++ b/usr/src/uts/common/io/vioif/vioif.c
@@ -13,6 +13,7 @@
* Copyright 2013 Nexenta Inc. All rights reserved.
* Copyright 2015 Joyent, Inc.
* Copyright (c) 2014, 2016 by Delphix. All rights reserved.
+ * Copyright 2015 Joyent, Inc.
*/
/* Based on the NetBSD virtio driver by Minoura Makoto. */
@@ -737,7 +738,7 @@ vioif_add_rx(struct vioif_softc *sc, int kmflag)
while ((ve = vq_alloc_entry(sc->sc_rx_vq)) != NULL) {
struct vioif_rx_buf *buf = sc->sc_rxbufs[ve->qe_index];
- if (!buf) {
+ if (buf == NULL) {
/* First run, allocate the buffer. */
buf = kmem_cache_alloc(sc->sc_rxbuf_cache, kmflag);
sc->sc_rxbufs[ve->qe_index] = buf;
@@ -916,7 +917,7 @@ vioif_reclaim_used_tx(struct vioif_softc *sc)
buf->tb_mp = NULL;
if (mp != NULL) {
- for (int i = 0; i < buf->tb_external_num; i++) {
+ for (int i = 0; i < buf->tb_external_num; i++)
(void) ddi_dma_unbind_handle(
buf->tb_external_mapping[i].vbm_dmah);
}