Messages in this thread | | | Subject | Re: [PATCH v3 10/16] iommu: introduce device fault report API | From | Jean-Philippe Brucker <> | Date | Wed, 10 Jan 2018 12:39:59 +0000 |
| |
On 17/11/17 18:55, Jacob Pan wrote: [...] > +static inline int iommu_register_device_fault_handler(struct device *dev, > + iommu_dev_fault_handler_t handler, > + void *data) > +{ > + return 0;> +} > + > +static inline int iommu_unregister_device_fault_handler(struct device *dev) > +{ > + return 0; > +} > + > +static inline bool iommu_has_device_fault_handler(struct device *dev) > +{ > + return false; > +} > + > +static inline int iommu_report_device_fault(struct device *dev, struct iommu_fault_event *evt) > +{ > + return 0; > +}
Not too important but these stubs, when CONFIG_IOMMU_API is disabled, usually return an error value (-ENODEV) instead of 0.
Thanks, Jean
> + > static inline int iommu_group_id(struct iommu_group *group) > { > return -ENODEV; >
| |