git: devfs: Change typedef 'cdevpriv_dtr_t' to 'd_priv_dtor_t'

Aaron LI aly at crater.dragonflybsd.org
Sat Jun 19 03:39:00 PDT 2021


commit d56bec7aafcb41e86a641fd56bc4a9c6ab068eb3
Author: Aaron LI <aly at aaronly.me>
Date:   Tue May 25 12:15:34 2021 +0800

    devfs: Change typedef 'cdevpriv_dtr_t' to 'd_priv_dtor_t'
    
    The original 'cdevpriv_dtr_t' typedef was not able to be used in a
    function prototype like the other d_xxx_t typedef's, because it declared
    a function *pointer* rather than a function.  This makes it useless
    outside the cdevpriv implementation.
    
    Change the typedef to declare a function and rename it to
    'd_priv_dtor_t', which is more consistent with other dev_ops methods,
    although it's not a direct member in the dev_ops struct.
    
    Obtained-from: FreeBSD (revision 291653)
    URL: https://reviews.freebsd.org/D4340

Summary of changes:
 sys/bus/u4b/usb_dev.c      | 3 +--
 sys/dev/misc/evdev/cdev.c  | 2 +-
 sys/dev/misc/ipmi/ipmi.c   | 2 +-
 sys/sys/devfs.h            | 8 ++++----
 sys/vfs/devfs/devfs_core.c | 4 ++--
 5 files changed, 9 insertions(+), 10 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d56bec7aafcb41e86a641fd56bc4a9c6ab068eb3


-- 
DragonFly BSD source repository


More information about the Commits mailing list