Author: ed
Date: Tue Aug 28 19:30:29 2012
New Revision: 239791
URL: http://svn.freebsd.org/changeset/base/239791

Log:
  Remove unused SI_* flags.
  
  The SI_DEVOPEN, SI_CONSOPEN and SI_CANDELETE flags are not used by any
  piece of code in the tree.

Modified:
  head/sys/kern/kern_conf.c
  head/sys/sys/conf.h

Modified: head/sys/kern/kern_conf.c
==============================================================================
--- head/sys/kern/kern_conf.c   Tue Aug 28 19:28:31 2012        (r239790)
+++ head/sys/kern/kern_conf.c   Tue Aug 28 19:30:29 2012        (r239791)
@@ -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);
 

Modified: head/sys/sys/conf.h
==============================================================================
--- head/sys/sys/conf.h Tue Aug 28 19:28:31 2012        (r239790)
+++ head/sys/sys/conf.h Tue Aug 28 19:30:29 2012        (r239791)
@@ -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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to