summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-08-28 19:30:29 +0000
committered <ed@FreeBSD.org>2012-08-28 19:30:29 +0000
commit986966dbe75b6be09bba2f3fc656994f6dd7a86a (patch)
treef1783e65071a8c863ce9664c65444629e4a7b7fb
parent099a431e7fa16c57e47f80ce5b4b0bc73c99e3e3 (diff)
downloadFreeBSD-src-986966dbe75b6be09bba2f3fc656994f6dd7a86a.zip
FreeBSD-src-986966dbe75b6be09bba2f3fc656994f6dd7a86a.tar.gz
Remove unused SI_* flags.
The SI_DEVOPEN, SI_CONSOPEN and SI_CANDELETE flags are not used by any piece of code in the tree.
-rw-r--r--sys/kern/kern_conf.c3
-rw-r--r--sys/sys/conf.h3
2 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index 1eb2364..288fac5 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -1431,10 +1431,7 @@ DB_SHOW_COMMAND(cdev, db_show_cdev)
SI_FLAG(SI_NAMED);
SI_FLAG(SI_CHEAPCLONE);
SI_FLAG(SI_CHILD);
- SI_FLAG(SI_DEVOPEN);
- SI_FLAG(SI_CONSOPEN);
SI_FLAG(SI_DUMPDEV);
- SI_FLAG(SI_CANDELETE);
SI_FLAG(SI_CLONELIST);
db_printf("si_flags %s\n", buf);
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 49bb3d4..96d835b 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -59,10 +59,7 @@ struct cdev {
#define SI_NAMED 0x0004 /* make_dev{_alias} has been called */
#define SI_CHEAPCLONE 0x0008 /* can be removed_dev'ed when vnode reclaims */
#define SI_CHILD 0x0010 /* child of another struct cdev **/
-#define SI_DEVOPEN 0x0020 /* opened by device */
-#define SI_CONSOPEN 0x0040 /* opened by console */
#define SI_DUMPDEV 0x0080 /* is kernel dumpdev */
-#define SI_CANDELETE 0x0100 /* can do BIO_DELETE */
#define SI_CLONELIST 0x0200 /* on a clone list */
struct timespec si_atime;
struct timespec si_ctime;
OpenPOWER on IntegriCloud