• N
    Staging: hv: Remove typedef DRIVER_OBJECT and PDRIVER_OBJECT · 775ef25e
    Nicolas Palix 提交于
    typedef DRIVER_OBJECT and PDRIVER_OBJECT are removed and their usages
    are replace by the use of struct hv_driver and struct hv_driver *
    respectively.
    
    Here is the semantic patch generated to perform this transformation:
    (http://coccinelle.lip6.fr/)
    
    //<smpl>
    @rm_DRIVER_OBJECT@
    @@
    -typedef struct _DRIVER_OBJECT
    +struct hv_driver
    {...}
    -DRIVER_OBJECT
    ;
    
    @rm_PDRIVER_OBJECT@
    @@
    -typedef struct _DRIVER_OBJECT *PDRIVER_OBJECT;
    +struct hv_driver;
    
    @fixtypedef_DRIVER_OBJECT@
    typedef DRIVER_OBJECT;
    @@
    -DRIVER_OBJECT
    +struct hv_driver
    
    @fixstruct__DRIVER_OBJECT@
    @@
    struct
    -_DRIVER_OBJECT
    +hv_driver
    
    @fixtypedef_PDRIVER_OBJECT@
    typedef PDRIVER_OBJECT;
    @@
    -PDRIVER_OBJECT
    +struct hv_driver*
    //</smpl>
    Signed-off-by: NNicolas Palix <npalix@diku.dk>
    Cc: Hank Janssen <hjanssen@microsoft.com>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    775ef25e
StorVsc.c 23.9 KB