Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/nvmectl Mark dead functions.



details:   https://anonhg.NetBSD.org/src/rev/df13765f0c6b
branches:  trunk
changeset: 345670:df13765f0c6b
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Jun 04 20:59:49 2016 +0000

description:
Mark dead functions.

diffstat:

 sbin/nvmectl/devlist.c  |   6 +++---
 sbin/nvmectl/identify.c |  10 +++++-----
 sbin/nvmectl/logpage.c  |   6 +++---
 sbin/nvmectl/nvmectl.c  |   6 +++---
 sbin/nvmectl/nvmectl.h  |  10 +++++-----
 sbin/nvmectl/power.c    |   6 +++---
 6 files changed, 22 insertions(+), 22 deletions(-)

diffs (186 lines):

diff -r 4e6cf3e81438 -r df13765f0c6b sbin/nvmectl/devlist.c
--- a/sbin/nvmectl/devlist.c    Sat Jun 04 18:22:45 2016 +0000
+++ b/sbin/nvmectl/devlist.c    Sat Jun 04 20:59:49 2016 +0000
@@ -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 @@
 
 #include "nvmectl.h"
 
-static void
+__dead static void
 devlist_usage(void)
 {
        fprintf(stderr, "usage:\n");
diff -r 4e6cf3e81438 -r df13765f0c6b sbin/nvmectl/identify.c
--- a/sbin/nvmectl/identify.c   Sat Jun 04 18:22:45 2016 +0000
+++ b/sbin/nvmectl/identify.c   Sat Jun 04 20:59:49 2016 +0000
@@ -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 @@
                    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 @@
        exit(1);
 }
 
-static void
+__dead static void
 identify_ctrlr(int argc, char *argv[])
 {
        struct nvm_identify_controller  cdata;
@@ -221,7 +221,7 @@
        exit(0);
 }
 
-static void
+__dead static void
 identify_ns(int argc, char *argv[])
 {
        struct nvm_identify_namespace   nsdata;
diff -r 4e6cf3e81438 -r df13765f0c6b sbin/nvmectl/logpage.c
--- a/sbin/nvmectl/logpage.c    Sat Jun 04 18:22:45 2016 +0000
+++ b/sbin/nvmectl/logpage.c    Sat Jun 04 20:59:49 2016 +0000
@@ -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 @@
        {0,                             NULL                    },
 };
 
-static void
+__dead static void
 logpage_usage(void)
 {
        fprintf(stderr, "usage:\n");
diff -r 4e6cf3e81438 -r df13765f0c6b sbin/nvmectl/nvmectl.c
--- a/sbin/nvmectl/nvmectl.c    Sat Jun 04 18:22:45 2016 +0000
+++ b/sbin/nvmectl/nvmectl.c    Sat Jun 04 20:59:49 2016 +0000
@@ -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 @@
        {NULL,          NULL,           NULL},
 };
 
-static void
+__dead static void
 usage(void)
 {
        struct nvme_function *f;
diff -r 4e6cf3e81438 -r df13765f0c6b sbin/nvmectl/nvmectl.h
--- a/sbin/nvmectl/nvmectl.h    Sat Jun 04 18:22:45 2016 +0000
+++ b/sbin/nvmectl/nvmectl.h    Sat Jun 04 20:59:49 2016 +0000
@@ -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 *);
diff -r 4e6cf3e81438 -r df13765f0c6b sbin/nvmectl/power.c
--- a/sbin/nvmectl/power.c      Sat Jun 04 18:22:45 2016 +0000
+++ b/sbin/nvmectl/power.c      Sat Jun 04 20:59:49 2016 +0000
@@ -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 @@
 
 #include "nvmectl.h"
 
-static void
+__dead static void
 power_usage(void)
 {
        fprintf(stderr, "usage:\n");



Home | Main Index | Thread Index | Old Index