Module Name:    src
Committed By:   joerg
Date:           Sat Jun  4 20:59:49 UTC 2016

Modified Files:
        src/sbin/nvmectl: devlist.c identify.c logpage.c nvmectl.c nvmectl.h
            power.c

Log Message:
Mark dead functions.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sbin/nvmectl/devlist.c \
    src/sbin/nvmectl/identify.c src/sbin/nvmectl/logpage.c \
    src/sbin/nvmectl/nvmectl.c src/sbin/nvmectl/nvmectl.h \
    src/sbin/nvmectl/power.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/nvmectl/devlist.c
diff -u src/sbin/nvmectl/devlist.c:1.1 src/sbin/nvmectl/devlist.c:1.2
--- src/sbin/nvmectl/devlist.c:1.1	Sat Jun  4 16:29:35 2016
+++ src/sbin/nvmectl/devlist.c	Sat Jun  4 20:59:49 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: devlist.c,v 1.1 2016/06/04 16:29:35 nonaka Exp $	*/
+/*	$NetBSD: devlist.c,v 1.2 2016/06/04 20:59:49 joerg Exp $	*/
 
 /*-
  * Copyright (C) 2012-2013 Intel Corporation
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: devlist.c,v 1.1 2016/06/04 16:29:35 nonaka Exp $");
+__RCSID("$NetBSD: devlist.c,v 1.2 2016/06/04 20:59:49 joerg Exp $");
 #if 0
 __FBSDID("$FreeBSD: head/sbin/nvmecontrol/devlist.c 260381 2014-01-06 23:48:47Z jimharris $");
 #endif
@@ -48,7 +48,7 @@ __FBSDID("$FreeBSD: head/sbin/nvmecontro
 
 #include "nvmectl.h"
 
-static void
+__dead static void
 devlist_usage(void)
 {
 	fprintf(stderr, "usage:\n");
Index: src/sbin/nvmectl/identify.c
diff -u src/sbin/nvmectl/identify.c:1.1 src/sbin/nvmectl/identify.c:1.2
--- src/sbin/nvmectl/identify.c:1.1	Sat Jun  4 16:29:35 2016
+++ src/sbin/nvmectl/identify.c	Sat Jun  4 20:59:49 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: identify.c,v 1.1 2016/06/04 16:29:35 nonaka Exp $	*/
+/*	$NetBSD: identify.c,v 1.2 2016/06/04 20:59:49 joerg Exp $	*/
 
 /*-
  * Copyright (C) 2012-2013 Intel Corporation
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: identify.c,v 1.1 2016/06/04 16:29:35 nonaka Exp $");
+__RCSID("$NetBSD: identify.c,v 1.2 2016/06/04 20:59:49 joerg Exp $");
 #if 0
 __FBSDID("$FreeBSD: head/sbin/nvmecontrol/identify.c 253476 2013-07-19 21:40:57Z jimharris $");
 #endif
@@ -166,7 +166,7 @@ print_namespace(struct nvm_identify_name
 		    i, 1 << nsdata->lbaf[i].lbads, nsdata->lbaf[i].ms);
 }
 
-static void
+__dead static void
 identify_usage(void)
 {
 	fprintf(stderr, "usage:\n");
@@ -174,7 +174,7 @@ identify_usage(void)
 	exit(1);
 }
 
-static void
+__dead static void
 identify_ctrlr(int argc, char *argv[])
 {
 	struct nvm_identify_controller	cdata;
@@ -221,7 +221,7 @@ identify_ctrlr(int argc, char *argv[])
 	exit(0);
 }
 
-static void
+__dead static void
 identify_ns(int argc, char *argv[])
 {
 	struct nvm_identify_namespace	nsdata;
Index: src/sbin/nvmectl/logpage.c
diff -u src/sbin/nvmectl/logpage.c:1.1 src/sbin/nvmectl/logpage.c:1.2
--- src/sbin/nvmectl/logpage.c:1.1	Sat Jun  4 16:29:35 2016
+++ src/sbin/nvmectl/logpage.c	Sat Jun  4 20:59:49 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: logpage.c,v 1.1 2016/06/04 16:29:35 nonaka Exp $	*/
+/*	$NetBSD: logpage.c,v 1.2 2016/06/04 20:59:49 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2013 EMC Corp.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: logpage.c,v 1.1 2016/06/04 16:29:35 nonaka Exp $");
+__RCSID("$NetBSD: logpage.c,v 1.2 2016/06/04 20:59:49 joerg Exp $");
 #if 0
 __FBSDID("$FreeBSD: head/sbin/nvmecontrol/logpage.c 285796 2015-07-22 16:10:29Z jimharris $");
 #endif
@@ -248,7 +248,7 @@ static struct logpage_function {
 	{0,				NULL			},
 };
 
-static void
+__dead static void
 logpage_usage(void)
 {
 	fprintf(stderr, "usage:\n");
Index: src/sbin/nvmectl/nvmectl.c
diff -u src/sbin/nvmectl/nvmectl.c:1.1 src/sbin/nvmectl/nvmectl.c:1.2
--- src/sbin/nvmectl/nvmectl.c:1.1	Sat Jun  4 16:29:35 2016
+++ src/sbin/nvmectl/nvmectl.c	Sat Jun  4 20:59:49 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: nvmectl.c,v 1.1 2016/06/04 16:29:35 nonaka Exp $	*/
+/*	$NetBSD: nvmectl.c,v 1.2 2016/06/04 20:59:49 joerg Exp $	*/
 
 /*-
  * Copyright (C) 2012-2013 Intel Corporation
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: nvmectl.c,v 1.1 2016/06/04 16:29:35 nonaka Exp $");
+__RCSID("$NetBSD: nvmectl.c,v 1.2 2016/06/04 20:59:49 joerg Exp $");
 #if 0
 __FBSDID("$FreeBSD: head/sbin/nvmecontrol/nvmecontrol.c 295087 2016-01-30 22:48:06Z imp $");
 #endif
@@ -75,7 +75,7 @@ static struct nvme_function {
 	{NULL,		NULL,		NULL},
 };
 
-static void
+__dead static void
 usage(void)
 {
 	struct nvme_function *f;
Index: src/sbin/nvmectl/nvmectl.h
diff -u src/sbin/nvmectl/nvmectl.h:1.1 src/sbin/nvmectl/nvmectl.h:1.2
--- src/sbin/nvmectl/nvmectl.h:1.1	Sat Jun  4 16:29:35 2016
+++ src/sbin/nvmectl/nvmectl.h	Sat Jun  4 20:59:49 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: nvmectl.h,v 1.1 2016/06/04 16:29:35 nonaka Exp $	*/
+/*	$NetBSD: nvmectl.h,v 1.2 2016/06/04 20:59:49 joerg Exp $	*/
 
 /*-
  * Copyright (C) 2012-2013 Intel Corporation
@@ -69,19 +69,19 @@
 #define POWER_USAGE							       \
 "       nvmectl power [-l] [-p new-state [-w workload-hint]] <controller id>\n"
 
-void devlist(int, char *[]);
-void identify(int, char *[]);
+void devlist(int, char *[]) __dead;
+void identify(int, char *[]) __dead;
 #ifdef PERFTEST_USAGE
 void perftest(int, char *[]);
 #endif
 #ifdef RESET_USAGE
 void reset(int, char *[]);
 #endif
-void logpage(int, char *[]);
+void logpage(int, char *[]) __dead;
 #ifdef FIRMWARE_USAGE
 void firmware(int, char *[]);
 #endif
-void power(int, char *[]);
+void power(int, char *[]) __dead;
 
 int open_dev(const char *, int *, int, int);
 void parse_ns_str(const char *, char *, int *);
Index: src/sbin/nvmectl/power.c
diff -u src/sbin/nvmectl/power.c:1.1 src/sbin/nvmectl/power.c:1.2
--- src/sbin/nvmectl/power.c:1.1	Sat Jun  4 16:29:35 2016
+++ src/sbin/nvmectl/power.c	Sat Jun  4 20:59:49 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: power.c,v 1.1 2016/06/04 16:29:35 nonaka Exp $	*/
+/*	$NetBSD: power.c,v 1.2 2016/06/04 20:59:49 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2016 Netflix, Inc
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: power.c,v 1.1 2016/06/04 16:29:35 nonaka Exp $");
+__RCSID("$NetBSD: power.c,v 1.2 2016/06/04 20:59:49 joerg Exp $");
 #if 0
 __FBSDID("$FreeBSD: head/sbin/nvmecontrol/power.c 296672 2016-03-11 17:25:18Z dim $");
 #endif
@@ -48,7 +48,7 @@ __FBSDID("$FreeBSD: head/sbin/nvmecontro
 
 #include "nvmectl.h"
 
-static void
+__dead static void
 power_usage(void)
 {
 	fprintf(stderr, "usage:\n");

Reply via email to