Skip to content

RHEL_RELEASE_VERSION(9, 8) backported xpp, sysfs: Use const struct device_device #104

@phoneben

Description

@phoneben
/usr/local/src/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.c:483:18: error: initialization of ‘int (*)(struct device *, const struct device_driver *)’ from incompatible pointer type ‘int (*)(struct device *, struct device_driver *)’ [-Werror=incompatible-pointer-types]
  483 |         .match = astribank_match,
      |                  ^~~~~~~~~~~~~~~

my fix is in par with #64
adding to all if
||(defined(RHEL_RELEASE_CODE) && (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 8)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions